pidgin/pidginnotificationaddcontact.h

changeset 41517
5bafe75d3907
child 41573
2c4955b639a1
equal deleted inserted replaced
41516:c8d3ab896cc6 41517:5bafe75d3907
1 /*
2 * Pidgin - Internet Messenger
3 * Copyright (C) Pidgin Developers <devel@pidgin.im>
4 *
5 * Pidgin is the legal property of its developers, whose names are too numerous
6 * to list here. Please refer to the COPYRIGHT file distributed with this
7 * source distribution.
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, see <https://www.gnu.org/licenses/>.
21 */
22
23 #if !defined(PIDGIN_GLOBAL_HEADER_INSIDE) && !defined(PIDGIN_COMPILATION)
24 # error "only <pidgin.h> may be included directly"
25 #endif
26
27 #ifndef PIDGIN_NOTIFICATION_ADD_CONTACT_H
28 #define PIDGIN_NOTIFICATION_ADD_CONTACT_H
29
30 #include <glib.h>
31
32 #include <gtk/gtk.h>
33
34 #include <handy.h>
35
36 #include <purple.h>
37
38 G_BEGIN_DECLS
39
40 /**
41 * PidginNotificationAddContact:
42 *
43 * #PidginNotificationAddContact is a widget that displays
44 * notifications from [class@Purple.NotificationManager] for
45 * [class@Purple.AddContactRequest].
46 *
47 * Since: 3.0.0
48 */
49
50 #define PIDGIN_TYPE_NOTIFICATION_ADD_CONTACT (pidgin_notification_add_contact_get_type())
51 G_DECLARE_FINAL_TYPE(PidginNotificationAddContact, pidgin_notification_add_contact,
52 PIDGIN, NOTIFICATION_ADD_CONTACT, HdyActionRow)
53
54 /**
55 * pidgin_notification_add_contact_new:
56 * @notification: A [class@Purple.Notification] to display.
57 *
58 * Creates a new #PidginNotificationAddContact instance that will display
59 * @notification.
60 *
61 * Returns: (transfer full): The new #PidginNotificationAddContact
62 * instance.
63 */
64 GtkWidget *pidgin_notification_add_contact_new(PurpleNotification *notification);
65
66 /**
67 * pidgin_notification_add_contact_get_notification:
68 * @request: The instance.
69 *
70 * Gets the [class@Purple.Notification] that @request is displaying.
71 *
72 * Returns: (transfer none): The notification.
73 *
74 * Since: 3.0.0
75 */
76 PurpleNotification *pidgin_notification_add_contact_get_notification(PidginNotificationAddContact *request);
77
78 G_END_DECLS
79
80 #endif /* PIDGIN_NOTIFICATION_ADD_CONTACT_H */

mercurial