]> git.0d.be Git - empathy.git/blobdiff - libempathy/empathy-ft-factory.h
EmpathySmileyManager: use the proper Unicode characters
[empathy.git] / libempathy / empathy-ft-factory.h
index 221ea9ca8c0a9eea8458aa75e3b9573610764048..dcbffe1e1eb66879c10b8f6ee26abd651ecbba3f 100644 (file)
 #include <gio/gio.h>
 
 #include "empathy-contact.h"
-#include "empathy-dispatch-operation.h"
+#include "empathy-ft-handler.h"
 
 G_BEGIN_DECLS
 
 #define EMPATHY_TYPE_FT_FACTORY empathy_ft_factory_get_type()
 #define EMPATHY_FT_FACTORY(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), EMPATHY_TYPE_FT_FACTORY, EmpathyFTFactory))
+  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
+   EMPATHY_TYPE_FT_FACTORY, EmpathyFTFactory))
 #define EMPATHY_FT_FACTORY_CLASS(klass) \
-  (G_TYPE_CHECK_CLASS_CAST ((klass), EMPATHY_TYPE_FT_FACTORY, EmpathyFTFactoryClass))
+  (G_TYPE_CHECK_CLASS_CAST ((klass), \
+   EMPATHY_TYPE_FT_FACTORY, EmpathyFTFactoryClass))
 #define EMPATHY_IS_FT_FACTORY(obj) \
   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EMPATHY_TYPE_FT_FACTORY))
 #define EMPATHY_IS_FT_FACTORY_CLASS(klass) \
   (G_TYPE_CHECK_CLASS_TYPE ((klass), EMPATHY_TYPE_FT_FACTORY))
 #define EMPATHY_FT_FACTORY_GET_CLASS(obj) \
-  (G_TYPE_INSTANCE_GET_CLASS ((obj), EMPATHY_TYPE_FT_FACTORY, EmpathyFTFactoryClass))
+  (G_TYPE_INSTANCE_GET_CLASS ((obj), \
+   EMPATHY_TYPE_FT_FACTORY, EmpathyFTFactoryClass))
 
 typedef struct {
   GObject parent;
@@ -57,10 +60,17 @@ GType empathy_ft_factory_get_type (void);
 
 /* public methods */
 EmpathyFTFactory* empathy_ft_factory_dup_singleton (void);
-void empathy_ft_factory_new_transfer (EmpathyFTFactory *factory,
-  EmpathyContact *contact, GFile *source);
-void empathy_ft_factory_claim_channel (EmpathyFTFactory *factory,
-  EmpathyDispatchOperation *operation, GFile *destination);
+void empathy_ft_factory_new_transfer_outgoing (EmpathyFTFactory *factory,
+    EmpathyContact *contact,
+    GFile *source,
+    gint64 user_action_time);
+void empathy_ft_factory_set_destination_for_incoming_handler (
+    EmpathyFTFactory *factory,
+    EmpathyFTHandler *handler,
+    GFile *destination);
+
+gboolean empathy_ft_factory_register (EmpathyFTFactory *self,
+    GError **error);
 
 G_END_DECLS