aboutsummaryrefslogtreecommitdiff
path: root/src/ui/contact_info.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/contact_info.h')
-rw-r--r--src/ui/contact_info.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/ui/contact_info.h b/src/ui/contact_info.h
index f602073..82f0d43 100644
--- a/src/ui/contact_info.h
+++ b/src/ui/contact_info.h
@@ -63,15 +63,38 @@ typedef struct UI_CONTACT_INFO_Handle
63 QRcode *qr; 63 QRcode *qr;
64} UI_CONTACT_INFO_Handle; 64} UI_CONTACT_INFO_Handle;
65 65
66/**
67 * Initializes a handle for the contact info dialog
68 * of a given messenger application.
69 *
70 * @param app Messenger application
71 * @param handle Contact info dialog handle
72 */
66void 73void
67ui_contact_info_dialog_init(MESSENGER_Application *app, 74ui_contact_info_dialog_init(MESSENGER_Application *app,
68 UI_CONTACT_INFO_Handle *handle); 75 UI_CONTACT_INFO_Handle *handle);
69 76
77/**
78 * Updates a given contact info dialog handle with
79 * current data of a certain chat contact and whether
80 * their identity should be visually revealed in the
81 * dialog.
82 *
83 * @param handle Contact info dialog handle
84 * @param contact Chat contact
85 * @param reveal Flag to reveal QR code of identity key
86 */
70void 87void
71ui_contact_info_dialog_update(UI_CONTACT_INFO_Handle *handle, 88ui_contact_info_dialog_update(UI_CONTACT_INFO_Handle *handle,
72 struct GNUNET_CHAT_Contact *contact, 89 struct GNUNET_CHAT_Contact *contact,
73 gboolean reveal); 90 gboolean reveal);
74 91
92/**
93 * Cleans up the allocated resources and resets the
94 * state of a given contact info dialog handle.
95 *
96 * @param handle Contact info dialog handle
97 */
75void 98void
76ui_contact_info_dialog_cleanup(UI_CONTACT_INFO_Handle *handle); 99ui_contact_info_dialog_cleanup(UI_CONTACT_INFO_Handle *handle);
77 100