aboutsummaryrefslogtreecommitdiff
path: root/src/ui/account_entry.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/account_entry.h')
-rw-r--r--src/ui/account_entry.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/ui/account_entry.h b/src/ui/account_entry.h
index fa9bc32..ef79fb2 100644
--- a/src/ui/account_entry.h
+++ b/src/ui/account_entry.h
@@ -37,17 +37,47 @@ typedef struct UI_ACCOUNT_ENTRY_Handle
37 GtkLabel *entry_label; 37 GtkLabel *entry_label;
38} UI_ACCOUNT_ENTRY_Handle; 38} UI_ACCOUNT_ENTRY_Handle;
39 39
40/**
41 * Allocates and creates a new account entry
42 * handle to manage an account in a list for
43 * a given messenger application.
44 *
45 * @param app Messenger application
46 * @return New account entry handle
47 */
40UI_ACCOUNT_ENTRY_Handle* 48UI_ACCOUNT_ENTRY_Handle*
41ui_account_entry_new(MESSENGER_Application *app); 49ui_account_entry_new(MESSENGER_Application *app);
42 50
51/**
52 * Sets the content of the given account entry
53 * handle respectively to visually represent a
54 * selected chat account.
55 *
56 * @param handle Account entry handle
57 * @param account Chat account
58 */
43void 59void
44ui_account_entry_set_account(UI_ACCOUNT_ENTRY_Handle* handle, 60ui_account_entry_set_account(UI_ACCOUNT_ENTRY_Handle* handle,
45 const struct GNUNET_CHAT_Account *account); 61 const struct GNUNET_CHAT_Account *account);
46 62
63/**
64 * Sets the content of the given account entry
65 * handle respectively to visually represent a
66 * selected chat contact.
67 *
68 * @param handle Account entry handle
69 * @param contact Chat contact
70 */
47void 71void
48ui_account_entry_set_contact(UI_ACCOUNT_ENTRY_Handle* handle, 72ui_account_entry_set_contact(UI_ACCOUNT_ENTRY_Handle* handle,
49 const struct GNUNET_CHAT_Contact *contact); 73 const struct GNUNET_CHAT_Contact *contact);
50 74
75/**
76 * Frees its resources and destroys a given
77 * account entry handle.
78 *
79 * @param handle Account entry handle
80 */
51void 81void
52ui_account_entry_delete(UI_ACCOUNT_ENTRY_Handle *handle); 82ui_account_entry_delete(UI_ACCOUNT_ENTRY_Handle *handle);
53 83