jingle-filetransfer/filetransfer.h
changeset 133 361d8577ebd1
parent 131 943c3f938cb4
child 138 dde8eaf7ff2c
--- a/jingle-filetransfer/filetransfer.h	Mon Aug 16 18:32:55 2010 +0200
+++ b/jingle-filetransfer/filetransfer.h	Mon Aug 16 18:33:33 2010 +0200
@@ -15,6 +15,15 @@
   JINGLE_FT_INCOMING,
   JINGLE_FT_OUTGOING
 } JingleFTDirection;
+
+typedef enum {
+  JINGLE_FT_PENDING,
+  JINGLE_FT_STARTING,
+  JINGLE_FT_ENDING,
+  JINGLE_FT_REJECT,
+  JINGLE_FT_ERROR
+} JingleFTState;
+
 typedef struct {
   /* the last modification of the file, optional */
   time_t date;
@@ -40,6 +49,9 @@
   /* Is it if the file is incoming or outgoing */
   JingleFTDirection dir;
   
+  /* The state of the file (PENDING, STARTING, ...) */
+  JingleFTState state;
+  
   /* A little description of the transfer */
   gchar *desc;