diff options
author | Cosimo Cecchi <cosimo.cecchi@collabora.co.uk> | 2009-04-29 23:46:31 +0800 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2009-06-01 23:47:35 +0800 |
commit | a18e5fce7d4e98b0f5bbe3d2c5dc0eb9a8684dd2 (patch) | |
tree | 680c8870c583fdb8645ef1653bc9aa67d5376f30 /libempathy/empathy-ft-handler.h | |
parent | 3c048a484986d560d1a8468b4a238b7c7fc0f4f7 (diff) | |
download | gsoc2013-empathy-a18e5fce7d4e98b0f5bbe3d2c5dc0eb9a8684dd2.tar gsoc2013-empathy-a18e5fce7d4e98b0f5bbe3d2c5dc0eb9a8684dd2.tar.gz gsoc2013-empathy-a18e5fce7d4e98b0f5bbe3d2c5dc0eb9a8684dd2.tar.bz2 gsoc2013-empathy-a18e5fce7d4e98b0f5bbe3d2c5dc0eb9a8684dd2.tar.lz gsoc2013-empathy-a18e5fce7d4e98b0f5bbe3d2c5dc0eb9a8684dd2.tar.xz gsoc2013-empathy-a18e5fce7d4e98b0f5bbe3d2c5dc0eb9a8684dd2.tar.zst gsoc2013-empathy-a18e5fce7d4e98b0f5bbe3d2c5dc0eb9a8684dd2.zip |
Add some useful APIs to EmpathyFTHandler
Add some APIs to EmpathyFTHandler useful to get transfer properties.
Also, implement an error signal.
Diffstat (limited to 'libempathy/empathy-ft-handler.h')
-rw-r--r-- | libempathy/empathy-ft-handler.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libempathy/empathy-ft-handler.h b/libempathy/empathy-ft-handler.h index 695d9c22d..c6701cb24 100644 --- a/libempathy/empathy-ft-handler.h +++ b/libempathy/empathy-ft-handler.h @@ -53,6 +53,11 @@ typedef struct { GObjectClass parent_class; } EmpathyFTHandlerClass; +/* we need to define some additional states for the handler */ +typedef enum { + EMPATHY_FT_HANDLER_STATE_SETUP = 6 +} EmpathyFTHandlerState; + typedef void (* EmpathyFTHandlerReadyCallback) (EmpathyFTHandler *handler, GError *error, gpointer user_data); @@ -72,7 +77,13 @@ void empathy_ft_handler_incoming_set_destination (EmpathyFTHandler *handler, void empathy_ft_handler_start_transfer (EmpathyFTHandler *handler, GCancellable *cancellable); +/* properties of the transfer */ const char * empathy_ft_handler_get_filename (EmpathyFTHandler *handler); +const char * empathy_ft_handler_get_content_type (EmpathyFTHandler *handler); +EmpathyContact * empathy_ft_handler_get_contact (EmpathyFTHandler *handler); +GFile * empathy_ft_handler_get_gfile (EmpathyFTHandler *handler); +EmpathyFTHandlerState empathy_ft_handler_get_state (EmpathyFTHandler *handler); +gboolean empathy_ft_handler_is_incoming (EmpathyFTHandler *handler); G_END_DECLS |