diff options
author | Cosimo Cecchi <cosimo.cecchi@collabora.co.uk> | 2009-02-18 23:41:12 +0800 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2009-06-01 23:47:34 +0800 |
commit | 58d08cef143811d990218551a922451609978610 (patch) | |
tree | d90811a64a6135a048d3c90aee13654019089b5b /libempathy/empathy-ft-factory.h | |
parent | 1e69ae50fa2a35ac4e54283d40e9d96777ff6e61 (diff) | |
download | gsoc2013-empathy-58d08cef143811d990218551a922451609978610.tar gsoc2013-empathy-58d08cef143811d990218551a922451609978610.tar.gz gsoc2013-empathy-58d08cef143811d990218551a922451609978610.tar.bz2 gsoc2013-empathy-58d08cef143811d990218551a922451609978610.tar.lz gsoc2013-empathy-58d08cef143811d990218551a922451609978610.tar.xz gsoc2013-empathy-58d08cef143811d990218551a922451609978610.tar.zst gsoc2013-empathy-58d08cef143811d990218551a922451609978610.zip |
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-factory.h')
-rw-r--r-- | libempathy/empathy-ft-factory.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libempathy/empathy-ft-factory.h b/libempathy/empathy-ft-factory.h index 221ea9ca8..f482855a3 100644 --- a/libempathy/empathy-ft-factory.h +++ b/libempathy/empathy-ft-factory.h @@ -28,6 +28,7 @@ #include <gio/gio.h> #include "empathy-contact.h" +#include "empathy-ft-handler.h" #include "empathy-dispatch-operation.h" G_BEGIN_DECLS @@ -57,10 +58,14 @@ GType empathy_ft_factory_get_type (void); /* public methods */ EmpathyFTFactory* empathy_ft_factory_dup_singleton (void); -void empathy_ft_factory_new_transfer (EmpathyFTFactory *factory, +void empathy_ft_factory_new_transfer_outgoing (EmpathyFTFactory *factory, EmpathyContact *contact, GFile *source); void empathy_ft_factory_claim_channel (EmpathyFTFactory *factory, - EmpathyDispatchOperation *operation, GFile *destination); + EmpathyDispatchOperation *operation); +void empathy_ft_factory_set_destination_for_incoming_handler + (EmpathyFTFactory *factory, + EmpathyFTHandler *handler, + GFile *destination); G_END_DECLS |