LSQArchiveSupport

LSQArchiveSupport

Synopsis




            LSQCustomAction;
gboolean    (*LSQCustomActionPreFunc)       (LSQCustomAction *);
gboolean    (*LSQCustomActionFunc)          (LSQArchiveSupport *support,
                                             LSQArchive *,
                                             LSQCustomAction *,
                                             gpointer user_data);
gboolean    (*LSQCustomActionPostFunc)      (LSQCustomAction *,
                                             gboolean );
            LSQArchiveSupport;
LSQArchiveSupport* lsq_archive_support_new  ();
void        lsq_archive_support_add_mime    (LSQArchiveSupport *support,
                                             gchar *mime);
gboolean    lsq_archive_support_mime_supported
                                            (LSQArchiveSupport *,
                                             const gchar *mime);
gboolean    lsq_register_support            (LSQArchiveSupport *support);
LSQArchiveSupport* lsq_get_support_for_mime (ThunarVfsMimeInfo *mime_info);
LSQArchiveSupport* lsq_get_support_for_mime_from_slist
                                            (GSList *list,
                                             const gchar *mime);
gint        lsq_archive_support_lookup_mime (gconstpointer support_mime,
                                             gconstpointer mime);
gint        lsq_archive_support_lookup_support
                                            (gconstpointer support,
                                             gconstpointer mime);
gint        lsq_archive_support_add         (LSQArchiveSupport *,
                                             LSQArchive *,
                                             GSList *);
gint        lsq_archive_support_extract     (LSQArchiveSupport *,
                                             LSQArchive *,
                                             const gchar *,
                                             GSList *);
gint        lsq_archive_support_remove      (LSQArchiveSupport *,
                                             LSQArchive *,
                                             GSList *);
gint        lsq_archive_support_refresh     (LSQArchiveSupport *,
                                             LSQArchive *);
GSList*     lsq_archive_support_list_properties
                                            (LSQArchiveSupport *support,
                                             gchar *);
void        lsq_archive_support_install_action
                                            (LSQArchiveSupport *support,
                                             LSQCustomAction *action);
LSQCustomAction* lsq_archive_support_find_action
                                            (LSQArchiveSupport *support,
                                             const gchar *name);
LSQCustomAction** lsq_archive_support_list_actions
                                            (LSQArchiveSupport *support,
                                             guint *n_actions);
LSQCustomAction* lsq_custom_action_new      (const gchar *name,
                                             const gchar *nick,
                                             const gchar *blurb,
                                             const gchar *icon,
                                             LSQCustomActionFunc func,
                                             LSQArchiveSupport *support,
                                             gpointer user_data);
const gchar* lsq_custom_action_get_name     (LSQCustomAction *action);
const gchar* lsq_custom_action_get_nick     (LSQCustomAction *action);
const gchar* lsq_custom_action_get_blurb    (LSQCustomAction *action);
const gchar* lsq_custom_action_get_icon_name
                                            (LSQCustomAction *action);
void        lsq_custom_action_execute       (LSQCustomAction *action,
                                             LSQArchive *archive,
                                             LSQCustomActionCallback *callback);

Description

Details

LSQCustomAction

typedef struct {
	gchar *name;
	gchar *nick;
	gchar *blurb;
	gchar *icon;
	LSQCustomActionFunc func;
	LSQCustomActionCallback *callback;
	LSQArchiveSupport *support;
	gpointer user_data;
} LSQCustomAction;


LSQCustomActionPreFunc ()

gboolean    (*LSQCustomActionPreFunc)       (LSQCustomAction *);

Param1 :
Returns :

LSQCustomActionFunc ()

gboolean    (*LSQCustomActionFunc)          (LSQArchiveSupport *support,
                                             LSQArchive *,
                                             LSQCustomAction *,
                                             gpointer user_data);

support :
Param2 :
Param3 :
user_data :
Returns :

LSQCustomActionPostFunc ()

gboolean    (*LSQCustomActionPostFunc)      (LSQCustomAction *,
                                             gboolean );

Param1 :
Param2 :
Returns :

LSQArchiveSupport

typedef struct {
	GObject       parent;
	gchar        *id;
	GSList       *mime;
	GSList       *custom_action;
	guint64       max_n_files;
/*
 * The following functions should _NOT_ be called directly.
 *
 * lsq_archive_support_add()
 * lsq_archive_support_extract()
 * lsq_archive_support_remove()
 * lsq_archive_support_refresh()
 * 
 * should be called instead.
 */
	gint        (*add)(LSQArchive *archive, GSList *files);
	gint        (*extract)(LSQArchive *archive, const gchar *dest_path, GSList *files);
	gint        (*remove)(LSQArchive *archive, GSList *files);
	gint        (*refresh)(LSQArchive *archive);
} LSQArchiveSupport;


