diff options
Diffstat (limited to 'src/ui/contact_entry.h')
-rw-r--r-- | src/ui/contact_entry.h | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/src/ui/contact_entry.h b/src/ui/contact_entry.h index a9ff9dd..dc692de 100644 --- a/src/ui/contact_entry.h +++ b/src/ui/contact_entry.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 |
@@ -39,13 +39,35 @@ typedef struct UI_CONTACT_ENTRY_Handle | |||
39 | GtkLabel *subtitle_label; | 39 | GtkLabel *subtitle_label; |
40 | } UI_CONTACT_ENTRY_Handle; | 40 | } UI_CONTACT_ENTRY_Handle; |
41 | 41 | ||
42 | /** | ||
43 | * Allocates and creates a new contact entry | ||
44 | * handle to manage a contact in a list for | ||
45 | * a given messenger application. | ||
46 | * | ||
47 | * @param app Messenger application | ||
48 | * @return New contact entry handle | ||
49 | */ | ||
42 | UI_CONTACT_ENTRY_Handle* | 50 | UI_CONTACT_ENTRY_Handle* |
43 | ui_contact_entry_new(MESSENGER_Application *app); | 51 | ui_contact_entry_new(MESSENGER_Application *app); |
44 | 52 | ||
53 | /** | ||
54 | * Sets the content of the given contact entry | ||
55 | * handle respectively to visually represent a | ||
56 | * selected chat contact. | ||
57 | * | ||
58 | * @param handle Contact entry handle | ||
59 | * @param contact Chat contact | ||
60 | */ | ||
45 | void | 61 | void |
46 | ui_contact_entry_set_contact(UI_CONTACT_ENTRY_Handle* handle, | 62 | ui_contact_entry_set_contact(UI_CONTACT_ENTRY_Handle* handle, |
47 | const struct GNUNET_CHAT_Contact *contact); | 63 | const struct GNUNET_CHAT_Contact *contact); |
48 | 64 | ||
65 | /** | ||
66 | * Frees its resources and destroys a given | ||
67 | * contact entry handle. | ||
68 | * | ||
69 | * @param handle Contact entry handle | ||
70 | */ | ||
49 | void | 71 | void |
50 | ui_contact_entry_delete(UI_CONTACT_ENTRY_Handle *handle); | 72 | ui_contact_entry_delete(UI_CONTACT_ENTRY_Handle *handle); |
51 | 73 | ||