aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimo.cecchi@collabora.co.uk>2009-04-30 23:38:11 +0800
committerCosimo Cecchi <cosimoc@gnome.org>2009-06-01 23:47:35 +0800
commit7eb34d005b43f8e1a4c6120ad00ac5730bb5cfb2 (patch)
treee6afec0bc61548a2aa5ce880f32eb948620dd7cc /libempathy
parent113996fbc2c8afd4835a525b1f977e96c002ddf5 (diff)
downloadgsoc2013-empathy-7eb34d005b43f8e1a4c6120ad00ac5730bb5cfb2.tar
gsoc2013-empathy-7eb34d005b43f8e1a4c6120ad00ac5730bb5cfb2.tar.gz
gsoc2013-empathy-7eb34d005b43f8e1a4c6120ad00ac5730bb5cfb2.tar.bz2
gsoc2013-empathy-7eb34d005b43f8e1a4c6120ad00ac5730bb5cfb2.tar.lz
gsoc2013-empathy-7eb34d005b43f8e1a4c6120ad00ac5730bb5cfb2.tar.xz
gsoc2013-empathy-7eb34d005b43f8e1a4c6120ad00ac5730bb5cfb2.tar.zst
gsoc2013-empathy-7eb34d005b43f8e1a4c6120ad00ac5730bb5cfb2.zip
Add empathy_ft_handler_get_transferred_bytes API
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-ft-handler.c12
-rw-r--r--libempathy/empathy-ft-handler.h1
2 files changed, 13 insertions, 0 deletions
diff --git a/libempathy/empathy-ft-handler.c b/libempathy/empathy-ft-handler.c
index 38dd8e63e..15085b83f 100644
--- a/libempathy/empathy-ft-handler.c
+++ b/libempathy/empathy-ft-handler.c
@@ -1004,3 +1004,15 @@ empathy_ft_handler_is_incoming (EmpathyFTHandler *handler)
return empathy_tp_file_is_incoming (priv->tpfile);
}
+
+guint64
+empathy_ft_handler_get_transferred_bytes (EmpathyFTHandler *handler)
+{
+ EmpathyFTHandlerPriv *priv;
+
+ g_return_val_if_fail (EMPATHY_IS_FT_HANDLER (handler), 0);
+
+ priv = GET_PRIV (handler);
+
+ return priv->transferred_bytes;
+}
diff --git a/libempathy/empathy-ft-handler.h b/libempathy/empathy-ft-handler.h
index c6701cb24..3e4b2186a 100644
--- a/libempathy/empathy-ft-handler.h
+++ b/libempathy/empathy-ft-handler.h
@@ -84,6 +84,7 @@ EmpathyContact * empathy_ft_handler_get_contact (EmpathyFTHandler *handler);
GFile * empathy_ft_handler_get_gfile (EmpathyFTHandler *handler);
EmpathyFTHandlerState empathy_ft_handler_get_state (EmpathyFTHandler *handler);
gboolean empathy_ft_handler_is_incoming (EmpathyFTHandler *handler);
+guint64 empathy_ft_handler_get_transferred_bytes (EmpathyFTHandler *handler);
G_END_DECLS