Sat, 13 Apr 2024 21:21:59 -0500
Remove PurpleIMConversation and PurpleProtocolIM
Both of these have been replaced and needed to be removed.
Testing Done:
Checked in with our turtle buddies.
Reviewed at https://reviews.imfreedom.org/r/3113/
|
42651
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
1 | /* |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
2 | * Purple - Internet Messaging Library |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
3 | * Copyright (C) Pidgin Developers <devel@pidgin.im> |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
4 | * |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
5 | * Purple is the legal property of its developers, whose names are too numerous |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
6 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
7 | * source distribution. |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
8 | * |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
9 | * This library is free software; you can redistribute it and/or modify it |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
10 | * under the terms of the GNU General Public License as published by the Free |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
11 | * Software Foundation; either version 2 of the License, or (at your option) |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
12 | * any later version. |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
13 | * |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
14 | * This library is distributed in the hope that it will be useful, but WITHOUT |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
15 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
16 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
17 | * more details. |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
18 | * |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
19 | * You should have received a copy of the GNU General Public License along with |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
20 | * this library; if not, see <https://www.gnu.org/licenses/>. |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
21 | */ |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
22 | |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
23 | #if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION) |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
24 | # error "only <purple.h> may be included directly" |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
25 | #endif |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
26 | |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
27 | #ifndef PURPLE_AUTHORIZATION_REQUEST_NOTIFICATION_H |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
28 | #define PURPLE_AUTHORIZATION_REQUEST_NOTIFICATION_H |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
29 | |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
30 | #include <glib.h> |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
31 | #include <glib-object.h> |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
32 | |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
33 | #include "purpleauthorizationrequest.h" |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
34 | #include "purplenotification.h" |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
35 | #include "purpleversion.h" |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
36 | |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
37 | G_BEGIN_DECLS |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
38 | |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
39 | /** |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
40 | * PurpleAuthorizationRequestNotification: |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
41 | * |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
42 | * A [class@Notification] for [class@AuthorizationRequest]s. |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
43 | * |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
44 | * Since: 3.0 |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
45 | */ |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
46 | |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
47 | #define PURPLE_TYPE_AUTHORIZATION_REQUEST_NOTIFICATION (purple_authorization_request_notification_get_type()) |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
48 | |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
49 | PURPLE_AVAILABLE_IN_3_0 |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
50 | G_DECLARE_FINAL_TYPE(PurpleAuthorizationRequestNotification, |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
51 | purple_authorization_request_notification, |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
52 | PURPLE, AUTHORIZATION_REQUEST_NOTIFICATION, |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
53 | PurpleNotification) |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
54 | |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
55 | /** |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
56 | * purple_authorization_request_notification_new: |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
57 | * @request: The authorization request instance. |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
58 | * |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
59 | * Creates a new [class@Notification] for @request. |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
60 | * |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
61 | * Returns: The new notification. |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
62 | * |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
63 | * Since: 3.0 |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
64 | */ |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
65 | PURPLE_AVAILABLE_IN_3_0 |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
66 | PurpleNotification *purple_authorization_request_notification_new(PurpleAuthorizationRequest *request); |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
67 | |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
68 | /** |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
69 | * purple_authorization_request_notification_get_request: |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
70 | * @notification: The instance. |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
71 | * |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
72 | * Gets the [class@AuthorizationRequest] for @notification. |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
73 | * |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
74 | * Returns: (transfer none): The authorization request. |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
75 | * |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
76 | * Since: 3.0 |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
77 | */ |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
78 | PURPLE_AVAILABLE_IN_3_0 |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
79 | PurpleAuthorizationRequest *purple_authorization_request_notification_get_request(PurpleAuthorizationRequestNotification *notification); |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
80 | |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
81 | G_END_DECLS |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
82 | |
|
5ad29b5bf1c7
Create PurpleAuthorizationRequestNotification
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
83 | #endif /* PURPLE_AUTHORIZATION_REQUEST_NOTIFICATION_H */ |