Thu, 22 Feb 2024 06:03:16 -0600
Add a favorite property to PurpleContactInfo
This will be used in the future for toggling whether or not contacts are
favorited or starred.
Testing Done:
Ran the unit tests under valgrind.
Reviewed at https://reviews.imfreedom.org/r/2965/
|
42375
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
1 | /* |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
2 | * Purple - Internet Messaging Library |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
3 | * Copyright (C) Pidgin Developers <devel@pidgin.im> |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
4 | * |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
5 | * Purple is the legal property of its developers, whose names are too numerous |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42387
diff
changeset
|
6 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
42375
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
7 | * source distribution. |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
8 | * |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42387
diff
changeset
|
9 | * This library is free software; you can redistribute it and/or modify it |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42387
diff
changeset
|
10 | * under the terms of the GNU General Public License as published by the Free |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42387
diff
changeset
|
11 | * Software Foundation; either version 2 of the License, or (at your option) |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42387
diff
changeset
|
12 | * any later version. |
|
42375
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
13 | * |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42387
diff
changeset
|
14 | * This library is distributed in the hope that it will be useful, but WITHOUT |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42387
diff
changeset
|
15 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42387
diff
changeset
|
16 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42387
diff
changeset
|
17 | * more details. |
|
42375
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
18 | * |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42387
diff
changeset
|
19 | * You should have received a copy of the GNU General Public License along with |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42387
diff
changeset
|
20 | * this library; if not, see <https://www.gnu.org/licenses/>. |
|
42375
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
21 | */ |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
22 | |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
23 | #if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION) |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
24 | # error "only <purple.h> may be included directly" |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
25 | #endif |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
26 | |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
27 | #ifndef PURPLE_PROTOCOL_FILE_TRANSFER_H |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
28 | #define PURPLE_PROTOCOL_FILE_TRANSFER_H |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
29 | |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
30 | #include <glib.h> |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
31 | #include <glib-object.h> |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
32 | |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
33 | #include "purplefiletransfer.h" |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
34 | #include "purpleprotocol.h" |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42375
diff
changeset
|
35 | #include "purpleversion.h" |
|
42375
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
36 | |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
37 | #define PURPLE_TYPE_PROTOCOL_FILE_TRANSFER (purple_protocol_file_transfer_get_type()) |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42375
diff
changeset
|
38 | |
|
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42375
diff
changeset
|
39 | PURPLE_AVAILABLE_IN_3_0 |
|
42375
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
40 | G_DECLARE_INTERFACE(PurpleProtocolFileTransfer, |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
41 | purple_protocol_file_transfer, PURPLE, |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
42 | PROTOCOL_FILE_TRANSFER, PurpleProtocol) |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
43 | |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
44 | /** |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
45 | * PurpleProtocolFileTransfer: |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
46 | * |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
47 | * #PurpleProtocolFileTransfer provides methods for sending and receiving |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
48 | * files. |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
49 | * |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
50 | * Since: 3.0.0 |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
51 | */ |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
52 | |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
53 | /** |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
54 | * PurpleProtocolFileTransferInterface: |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
55 | * |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
56 | * This interface defines the behavior for sending and receiving files. |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
57 | * |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
58 | * Since: 3.0.0 |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
59 | */ |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
60 | struct _PurpleProtocolFileTransferInterface { |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
61 | /*< private >*/ |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
62 | GTypeInterface parent; |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
63 | |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
64 | /*< public >*/ |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
65 | void (*send_async)(PurpleProtocolFileTransfer *protocol, PurpleFileTransfer *transfer, GAsyncReadyCallback callback, gpointer data); |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
66 | gboolean (*send_finish)(PurpleProtocolFileTransfer *protocol, GAsyncResult *result, GError **error); |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
67 | |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
68 | void (*receive_async)(PurpleProtocolFileTransfer *protocol, PurpleFileTransfer *transfer, GAsyncReadyCallback callback, gpointer data); |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
69 | gboolean (*receive_finish)(PurpleProtocolFileTransfer *protocol, GAsyncResult *result, GError **error); |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
70 | |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
71 | /*< private >*/ |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
72 | gpointer reserved[4]; |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
73 | }; |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
74 | |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
75 | G_BEGIN_DECLS |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
76 | |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
77 | /** |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
78 | * purple_protocol_file_transfer_send_async: |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
79 | * @protocol: The instance. |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
80 | * @transfer: The file transfer to send. |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
81 | * @callback: (scope async): a #GAsyncReadyCallback to call when the request is |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
82 | * satisfied. |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
83 | * @data: User data to pass to @callback. |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
84 | * |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
85 | * Starts the process of sending @transfer. |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
86 | * |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
87 | * > Note: This function does not take a cancellable as the protocol should be |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
88 | * using [property@FileTransfer:cancellable] from @transfer. |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
89 | * |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
90 | * Since: 3.0.0 |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
91 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42375
diff
changeset
|
92 | PURPLE_AVAILABLE_IN_3_0 |
|
42375
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
93 | void purple_protocol_file_transfer_send_async(PurpleProtocolFileTransfer *protocol, PurpleFileTransfer *transfer, GAsyncReadyCallback callback, gpointer data); |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
94 | |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
95 | /** |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
96 | * purple_protocol_file_transfer_send_finish: |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
97 | * @protocol: The instance. |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
98 | * @result: The [iface@Gio.AsyncResult] from the previous |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
99 | * [method@ProtocolFileTransfer.send_async] call. |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
100 | * @error: Return address for a #GError, or %NULL. |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
101 | * |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
102 | * Finishes a previous call to [method@ProtocolFileTransfer.send_async] and |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
103 | * gets the result. |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
104 | * |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
105 | * Returns: %TRUE if the transfer was started successfully, otherwise %FALSE |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
106 | * with @error possibly set. |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
107 | * |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
108 | * Since: 3.0.0 |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
109 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42375
diff
changeset
|
110 | PURPLE_AVAILABLE_IN_3_0 |
|
42375
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
111 | gboolean purple_protocol_file_transfer_send_finish(PurpleProtocolFileTransfer *protocol, GAsyncResult *result, GError **error); |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
112 | |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
113 | /** |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
114 | * purple_protocol_file_transfer_receive_async: |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
115 | * @protocol: The instance. |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
116 | * @transfer: The file transfer to send. |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
117 | * @callback: (scope async): a #GAsyncReadyCallback to call when the request is |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
118 | * satisfied. |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
119 | * @data: User data to pass to @callback. |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
120 | * |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
121 | * Starts the process of receiving @transfer. |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
122 | * |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
123 | * > Note: This function does not take a cancellable as the protocol should be |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
124 | * using [property@FileTransfer:cancellable] from @transfer. |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
125 | * |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
126 | * Since: 3.0.0 |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
127 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42375
diff
changeset
|
128 | PURPLE_AVAILABLE_IN_3_0 |
|
42375
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
129 | void purple_protocol_file_transfer_receive_async(PurpleProtocolFileTransfer *protocol, PurpleFileTransfer *transfer, GAsyncReadyCallback callback, gpointer data); |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
130 | |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
131 | /** |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
132 | * purple_protocol_file_transfer_receive_finish: |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
133 | * @protocol: The instance. |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
134 | * @result: The [iface@Gio.AsyncResult] from the previous |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
135 | * [method@ProtocolFileTransfer.receive_async] call. |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
136 | * @error: Return address for a #GError, or %NULL. |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
137 | * |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
138 | * Finishes a previous call to [method@ProtocolFileTransfer.receive_async] and |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
139 | * gets the result. |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
140 | * |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
141 | * Returns: %TRUE if the transfer was started successfully, otherwise %FALSE |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
142 | * with @error possibly set. |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
143 | * |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
144 | * Since: 3.0.0 |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
145 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42375
diff
changeset
|
146 | PURPLE_AVAILABLE_IN_3_0 |
|
42375
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
147 | gboolean purple_protocol_file_transfer_receive_finish(PurpleProtocolFileTransfer *protocol, GAsyncResult *result, GError **error); |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
148 | |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
149 | G_END_DECLS |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
150 | |
|
8e61249e9b10
Implement ProtocolFileTransfer
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
151 | #endif /* PURPLE_PROTOCOL_FILE_TRANSFER_H */ |