diff options
Diffstat (limited to 'src/ui/account_entry.h')
-rw-r--r-- | src/ui/account_entry.h | 30 |
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 | */ | ||
40 | UI_ACCOUNT_ENTRY_Handle* | 48 | UI_ACCOUNT_ENTRY_Handle* |
41 | ui_account_entry_new(MESSENGER_Application *app); | 49 | ui_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 | */ | ||
43 | void | 59 | void |
44 | ui_account_entry_set_account(UI_ACCOUNT_ENTRY_Handle* handle, | 60 | ui_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 | */ | ||
47 | void | 71 | void |
48 | ui_account_entry_set_contact(UI_ACCOUNT_ENTRY_Handle* handle, | 72 | ui_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 | */ | ||
51 | void | 81 | void |
52 | ui_account_entry_delete(UI_ACCOUNT_ENTRY_Handle *handle); | 82 | ui_account_entry_delete(UI_ACCOUNT_ENTRY_Handle *handle); |
53 | 83 | ||