libpurple/purplenotificationconnectionerror.h

changeset 42985
66ad6fc11879
child 43004
06521648500e
equal deleted inserted replaced
42984:818220289e67 42985:66ad6fc11879
1 /*
2 * Purple - Internet Messaging Library
3 * Copyright (C) Pidgin Developers <devel@pidgin.im>
4 *
5 * Purple 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 library is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU General Public License as published by the Free
11 * Software Foundation; either version 2 of the License, or (at your option)
12 * any later version.
13 *
14 * This library is distributed in the hope that it will be useful, but WITHOUT
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
17 * more details.
18 *
19 * You should have received a copy of the GNU General Public License along with
20 * this library; if not, see <https://www.gnu.org/licenses/>.
21 */
22
23 #if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION)
24 # error "only <purple.h> may be included directly"
25 #endif
26
27 #ifndef PURPLE_NOTIFICATION_CONNECTION_ERROR_H
28 #define PURPLE_NOTIFICATION_CONNECTION_ERROR_H
29
30 #include <glib.h>
31 #include <glib-object.h>
32
33 #include "purpleconnectionerrorinfo.h"
34 #include "purplenotification.h"
35 #include "purpleversion.h"
36
37 G_BEGIN_DECLS
38
39 /**
40 * PurpleNotificationConnectionError:
41 *
42 * A [class@Notification] for connection errors on [class@Account].
43 *
44 * Since: 3.0
45 */
46
47 #define PURPLE_TYPE_NOTIFICATION_CONNECTION_ERROR (purple_notification_connection_error_get_type())
48
49 PURPLE_AVAILABLE_IN_3_0
50 G_DECLARE_FINAL_TYPE(PurpleNotificationConnectionError,
51 purple_notification_connection_error, PURPLE,
52 NOTIFICATION_CONNECTION_ERROR, PurpleNotification)
53
54 #include "purpleaccount.h"
55
56 /**
57 * purple_notification_connection_error_new:
58 * @id: (nullable): An identifier for this notification.
59 * @account: The account.
60 * @info: The [type@ConnectionErrorInfo] of the error.
61 *
62 * Creates a new [class@Notification] for a connection error on @account.
63 *
64 * Returns: (nullable): The new notification.
65 *
66 * Since: 3.0
67 */
68 PURPLE_AVAILABLE_IN_3_0
69 PurpleNotification *purple_notification_connection_error_new(const char *id, PurpleAccount *account, PurpleConnectionErrorInfo *info);
70
71 G_END_DECLS
72
73 #endif /* PURPLE_NOTIFICATION_CONNECTION_ERROR_H */

mercurial