]> git.0d.be Git - empathy.git/blobdiff - libempathy/empathy-ft-handler.h
update gnome-contacts's desktop file
[empathy.git] / libempathy / empathy-ft-handler.h
index 7d41536110e043aa38e8bdedc09563dfae90f3a2..2fc1b609f78a62aa032a1840488039200a5c4339 100644 (file)
@@ -26,8 +26,8 @@
 
 #include <glib-object.h>
 #include <gio/gio.h>
+#include <telepathy-glib/telepathy-glib.h>
 
-#include "empathy-tp-file.h"
 #include "empathy-contact.h"
 
 G_BEGIN_DECLS
@@ -56,6 +56,18 @@ typedef struct {
   GObjectClass parent_class;
 } EmpathyFTHandlerClass;
 
+#define EMPATHY_FT_ERROR_QUARK g_quark_from_static_string ("EmpathyFTError")
+
+typedef enum {
+       EMPATHY_FT_ERROR_FAILED,
+       EMPATHY_FT_ERROR_HASH_MISMATCH,
+       EMPATHY_FT_ERROR_TP_ERROR,
+       EMPATHY_FT_ERROR_SOCKET,
+       EMPATHY_FT_ERROR_NOT_SUPPORTED,
+       EMPATHY_FT_ERROR_INVALID_SOURCE_FILE,
+       EMPATHY_FT_ERROR_EMPTY_SOURCE_FILE
+} EmpathyFTErrorEnum;
+
 /**
  * EmpathyFTHandlerReadyCallback:
  * @handler: the handler which is now ready
@@ -71,10 +83,11 @@ GType empathy_ft_handler_get_type (void);
 /* public methods */
 void empathy_ft_handler_new_outgoing (EmpathyContact *contact,
     GFile *source,
+    gint64 action_time,
     EmpathyFTHandlerReadyCallback callback,
     gpointer user_data);
 
-void empathy_ft_handler_new_incoming (EmpathyTpFile *tp_file,
+void empathy_ft_handler_new_incoming (TpFileTransferChannel *channel,
     EmpathyFTHandlerReadyCallback callback,
     gpointer user_data);
 void empathy_ft_handler_incoming_set_destination (EmpathyFTHandler *handler,