|  |  |  | nautilus-sendto Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | ||||
typedef struct {
	gchar                             *icon;
	gchar                             *id;
	gchar                             *description;
	gchar                             *gettext_package;
	gboolean                           never_unload;
	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) ;
} NstPluginInfo;
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, NULLif the plugin is part of nautilus-sendto | 
| gboolean  | Whether to unload the plugin on exit. Enable this if your plugin registers a new GType | 
| NstPluginCapabilities  | a bitmask of NstPluginCapabilities | 
| 
 | Check for dependencies, and return FALSEif 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. | 
typedef struct {
	GModule *module;
	NstPluginInfo *info;
} NstPlugin;
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.
#define NST_INIT_PLUGIN(plugininfo)
Call this on an NstPluginInfo structure to make it available to nautilus-sendto.
| 
 | a NstPluginInfo structure representing the plugin |