21 #ifndef __EDELIB_DESKTOPFILE_H__
22 #define __EDELIB_DESKTOPFILE_H__
95 bool load(
const char* fname);
102 bool save(
const char* fname);
132 bool name(
char* val,
int len);
140 bool generic_name(
char* val,
int len);
148 bool comment(
char* val,
int len);
155 bool icon(
char* val,
int len);
164 bool exec(
char* val,
int len);
174 bool try_exec(
bool& program_found);
180 bool path(
char* val,
int len);
186 bool url(
char* val,
int len);
191 bool mime_type(
char* val,
int len);
196 bool no_display(
void);
211 bool startup_notify(
void);
216 bool only_show_in(
char* val,
int len);
228 bool not_show_in(
char* val,
int len);
244 void set_name(
const char* val);
249 void set_generic_name(
const char* val);
254 void set_comment(
const char* val);
259 void set_icon(
const char* val);
264 void set_exec(
const char* val);
269 void set_try_exec(
const char* val);
274 void set_path(
const char* val);
279 void set_url(
const char* val);
284 void set_mime_type(
const char* val);
289 void set_no_display(
bool val);
294 void set_hidden(
bool val);
299 void set_terminal(
bool val);
304 void set_startup_notify(
bool val);
successful operation
Definition: DesktopFile.h:35
A config file reader.
Definition: Config.h:112
.desktop file reader and writer
Definition: DesktopFile.h:74
Application type.
Definition: DesktopFile.h:47
Linked list class.
Definition: List.h:160
bool load(const char *fname)
Link type.
Definition: DesktopFile.h:48
DesktopFileErrors
Error codes from DesktopFile class.
Definition: DesktopFile.h:34
malformed file, or not .desktop file
Definition: DesktopFile.h:38
DesktopFileType
Reported file type from DesktopFile::type()
Definition: DesktopFile.h:45
file not loaded
Definition: DesktopFile.h:36
Directory type.
Definition: DesktopFile.h:49
trouble accessing config file or directory
Definition: DesktopFile.h:37
Unknown type (Type key)
Definition: DesktopFile.h:46
bool save(const char *fname)