lsq_archive_support_new ()

LSQArchiveSupport* lsq_archive_support_new  ();

Returns :

lsq_archive_support_add_mime ()

void        lsq_archive_support_add_mime    (LSQArchiveSupport *support,
                                             gchar *mime);

support :
mime :

lsq_archive_support_mime_supported ()

gboolean    lsq_archive_support_mime_supported
                                            (LSQArchiveSupport *,
                                             const gchar *mime);

Param1 :
mime :
Returns :

lsq_register_support ()

gboolean    lsq_register_support            (LSQArchiveSupport *support);

support :
Returns :

lsq_get_support_for_mime ()

LSQArchiveSupport* lsq_get_support_for_mime (ThunarVfsMimeInfo *mime_info);

mime_info :
Returns :

lsq_get_support_for_mime_from_slist ()

LSQArchiveSupport* lsq_get_support_for_mime_from_slist
                                            (GSList *list,
                                             const gchar *mime);

list :
mime :
Returns :

lsq_archive_support_lookup_mime ()

gint        lsq_archive_support_lookup_mime (gconstpointer support_mime,
                                             gconstpointer mime);

support_mime :
mime :
Returns :

lsq_archive_support_lookup_support ()

gint        lsq_archive_support_lookup_support
                                            (gconstpointer support,
                                             gconstpointer mime);

support :
mime :
Returns :

lsq_archive_support_add ()

gint        lsq_archive_support_add         (LSQArchiveSupport *,
                                             LSQArchive *,
                                             GSList *);

Param1 :
Param2 :
Param3 :
Returns :

lsq_archive_support_extract ()

gint        lsq_archive_support_extract     (LSQArchiveSupport *,
                                             LSQArchive *,
                                             const gchar *,
                                             GSList *);

Param1 :
Param2 :
Param3 :
Param4 :
Returns :

lsq_archive_support_remove ()

gint        lsq_archive_support_remove      (LSQArchiveSupport *,
                                             LSQArchive *,
                                             GSList *);

Param1 :
Param2 :
Param3 :
Returns :

lsq_archive_support_refresh ()

gint        lsq_archive_support_refresh     (LSQArchiveSupport *,
                                             LSQArchive *);

Param1 :
Param2 :
Returns :

lsq_archive_support_list_properties ()

GSList*     lsq_archive_support_list_properties
                                            (LSQArchiveSupport *support,
                                             gchar *);

support :
Param2 :
Returns :

lsq_archive_support_install_action ()

void        lsq_archive_support_install_action
                                            (LSQArchiveSupport *support,
                                             LSQCustomAction *action);

support :
action :

lsq_archive_support_find_action ()

LSQCustomAction* lsq_archive_support_find_action
                                            (LSQArchiveSupport *support,
                                             const gchar *name);

support :
name :
Returns :

lsq_archive_support_list_actions ()

LSQCustomAction** lsq_archive_support_list_actions
                                            (LSQArchiveSupport *support,
                                             guint *n_actions);

support :
n_actions :
Returns :

lsq_custom_action_new ()

LSQCustomAction* lsq_custom_action_new      (const gchar *name,
                                             const gchar *nick,
                                             const gchar *blurb,
                                             const gchar *icon,
                                             LSQCustomActionFunc func,
                                             LSQArchiveSupport *support,
                                             gpointer user_data);

name :
nick :
blurb :
icon :
func :
support :
user_data :
Returns :

lsq_custom_action_get_name ()

const gchar* lsq_custom_action_get_name     (LSQCustomAction *action);

action :
Returns :

lsq_custom_action_get_nick ()

const gchar* lsq_custom_action_get_nick     (LSQCustomAction *action);

action :
Returns :

lsq_custom_action_get_blurb ()

const gchar* lsq_custom_action_get_blurb    (LSQCustomAction *action);

action :
Returns :

lsq_custom_action_get_icon_name ()

const gchar* lsq_custom_action_get_icon_name
                                            (LSQCustomAction *action);

action :
Returns :

lsq_custom_action_execute ()

void        lsq_custom_action_execute       (LSQCustomAction *action,
                                             LSQArchive *archive,
                                             LSQCustomActionCallback *callback);

action :
archive :
callback :