diff options
author | Cosimo Cecchi <cosimo.cecchi@collabora.co.uk> | 2009-02-18 16:41:12 +0100 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2009-06-01 17:47:34 +0200 |
commit | 58d08cef143811d990218551a922451609978610 (patch) | |
tree | d90811a64a6135a048d3c90aee13654019089b5b /libempathy/empathy-ft-handler.h | |
parent | 1e69ae50fa2a35ac4e54283d40e9d96777ff6e61 (diff) |
Rethink a bit the logic for an incoming transfer.
Now, a client should have to do the following, in order to receive a file transfer:
- let the EmpathyFTFactory claim the EmpathyDispatchOperation
- the factory will emit "new-incoming-transfer" when the handler is filled with
the relevant properties
- now you can choose a destination file, and then you should call _set_destination
on EmpathyFTFactory passing the handler.
- the factory will emit "new-ft-handler" as you're now ready to start the actual
transfer.
Diffstat (limited to 'libempathy/empathy-ft-handler.h')
-rw-r--r-- | libempathy/empathy-ft-handler.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libempathy/empathy-ft-handler.h b/libempathy/empathy-ft-handler.h index ee32ffd3..695d9c22 100644 --- a/libempathy/empathy-ft-handler.h +++ b/libempathy/empathy-ft-handler.h @@ -63,12 +63,17 @@ GType empathy_ft_handler_get_type (void); void empathy_ft_handler_new_outgoing (EmpathyContact *contact, GFile *source, EmpathyFTHandlerReadyCallback callback, gpointer user_data); + void empathy_ft_handler_new_incoming (EmpathyTpFile *tp_file, - GFile *destination, EmpathyFTHandlerReadyCallback callback, - gpointer user_data); + EmpathyFTHandlerReadyCallback callback, gpointer user_data); +void empathy_ft_handler_incoming_set_destination (EmpathyFTHandler *handler, + GFile *destination); + void empathy_ft_handler_start_transfer (EmpathyFTHandler *handler, GCancellable *cancellable); +const char * empathy_ft_handler_get_filename (EmpathyFTHandler *handler); + G_END_DECLS #endif /* __EMPATHY_FT_HANDLER_H__ */ |