|  |  |  | caja-sendto Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | ||||
#include <bluetooth-plugin.h>
                    NstPluginInfo;
                    NstPlugin;
enum                NstPluginCapabilities;
#define             NST_INIT_PLUGIN                     (plugininfo)
typedef struct {
	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) ;
} NstPluginInfo;
A structure representing a caja-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 caja-sendto | 
| 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 caja-sendto.
| GModule * | the GModule for the opened shared library | 
| NstPluginInfo * | a NstPluginInfo structure | 
typedef enum {
	CAJA_CAPS_NONE = 0,
	CAJA_CAPS_SEND_DIRECTORIES = 1 << 0,
	CAJA_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 caja-sendto.
| 
 | a NstPluginInfo structure representing the plugin |