21 #ifndef __EDELIB_DESKTOPFILE_H__
22 #define __EDELIB_DESKTOPFILE_H__
97 bool load(
const char* fname);
104 bool save(
const char* fname);
134 bool name(
char* val,
int len);
142 bool generic_name(
char* val,
int len);
150 bool comment(
char* val,
int len);
157 bool icon(
char* val,
int len);
166 bool exec(
char* val,
int len);
176 bool try_exec(
bool& program_found);
182 bool path(
char* val,
int len);
188 bool url(
char* val,
int len);
193 bool mime_type(
char* val,
int len);
198 bool no_display(
void);
213 bool startup_notify(
void);
219 bool only_show_in(
char* val,
int len);
231 bool not_show_in(
char* val,
int len);
247 void set_name(
const char* val);
252 void set_generic_name(
const char* val);
257 void set_comment(
const char* val);
262 void set_icon(
const char* val);
267 void set_exec(
const char* val);
272 void set_try_exec(
const char* val);
277 void set_path(
const char* val);
282 void set_url(
const char* val);
287 void set_mime_type(
const char* val);
292 void set_no_display(
bool val);
297 void set_hidden(
bool val);
302 void set_terminal(
bool val);
307 void set_startup_notify(
bool val);
successful operation
Definition: DesktopFile.h:34
A config file reader.
Definition: Config.h:112
.desktop file reader and writer
Definition: DesktopFile.h:76
Application type.
Definition: DesktopFile.h:46
Linked list class.
Definition: List.h:160
bool load(const char *fname)
Link type.
Definition: DesktopFile.h:47
DesktopFileErrors
Error codes from DesktopFile class.
Definition: DesktopFile.h:33
malformed file, or not .desktop file
Definition: DesktopFile.h:37
DesktopFileType
Reported file type from DesktopFile::type()
Definition: DesktopFile.h:44
file not loaded
Definition: DesktopFile.h:35
Directory type.
Definition: DesktopFile.h:48
trouble accessing config file or directory
Definition: DesktopFile.h:36
Unknown type (Type key)
Definition: DesktopFile.h:45
bool save(const char *fname)