aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-ft-handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy/empathy-ft-handler.c')
-rw-r--r--libempathy/empathy-ft-handler.c20
1 files changed, 16 insertions, 4 deletions
diff --git a/libempathy/empathy-ft-handler.c b/libempathy/empathy-ft-handler.c
index 15085b83f..8ac5430b3 100644
--- a/libempathy/empathy-ft-handler.c
+++ b/libempathy/empathy-ft-handler.c
@@ -95,7 +95,7 @@ typedef struct {
guint64 mtime;
gchar *content_hash;
EmpFileHashType content_hash_type;
- EmpathyFTHandlerState current_state;
+ EmpFileTransferState current_state;
} EmpathyFTHandlerPriv;
static guint signals[LAST_SIGNAL] = { 0 };
@@ -977,9 +977,9 @@ empathy_ft_handler_get_gfile (EmpathyFTHandler *handler)
return priv->gfile;
}
-/* FIXME! */
-EmpathyFTHandlerState
-empathy_ft_handler_get_state (EmpathyFTHandler *handler)
+EmpFileTransferState
+empathy_ft_handler_get_state (EmpathyFTHandler *handler,
+ char **state_string)
{
EmpathyFTHandlerPriv *priv;
@@ -1016,3 +1016,15 @@ empathy_ft_handler_get_transferred_bytes (EmpathyFTHandler *handler)
return priv->transferred_bytes;
}
+
+guint64
+empathy_ft_handler_get_total_bytes (EmpathyFTHandler *handler)
+{
+ EmpathyFTHandlerPriv *priv;
+
+ g_return_val_if_fail (EMPATHY_IS_FT_HANDLER (handler), 0);
+
+ priv = GET_PRIV (handler);
+
+ return priv->total_bytes;
+}