aboutsummaryrefslogtreecommitdiff
path: root/src/conversation/gnunet-conversation-gtk.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/conversation/gnunet-conversation-gtk.h')
-rw-r--r--src/conversation/gnunet-conversation-gtk.h71
1 files changed, 58 insertions, 13 deletions
diff --git a/src/conversation/gnunet-conversation-gtk.h b/src/conversation/gnunet-conversation-gtk.h
index 770fc6dc..d40f960f 100644
--- a/src/conversation/gnunet-conversation-gtk.h
+++ b/src/conversation/gnunet-conversation-gtk.h
@@ -38,7 +38,48 @@
38 38
39#define LOG(format, ...) log_message(g_strdup_printf (format, ## __VA_ARGS__)) 39#define LOG(format, ...) log_message(g_strdup_printf (format, ## __VA_ARGS__))
40 40
41#define MAX_TO_ADDR 124 41
42
43/**
44 * List of active calls
45 */
46 static GtkListStore *active_liststore;
47
48 /**
49 * List of active calls
50 */
51 static GtkTreeView *active_treeview;
52
53
54/*
55 * active calls treevieuw columns
56 */
57
58enum {
59 AL_caller_id, //*gchar
60 AL_caller, //*
61 AL_caller_num, //gint
62 AL_caller_type, //gint
63 AL_caller_state //gint
64};
65/**
66 * callerstate (state of incoming call)
67 */
68enum {
69 CT_active,
70 CT_suspended,
71 CT_ringing,
72 CT_dead,
73 CT_hangup,
74 CT_rejected
75};
76/**
77 * type of call
78 */
79enum {
80 CALL_IN,
81 CALL_OUT
82};
42 83
43 84
44/** 85/**
@@ -47,7 +88,7 @@
47 * @return configuration handle 88 * @return configuration handle
48 */ 89 */
49const struct GNUNET_CONFIGURATION_Handle * 90const struct GNUNET_CONFIGURATION_Handle *
50GIG_get_configuration (void); 91GIG_get_configuration ();
51 92
52 93
53/** 94/**
@@ -155,6 +196,11 @@ struct CallList
155 struct GNUNET_CONVERSATION_Caller *caller; 196 struct GNUNET_CONVERSATION_Caller *caller;
156 197
157 /** 198 /**
199 * Handle to call currently selected in list
200 */
201 struct GNUNET_CONVERSATION_Caller *caller_selected;
202
203 /**
158 * String identifying the caller. 204 * String identifying the caller.
159 */ 205 */
160 char *caller_id; 206 char *caller_id;
@@ -177,21 +223,31 @@ static struct GNUNET_CONVERSATION_Phone *phone;
177 * Call handle (for active outgoing call). 223 * Call handle (for active outgoing call).
178 */ 224 */
179static struct GNUNET_CONVERSATION_Call *call; 225static struct GNUNET_CONVERSATION_Call *call;
226//static struct GtkTreeIter gcall;
180 227
181/** 228/**
182 * Caller handle (for active incoming call). 229 * Caller handle (for active incoming call).
183 */ 230 */
184static struct CallList *cl_active; 231static struct CallList *cl_active;
232//static GtkTreeIter gcl_active;
185 233
186/** 234/**
187 * Head of calls waiting to be accepted. 235 * Head of calls waiting to be accepted.
188 */ 236 */
189static struct CallList *cl_head; 237static struct CallList *cl_head;
238//gtk
239//static GtkTreeIter gcl_head;
240
241/**
242 * currently selected call
243 */
244//static GtkTreeIter gcl_selected;
190 245
191/** 246/**
192 * Tail of calls waiting to be accepted. 247 * Tail of calls waiting to be accepted.
193 */ 248 */
194static struct CallList *cl_tail; 249static struct CallList *cl_tail;
250//static GtkTreeIter gcl_tail;
195 251
196/** 252/**
197 * Desired phone line. 253 * Desired phone line.
@@ -296,17 +352,6 @@ static void
296identity_cb (void *cls, struct GNUNET_IDENTITY_Ego *ego, void **ctx, 352identity_cb (void *cls, struct GNUNET_IDENTITY_Ego *ego, void **ctx,
297 const char *name); 353 const char *name);
298 354
299/**
300 * List of active calls
301 */
302static GtkListStore *active_liststore;
303
304/**
305 * List of active calls
306 */
307static GtkTreeView *active_treeview;
308
309
310 355
311/** 356/**
312 * List of contacts (records). 357 * List of contacts (records).