#include "empathy-ft-handler.h"
#include "empathy-dispatcher.h"
+#include "empathy-marshal.h"
#include "empathy-utils.h"
G_DEFINE_TYPE (EmpathyFTHandler, empathy_ft_handler, G_TYPE_OBJECT)
TRANSFER_PROGRESS,
TRANSFER_DONE,
TRANSFER_ERROR,
+ LAST_SIGNAL
};
typedef struct {
GCancellable *cancellable;
} EmpathyFTHandlerPriv;
+static guint signals[LAST_SIGNAL] = { 0 };
+
/* prototypes */
static void schedule_hash_chunk (HashingData *hash_data);
g_object_unref (priv->cancellable);
priv->cancellable = NULL;
}
-
+
G_OBJECT_CLASS (empathy_ft_handler_parent_class)->dispose (object);
}
signals[TRANSFER_ERROR] =
g_signal_new ("transfer-error", G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, 0, NULL, NULL,
- g_cclosure_marshal_VOID__OBJECT_POINTER,
+ _empathy_marshal_VOID__OBJECT_POINTER,
G_TYPE_NONE,
2, EMPATHY_TYPE_TP_FILE, G_TYPE_POINTER);
GFile *source);
EmpathyFTHandler * empathy_ft_handler_new_incoming (EmpathyTpFile *tp_file,
GFile *destination);
-void empathy_ft_handler_start_transfer (EmpathyFTHandler *handler);
+void empathy_ft_handler_start_transfer (EmpathyFTHandler *handler,
+ GCancellable *cancellable);
G_END_DECLS