News

Documentation

lib/efreet_desktop.h File Reference


Detailed Description

Contains the structures and methods used to support the FDO desktop entry specificiation.

#include "efreet_ini.h"

Include dependency graph for efreet_desktop.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Data Structures

struct  Efreet_Desktop
 a parsed representation of a .desktop file More...

Typedefs

typedef Efreet_Desktop Efreet_Desktop
typedef void(*) Efreet_Desktop_Command_Cb (void *data, Efreet_Desktop *desktop, char *command, int remaining)
typedef int(*) Efreet_Desktop_Progress_Cb (void *data, Efreet_Desktop *desktop, char *uri, long int total, long int current)
typedef enum Efreet_Desktop_Type Efreet_Desktop_Type
typedef void *(*) Efreet_Desktop_Type_Free_Cb (void *data)
typedef void *(*) Efreet_Desktop_Type_Parse_Cb (Efreet_Desktop *desktop, Efreet_Ini *ini)
typedef void(*) Efreet_Desktop_Type_Save_Cb (Efreet_Desktop *desktop, Efreet_Ini *ini)

Functions

void efreet_desktop_category_add (Efreet_Desktop *desktop, const char *category)
 add a category to a desktop
unsigned int efreet_desktop_category_count_get (Efreet_Desktop *desktop)
 Retrieves the number of categories the given desktop belongs too.
int efreet_desktop_category_del (Efreet_Desktop *desktop, const char *category)
 removes a category from a desktop
int efreet_desktop_command_get (Efreet_Desktop *desktop, Ecore_List *files, Efreet_Desktop_Command_Cb func, void *data)
 Get a command to use to execute a desktop entry.
int efreet_desktop_command_progress_get (Efreet_Desktop *desktop, Ecore_List *files, Efreet_Desktop_Command_Cb cb_command, Efreet_Desktop_Progress_Cb cb_prog, void *data)
 Get a command to use to execute a desktop entry, and receive progress updates for downloading of remote URI's passed in.
Efreet_Desktopefreet_desktop_empty_new (const char *file)
 Creates a new empty Efreet_Desktop structure or NULL on failure.
void efreet_desktop_environment_set (const char *environment)
void efreet_desktop_exec (Efreet_Desktop *desktop, Ecore_List *files, void *data)
 Parses the desktop exec line and returns an Ecore_Exe.
void efreet_desktop_free (Efreet_Desktop *desktop)
Efreet_Desktopefreet_desktop_get (const char *file)
 Gets a reference to an Efreet_Desktop structure representing the contents of file or NULL if file is not a valid .desktop file.
int efreet_desktop_save (Efreet_Desktop *desktop)
 Saves any changes made to desktop back to the file on the filesystem.
int efreet_desktop_save_as (Efreet_Desktop *desktop, const char *file)
 Saves desktop to file.
char * efreet_desktop_string_list_join (Ecore_List *list)
 Create a ';' separate list of strings according to the desktop spec.
Ecore_List * efreet_desktop_string_list_parse (const char *string)
 Parse ';' separate list of strings according to the desktop spec.
int efreet_desktop_type_add (const char *type, Efreet_Desktop_Type_Parse_Cb parse_func, Efreet_Desktop_Type_Save_Cb save_func, Efreet_Desktop_Type_Free_Cb free_func)
 Adds the given type to the list of types in the system.
void * efreet_desktop_type_data_get (Efreet_Desktop *desktop)
 get type specific data for custom desktop types

Variables

int EFREET_DESKTOP_TYPE_APPLICATION
int EFREET_DESKTOP_TYPE_DIRECTORY
int EFREET_DESKTOP_TYPE_LINK

Copyright © Enlightenment.org

Efreet Documentation Generated: Sat Apr 7 17:55:43 2007