aboutsummaryrefslogtreecommitdiff
path: root/src/ui/messenger.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/messenger.h')
-rw-r--r--src/ui/messenger.h72
1 files changed, 72 insertions, 0 deletions
diff --git a/src/ui/messenger.h b/src/ui/messenger.h
new file mode 100644
index 0000000..2bb8d8b
--- /dev/null
+++ b/src/ui/messenger.h
@@ -0,0 +1,72 @@
1/*
2 This file is part of GNUnet.
3 Copyright (C) 2021 GNUnet e.V.
4
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
7 by the Free Software Foundation, either version 3 of the License,
8 or (at your option) any later version.
9
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details.
14
15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18 SPDX-License-Identifier: AGPL3.0-or-later
19 */
20/*
21 * @author Tobias Frisch
22 * @file ui/messenger.h
23 */
24
25#ifndef UI_MESSENGER_H_
26#define UI_MESSENGER_H_
27
28#include <gtk-3.0/gtk/gtk.h>
29#include <libhandy-1/handy.h>
30
31#define UI_UNUSED __attribute__((unused))
32
33struct UI_MESSENGER_Handle
34{
35 GtkApplicationWindow *main_window;
36
37 HdyLeaflet *leaflet_chat;
38 HdyFlap *flap_user_details;
39 HdyFlap *flap_chat_details;
40
41 HdyHeaderBar *title_bar;
42 GtkButton *back_button;
43
44 HdyAvatar *profile_avatar;
45 GtkLabel *profile_label;
46
47 GtkButton *hide_user_details_button;
48 GtkButton *favourites_button;
49 GtkButton *account_details_button;
50
51 GtkRevealer *account_details_revealer;
52 GtkListBox *accounts_listbox;
53
54 GtkButton *new_group_button;
55 GtkButton *new_platform_button;
56 GtkButton *contacts_button;
57 GtkButton *calls_button;
58 GtkButton *settings_button;
59 GtkButton *night_mode_button;
60
61 GtkButton *user_details_button;
62 GtkSearchEntry *chats_search;
63 GtkListBox *chats_listbox;
64
65 GtkLabel *chat_title;
66 GtkLabel *chat_subtitle;
67};
68
69void
70ui_messenger_init(struct UI_MESSENGER_Handle *handle);
71
72#endif /* UI_MESSENGER_H_ */