| nautilus-sendto Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
#include <bluetooth-plugin.h> #define NST_INIT_PLUGIN (plugininfo) struct NstPlugin; enum NstPluginCapabilities; struct NstPluginInfo;
#define NST_INIT_PLUGIN(plugininfo)
Call this on an NstPluginInfo structure to make it available to nautilus-sendto.
|
a NstPluginInfo structure representing the plugin |
struct NstPlugin {
GModule *module;
NstPluginInfo *info;
};
A structure as used in nautilus-sendto.
GModule * |
the GModule for the opened shared library |
NstPluginInfo * |
a NstPluginInfo structure |
typedef enum {
NAUTILUS_CAPS_NONE = 0,
NAUTILUS_CAPS_SEND_DIRECTORIES = 1 << 0,
NAUTILUS_CAPS_SEND_IMAGES = 1 << 1,
} NstPluginCapabilities;
Capabilities of the plugin.
struct NstPluginInfo {
gchar *icon;
gchar *id;
gchar *description;
gchar *gettext_package;
NstPluginCapabilities capabilities;
gboolean (*init) (NstPlugin *plugin);
GtkWidget* (*get_contacts_widget) (NstPlugin *plugin);
gboolean (*validate_destination) (NstPlugin *plugin, GtkWidget *contact_widget, char **error);
gboolean (*send_files) (NstPlugin *plugin,
GtkWidget *contact_widget,
GList *file_list);
gboolean (*destroy) (NstPlugin *plugin) ;
};
A structure representing a nautilus-sendto plugin. You should also call NST_INIT_PLUGIN() on the plugin structure to export it.
gchar * |
The icon name for the plugin selection drop-down |
gchar * |
A unique ID representing the plugin |
gchar * |
The label used in the plugin selection drop-down |
gchar * |
The domain to use to translate the description, NULL if the plugin is part of nautilus-sendto |
NstPluginCapabilities |
a bitmask of NstPluginCapabilities |
Check for dependencies, and return FALSE if dependencies such as programs are missing. |
|
| Return the contact widget, the widget to select the destination of the files | |
| Validate whether the destination can receive the file. This callback is optional. | |
| Actually send the files to the selected destination. The file list is a GList of URI strings. | |
| Free all the resources used by the plugin. |