56#ifndef _PURPLE_DESKTOP_ITEM_H_
57#define _PURPLE_DESKTOP_ITEM_H_
60#include <glib-object.h>
65 PURPLE_DESKTOP_ITEM_TYPE_NULL = 0
67 PURPLE_DESKTOP_ITEM_TYPE_OTHER
72 PURPLE_DESKTOP_ITEM_TYPE_APPLICATION,
73 PURPLE_DESKTOP_ITEM_TYPE_LINK,
74 PURPLE_DESKTOP_ITEM_TYPE_FSDEVICE,
75 PURPLE_DESKTOP_ITEM_TYPE_MIME_TYPE,
76 PURPLE_DESKTOP_ITEM_TYPE_DIRECTORY,
77 PURPLE_DESKTOP_ITEM_TYPE_SERVICE,
78 PURPLE_DESKTOP_ITEM_TYPE_SERVICE_TYPE
79} PurpleDesktopItemType;
81typedef struct _PurpleDesktopItem PurpleDesktopItem;
83#define PURPLE_TYPE_DESKTOP_ITEM (purple_desktop_item_get_type ())
84GType purple_desktop_item_get_type (
void);
87#define PURPLE_DESKTOP_ITEM_ENCODING "Encoding"
88#define PURPLE_DESKTOP_ITEM_VERSION "Version"
89#define PURPLE_DESKTOP_ITEM_NAME "Name"
90#define PURPLE_DESKTOP_ITEM_GENERIC_NAME "GenericName"
91#define PURPLE_DESKTOP_ITEM_TYPE "Type"
92#define PURPLE_DESKTOP_ITEM_FILE_PATTERN "FilePattern"
93#define PURPLE_DESKTOP_ITEM_TRY_EXEC "TryExec"
94#define PURPLE_DESKTOP_ITEM_NO_DISPLAY "NoDisplay"
95#define PURPLE_DESKTOP_ITEM_COMMENT "Comment"
96#define PURPLE_DESKTOP_ITEM_EXEC "Exec"
97#define PURPLE_DESKTOP_ITEM_ACTIONS "Actions"
98#define PURPLE_DESKTOP_ITEM_ICON "Icon"
99#define PURPLE_DESKTOP_ITEM_MINI_ICON "MiniIcon"
100#define PURPLE_DESKTOP_ITEM_HIDDEN "Hidden"
101#define PURPLE_DESKTOP_ITEM_PATH "Path"
102#define PURPLE_DESKTOP_ITEM_TERMINAL "Terminal"
103#define PURPLE_DESKTOP_ITEM_TERMINAL_OPTIONS "TerminalOptions"
104#define PURPLE_DESKTOP_ITEM_SWALLOW_TITLE "SwallowTitle"
105#define PURPLE_DESKTOP_ITEM_SWALLOW_EXEC "SwallowExec"
106#define PURPLE_DESKTOP_ITEM_MIME_TYPE "MimeType"
107#define PURPLE_DESKTOP_ITEM_PATTERNS "Patterns"
108#define PURPLE_DESKTOP_ITEM_DEFAULT_APP "DefaultApp"
109#define PURPLE_DESKTOP_ITEM_DEV "Dev"
110#define PURPLE_DESKTOP_ITEM_FS_TYPE "FSType"
111#define PURPLE_DESKTOP_ITEM_MOUNT_POINT "MountPoint"
112#define PURPLE_DESKTOP_ITEM_READ_ONLY "ReadOnly"
113#define PURPLE_DESKTOP_ITEM_UNMOUNT_ICON "UnmountIcon"
114#define PURPLE_DESKTOP_ITEM_SORT_ORDER "SortOrder"
115#define PURPLE_DESKTOP_ITEM_URL "URL"
116#define PURPLE_DESKTOP_ITEM_DOC_PATH "X-GNOME-DocPath"
PurpleDesktopItem * purple_desktop_item_copy(const PurpleDesktopItem *item)
Creates a copy of a PurpleDesktopItem.
PurpleDesktopItemType purple_desktop_item_get_entry_type(const PurpleDesktopItem *item)
Gets the type attribute (the 'Type' field) of the item.
void purple_desktop_item_unref(PurpleDesktopItem *item)
Decreases the reference count of the specified item, and destroys the item if there are no more refer...
const char * purple_desktop_item_get_string(const PurpleDesktopItem *item, const char *attr)
Gets the value of an attribute of the item, as a string.
PurpleDesktopItem * purple_desktop_item_new_from_file(const char *filename)
This function loads 'filename' and turns it into a PurpleDesktopItem.