diff options
Diffstat (limited to 'libempathy')
-rw-r--r-- | libempathy/empathy-ft-handler.c | 12 | ||||
-rw-r--r-- | 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 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 |