[empathy: 33/148] Remove some of the EmpFileTransferState crack



commit a698a6f2f622061c7b23c589a0a9eb0b72573993
Author: Cosimo Cecchi <cosimo cecchi collabora co uk>
Date:   Thu Apr 30 19:50:06 2009 +0200

    Remove some of the EmpFileTransferState crack
    
    The basic idea is to completely hide the state in EmpathyFTHandler, and
    let the clients interact with the signal interface instead of switching
    cases for the state.
---
 libempathy/empathy-tp-file.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/libempathy/empathy-tp-file.h b/libempathy/empathy-tp-file.h
index 0ec2671..3e95637 100644
--- a/libempathy/empathy-tp-file.h
+++ b/libempathy/empathy-tp-file.h
@@ -28,6 +28,8 @@
 #include <gio/gio.h>
 #include <glib.h>
 
+#include "extensions/extensions.h"
+
 #include <telepathy-glib/channel.h>
 
 G_BEGIN_DECLS
@@ -93,7 +95,7 @@ void empathy_tp_file_close (EmpathyTpFile *tp_file);
 
 gboolean empathy_tp_file_is_incoming (EmpathyTpFile *tp_file);
 
-guint empathy_tp_file_get_state (EmpathyTpFile *tp_file, guint *reason);
+EmpFileTransferState empathy_tp_file_get_state (EmpathyTpFile *tp_file, guint *reason);
 
 G_END_DECLS
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]