![]() |
![]() |
![]() |
libSqueeze Reference Manual | ![]() |
---|---|---|---|---|
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);
typedef struct { gchar *name; gchar *nick; gchar *blurb; gchar *icon; LSQCustomActionFunc func; LSQCustomActionCallback *callback; LSQArchiveSupport *support; gpointer user_data; } LSQCustomAction;
gboolean (*LSQCustomActionPreFunc) (LSQCustomAction *);
Param1 : |
|
Returns : |
gboolean (*LSQCustomActionFunc) (LSQArchiveSupport *support, LSQArchive *, LSQCustomAction *, gpointer user_data);
support : |
|
Param2 : |
|
Param3 : |
|
user_data : |
|
Returns : |
gboolean (*LSQCustomActionPostFunc) (LSQCustomAction *, gboolean );
Param1 : |
|
Param2 : |
|
Returns : |
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;
void lsq_archive_support_add_mime (LSQArchiveSupport *support, gchar *mime);
support : |
|
mime : |
gboolean lsq_archive_support_mime_supported (LSQArchiveSupport *, const gchar *mime);
Param1 : |
|
mime : |
|
Returns : |
gboolean lsq_register_support (LSQArchiveSupport *support);
support : |
|
Returns : |
LSQArchiveSupport* lsq_get_support_for_mime (ThunarVfsMimeInfo *mime_info);
mime_info : |
|
Returns : |
LSQArchiveSupport* lsq_get_support_for_mime_from_slist (GSList *list, const gchar *mime);
list : |
|
mime : |
|
Returns : |
gint lsq_archive_support_lookup_mime (gconstpointer support_mime, gconstpointer mime);
support_mime : |
|
mime : |
|
Returns : |
gint lsq_archive_support_lookup_support (gconstpointer support, gconstpointer mime);
support : |
|
mime : |
|
Returns : |
gint lsq_archive_support_add (LSQArchiveSupport *, LSQArchive *, GSList *);
Param1 : |
|
Param2 : |
|
Param3 : |
|
Returns : |
gint lsq_archive_support_extract (LSQArchiveSupport *, LSQArchive *, const gchar *, GSList *);
Param1 : |
|
Param2 : |
|
Param3 : |
|
Param4 : |
|
Returns : |
gint lsq_archive_support_remove (LSQArchiveSupport *, LSQArchive *, GSList *);
Param1 : |
|
Param2 : |
|
Param3 : |
|
Returns : |
gint lsq_archive_support_refresh (LSQArchiveSupport *, LSQArchive *);
Param1 : |
|
Param2 : |
|
Returns : |
GSList* lsq_archive_support_list_properties (LSQArchiveSupport *support, gchar *);
support : |
|
Param2 : |
|
Returns : |
void lsq_archive_support_install_action (LSQArchiveSupport *support, LSQCustomAction *action);
support : |
|
action : |
LSQCustomAction* lsq_archive_support_find_action (LSQArchiveSupport *support, const gchar *name);
support : |
|
name : |
|
Returns : |
LSQCustomAction** lsq_archive_support_list_actions (LSQArchiveSupport *support, guint *n_actions);
support : |
|
n_actions : |
|
Returns : |
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 : |
const gchar* lsq_custom_action_get_name (LSQCustomAction *action);
action : |
|
Returns : |
const gchar* lsq_custom_action_get_nick (LSQCustomAction *action);
action : |
|
Returns : |
const gchar* lsq_custom_action_get_blurb (LSQCustomAction *action);
action : |
|
Returns : |
const gchar* lsq_custom_action_get_icon_name (LSQCustomAction *action);
action : |
|
Returns : |
void lsq_custom_action_execute (LSQCustomAction *action, LSQArchive *archive, LSQCustomActionCallback *callback);
action : |
|
archive : |
|
callback : |