From 58d08cef143811d990218551a922451609978610 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Wed, 18 Feb 2009 16:41:12 +0100 Subject: 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. --- libempathy/empathy-ft-handler.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'libempathy/empathy-ft-handler.h') diff --git a/libempathy/empathy-ft-handler.h b/libempathy/empathy-ft-handler.h index ee32ffd31..695d9c22d 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__ */ -- cgit v1.2.3