Top | ![]() |
![]() |
![]() |
![]() |
|
(*EImportCompleteFunc) () |
|
(*EImportStatusFunc) () |
|
(*EImportFactoryFunc) () |
|
(*EImportImporterFunc) () |
|
(*EImportSupportedFunc) () |
|
(*EImportWidgetFunc) () |
|
(*EImportImportFunc) () |
|
e_import_new () |
|
e_import_class_add_importer () |
|
e_import_get_importers () |
|
e_import_construct () |
|
e_import_import () |
|
e_import_cancel () |
|
e_import_get_widget () |
|
e_import_get_preview_widget () |
|
e_import_status () |
|
e_import_complete () |
|
e_import_target_new () |
|
e_import_target_free () |
EImportTargetURI * | e_import_target_new_uri () |
EImportTargetHome * | e_import_target_new_home () |
|
e_import_hook_class_add_target_map () |
enum | e_import_target_t |
struct | EImportImporter |
struct | EImportTarget |
struct | EImportTargetURI |
struct | EImportTargetHome |
typedef | EImportHookTargetMap |
typedef | EImportHookTargetMask |
struct | EImportHookImporter |
struct | EImportHookClass |
EImportFactory |
void (*EImportCompleteFunc) (,
EImport *eiconst
,GError *error);
gpointer user_data
void (*EImportStatusFunc) (,
EImport *eiconst
,gchar *what,
gint pc);
gpointer data
gboolean (*EImportSupportedFunc) (,
EImport *eiEImportTarget *Param2
,EImportImporter *im
);
GtkWidget * (*EImportWidgetFunc) (,
EImport *eiEImportTarget *Param2
,EImportImporter *im
);
void (*EImportImportFunc) (,
EImport *eiEImportTarget *Param2
,EImportImporter *im
);
void e_import_class_add_importer (,
EImportClass *klassEImportImporter *importer
,EImportImporterFunc freefunc
,);
gpointer data
GSList * e_import_get_importers (,
EImport *importEImportTarget *target
);
Get a list of importers. If target
is supplied, then only
importers which support the type and location specified by the
target are listed. If target
is NULL, then all importers are
listed.
EImport * e_import_construct (,
EImport *importconst
);gchar *id
Used by implementing classes to initialise base parameters.
void e_import_import (,
EImport *importEImportTarget *target
,EImportImporter *importer
,EImportStatusFunc status
,EImportCompleteFunc done
,);
gpointer data
Run the import function of the selected importer. Once the
importer has finished, it MUST call the e_import_complete()
function. This allows importers to run in synchronous or
asynchronous mode.
When complete, the done
callback will be called.
void e_import_cancel (,
EImport *importEImportTarget *target
,EImportImporter *importer
);
GtkWidget * e_import_get_widget (,
EImport *importEImportTarget *target
,EImportImporter *importer
);
Gets a widget that the importer uses to configure its destination. This widget should be packed into a container widget. It should not be shown_all.
GtkWidget * e_import_get_preview_widget (,
EImport *importEImportTarget *target
,EImportImporter *im
);
Gets a widget that the importer uses to preview data to be imported. This widget should be packed into a container widget. It should not be shown_all.
void e_import_status (,
EImport *importEImportTarget *target
,const
,gchar *what);
gint pc
void e_import_complete (,
EImport *importEImportTarget *target
,const
);GError *error
Signify that an import is complete. This must be called by importer implementations when they are done.
gpointer e_import_target_new (,
EImport *import,
gint type);
gsize size
Allocate a new import target suitable for this class. Implementing classes will define the actual content of the target.
void e_import_target_free (,
EImport *import);
gpointer target
Free a target. The implementing class can override this method to free custom targets.
EImportTargetURI * e_import_target_new_uri (,
EImport *importconst
,gchar *uri_srcconst
);gchar *uri_dst
void e_import_hook_class_add_target_map (EImportHookClass *klass
,const EImportHookTargetMap *map
);
class
: The dervied EimportHook class.
map
: A map used to describe a single EImportTarget type for this
class.
Add a targe tmap to a concrete derived class of EImport. The target map enumates the target types available for the implenting class.
struct EImportImporter { enum _e_import_target_t type; gint pri; EImportSupportedFunc supported; EImportWidgetFunc get_widget; EImportImportFunc import; EImportImportFunc cancel; EImportWidgetFunc get_preview; gpointer user_data; /* ?? */ gchar *name; gchar *description; };
struct EImportTarget { EImport *import; guint32 type; GData *data; /* implementation fields follow, depends on target type */ };
struct EImportTargetURI { EImportTarget target; gchar *uri_src; gchar *uri_dest; };
struct EImportHookImporter { EImportImporter importer; /* user_data == EImportHook */ gchar *supported; gchar *get_widget; gchar *import; gchar *cancel; };
struct EImportHookClass { EPluginHookClass hook_class; /* EImportHookTargetMap by .type */ GHashTable *target_map; /* the import class these imports's belong to */ EImportClass *import_class; };
This is an abstract class defining the plugin hook point for import windows.