21#ifndef __EDELIB_DESKTOPFILE_H__
22#define __EDELIB_DESKTOPFILE_H__
95 bool load(
const char* fname);
186 bool url(
char* val,
int len);
A config file reader.
Definition Config.h:112
.desktop file reader and writer
Definition DesktopFile.h:74
void set_exec(const char *val)
void create_new(DesktopFileType t)
bool name(char *val, int len)
bool icon(char *val, int len)
void set_icon(const char *val)
bool url(char *val, int len)
bool path(char *val, int len)
void set_try_exec(const char *val)
bool not_show_in(char *val, int len)
bool only_show_in(list< String > &lst)
void set_hidden(bool val)
bool startup_notify(void)
bool mime_type(char *val, int len)
void set_terminal(bool val)
bool comment(char *val, int len)
void set_path(const char *val)
void set_name(const char *val)
void set_no_display(bool val)
bool only_show_in(char *val, int len)
bool try_exec(bool &program_found)
void set_url(const char *val)
void set_comment(const char *val)
void set_generic_name(const char *val)
bool exec(char *val, int len)
void set_not_show_in(const list< String > &lst)
void set_startup_notify(bool val)
void set_mime_type(const char *val)
bool not_show_in(list< String > &lst)
bool save(const char *fname)
void set_type(DesktopFileType t)
bool generic_name(char *val, int len)
void set_only_show_in(const list< String > &lst)
DesktopFileType type(void)
bool load(const char *fname)
Linked list class.
Definition List.h:160
DesktopFileType
Reported file type from DesktopFile::type()
Definition DesktopFile.h:45
@ DESK_FILE_TYPE_UNKNOWN
Unknown type (Type key)
Definition DesktopFile.h:46
@ DESK_FILE_TYPE_LINK
Link type.
Definition DesktopFile.h:48
@ DESK_FILE_TYPE_DIRECTORY
Directory type.
Definition DesktopFile.h:49
@ DESK_FILE_TYPE_APPLICATION
Application type.
Definition DesktopFile.h:47
DesktopFileErrors
Error codes from DesktopFile class.
Definition DesktopFile.h:34
@ DESK_FILE_EMPTY
file not loaded
Definition DesktopFile.h:36
@ DESK_FILE_ERR_BAD
malformed file, or not .desktop file
Definition DesktopFile.h:38
@ DESK_FILE_ERR_FILE
trouble accessing config file or directory
Definition DesktopFile.h:37
@ DESK_FILE_SUCCESS
successful operation
Definition DesktopFile.h:35