aboutsummaryrefslogtreecommitdiff
path: root/src/ui/chat.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/chat.h')
-rw-r--r--src/ui/chat.h28
1 files changed, 26 insertions, 2 deletions
diff --git a/src/ui/chat.h b/src/ui/chat.h
index 6619506..6ce6064 100644
--- a/src/ui/chat.h
+++ b/src/ui/chat.h
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of GNUnet. 2 This file is part of GNUnet.
3 Copyright (C) 2021 GNUnet e.V. 3 Copyright (C) 2021--2022 GNUnet e.V.
4 4
5 GNUnet is free software: you can redistribute it and/or modify it 5 GNUnet is free software: you can redistribute it and/or modify it
6 under the terms of the GNU Affero General Public License as published 6 under the terms of the GNU Affero General Public License as published
@@ -32,13 +32,17 @@
32#include <gnunet/gnunet_chat_lib.h> 32#include <gnunet/gnunet_chat_lib.h>
33 33
34typedef struct MESSENGER_Application MESSENGER_Application; 34typedef struct MESSENGER_Application MESSENGER_Application;
35typedef struct UI_MESSAGE_Handle UI_MESSAGE_Handle;
35typedef struct UI_PICKER_Handle UI_PICKER_Handle; 36typedef struct UI_PICKER_Handle UI_PICKER_Handle;
37typedef struct UI_FILE_LOAD_ENTRY_Handle UI_FILE_LOAD_ENTRY_Handle;
36 38
37typedef struct UI_CHAT_Handle 39typedef struct UI_CHAT_Handle
38{ 40{
39 GList *messages; 41 GList *messages;
40 gdouble edge_value; 42 gdouble edge_value;
41 43
44 GList *loads;
45
42 GtkBuilder *builder; 46 GtkBuilder *builder;
43 GtkWidget *chat_box; 47 GtkWidget *chat_box;
44 48
@@ -48,8 +52,12 @@ typedef struct UI_CHAT_Handle
48 52
49 GtkLabel *chat_title; 53 GtkLabel *chat_title;
50 GtkLabel *chat_subtitle; 54 GtkLabel *chat_subtitle;
51 GtkButton *chat_details_button;
52 55
56 GtkButton *chat_load_button;
57 GtkPopover *chat_load_popover;
58 GtkListBox *chat_load_listbox;
59
60 GtkButton *chat_details_button;
53 GtkLabel *chat_details_label; 61 GtkLabel *chat_details_label;
54 GtkButton *hide_chat_details_button; 62 GtkButton *hide_chat_details_button;
55 GtkBox *chat_details_contacts_box; 63 GtkBox *chat_details_contacts_box;
@@ -81,4 +89,20 @@ ui_chat_update(UI_CHAT_Handle *handle,
81void 89void
82ui_chat_delete(UI_CHAT_Handle *handle); 90ui_chat_delete(UI_CHAT_Handle *handle);
83 91
92void
93ui_chat_add_message(UI_CHAT_Handle *handle,
94 UI_MESSAGE_Handle *message);
95
96void
97ui_chat_remove_message(UI_CHAT_Handle *handle,
98 UI_MESSAGE_Handle *message);
99
100void
101ui_chat_add_file_load(UI_CHAT_Handle *handle,
102 UI_FILE_LOAD_ENTRY_Handle *file_load);
103
104void
105ui_chat_remove_file_load(UI_CHAT_Handle *handle,
106 UI_FILE_LOAD_ENTRY_Handle *file_load);
107
84#endif /* UI_CHAT_H_ */ 108#endif /* UI_CHAT_H_ */