[empathy: 29/148] Add empathy_ft_handler_get_transferred_bytes API
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: svn-commits-list gnome org
- Subject: [empathy: 29/148] Add empathy_ft_handler_get_transferred_bytes API
- Date: Mon, 1 Jun 2009 12:10:01 -0400 (EDT)
commit 7eb34d005b43f8e1a4c6120ad00ac5730bb5cfb2
Author: Cosimo Cecchi <cosimo cecchi collabora co uk>
Date: Thu Apr 30 17:38:11 2009 +0200
Add empathy_ft_handler_get_transferred_bytes API
---
libempathy/empathy-ft-handler.c | 12 ++++++++++++
libempathy/empathy-ft-handler.h | 1 +
2 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/libempathy/empathy-ft-handler.c b/libempathy/empathy-ft-handler.c
index 38dd8e6..15085b8 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 c6701cb..3e4b218 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]