Mon, 12 May 2025 20:25:16 -0500
Handle formatting in server messages
Testing Done:
Used the default motd on my local ergo server to verify that formatting was working.
Reviewed at https://reviews.imfreedom.org/r/3991/
|
40595
d7e28f8a0994
split up whiteboard.[ch] to separate files
Gary Kramlich <grim@reaperworld.com>
parents:
40525
diff
changeset
|
1 | /* |
|
d7e28f8a0994
split up whiteboard.[ch] to separate files
Gary Kramlich <grim@reaperworld.com>
parents:
40525
diff
changeset
|
2 | * Purple - Internet Messaging Library |
|
d7e28f8a0994
split up whiteboard.[ch] to separate files
Gary Kramlich <grim@reaperworld.com>
parents:
40525
diff
changeset
|
3 | * Copyright (C) Pidgin Developers <devel@pidgin.im> |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
4 | * |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
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:
42557
diff
changeset
|
6 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
7 | * source distribution. |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
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:
42557
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:
42557
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:
42557
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:
42557
diff
changeset
|
12 | * any later version. |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
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:
42557
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:
42557
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:
42557
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:
42557
diff
changeset
|
17 | * more details. |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
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:
42557
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:
42557
diff
changeset
|
20 | * this library; if not, see <https://www.gnu.org/licenses/>. |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
21 | */ |
| 37094 | 22 | |
|
40474
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40439
diff
changeset
|
23 | #if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION) |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40439
diff
changeset
|
24 | # error "only <purple.h> may be included directly" |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40439
diff
changeset
|
25 | #endif |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40439
diff
changeset
|
26 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39597
diff
changeset
|
27 | #ifndef PURPLE_PROTOCOL_H |
|
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39597
diff
changeset
|
28 | #define PURPLE_PROTOCOL_H |
|
40595
d7e28f8a0994
split up whiteboard.[ch] to separate files
Gary Kramlich <grim@reaperworld.com>
parents:
40525
diff
changeset
|
29 | |
|
40813
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
30 | #include <glib.h> |
|
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
31 | #include <glib-object.h> |
|
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
32 | |
| 42725 | 33 | #include <gio/gio.h> |
| 34 | ||
|
42877
566102577b66
Add Purple.Protocol.get_action_menu
Gary Kramlich <grim@reaperworld.com>
parents:
42725
diff
changeset
|
35 | #include <birb.h> |
|
566102577b66
Add Purple.Protocol.get_action_menu
Gary Kramlich <grim@reaperworld.com>
parents:
42725
diff
changeset
|
36 | |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
37 | #include "purpleversion.h" |
|
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
38 | |
|
40813
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
39 | #define PURPLE_TYPE_PROTOCOL (purple_protocol_get_type()) |
|
41010
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40985
diff
changeset
|
40 | |
|
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40985
diff
changeset
|
41 | /** |
|
41205
c5513eb740aa
Remove unnecessary gtk-doc comments and move them where possible from libpurple/purple[o-z]*.h
Gary Kramlich <grim@reaperworld.com>
parents:
41155
diff
changeset
|
42 | * PurpleProtocol: |
|
c5513eb740aa
Remove unnecessary gtk-doc comments and move them where possible from libpurple/purple[o-z]*.h
Gary Kramlich <grim@reaperworld.com>
parents:
41155
diff
changeset
|
43 | * |
|
c5513eb740aa
Remove unnecessary gtk-doc comments and move them where possible from libpurple/purple[o-z]*.h
Gary Kramlich <grim@reaperworld.com>
parents:
41155
diff
changeset
|
44 | * #PurpleProtocol is the base type for all protocols in libpurple. |
|
41283
8da781550c96
Remove duplicate class documentation
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41205
diff
changeset
|
45 | * |
|
42615
2f3308794a8f
Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
46 | * Since: 3.0 |
|
41205
c5513eb740aa
Remove unnecessary gtk-doc comments and move them where possible from libpurple/purple[o-z]*.h
Gary Kramlich <grim@reaperworld.com>
parents:
41155
diff
changeset
|
47 | */ |
|
c5513eb740aa
Remove unnecessary gtk-doc comments and move them where possible from libpurple/purple[o-z]*.h
Gary Kramlich <grim@reaperworld.com>
parents:
41155
diff
changeset
|
48 | |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
49 | PURPLE_AVAILABLE_IN_3_0 |
|
40813
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
50 | G_DECLARE_DERIVABLE_TYPE(PurpleProtocol, purple_protocol, PURPLE, PROTOCOL, |
|
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
51 | GObject) |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
52 | |
|
42344
c51d37734155
Rename account.[ch] to purpleaccount.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
41884
diff
changeset
|
53 | #include "purpleaccount.h" |
|
43016
158d07e5cd54
Rename connection.[ch] to purpleconnection.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
42877
diff
changeset
|
54 | #include "purpleconnection.h" |
|
40595
d7e28f8a0994
split up whiteboard.[ch] to separate files
Gary Kramlich <grim@reaperworld.com>
parents:
40525
diff
changeset
|
55 | #include "purplewhiteboardops.h" |
| 36569 | 56 | |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
57 | /** |
|
40870
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
58 | * PurpleProtocolOptions: |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
59 | * @OPT_PROTO_UNIQUE_CHATNAME: User names are unique to a chat and are not |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
60 | * shared between rooms.<sbr/> |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
61 | * XMPP lets you choose what name you want in chats, so it shouldn't |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
62 | * be pulling the aliases from the buddy list for the chat list; it |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
63 | * gets annoying. |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
64 | * @OPT_PROTO_CHAT_TOPIC: Chat rooms have topics.<sbr/> |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
65 | * IRC and XMPP support this. |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
66 | * @OPT_PROTO_NO_PASSWORD: Don't require passwords for sign-in.<sbr/> |
|
41833
a6a511564c1b
Remove the Zephyr protocol plugin
Gary Kramlich <grim@reaperworld.com>
parents:
41814
diff
changeset
|
67 | * IRC doesn't require passwords, so there's no need for a |
|
40870
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
68 | * password prompt. |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
69 | * @OPT_PROTO_MAIL_CHECK: Notify on new mail.<sbr/> |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
70 | * MSN and Yahoo notify you when you have new mail. |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
71 | * @OPT_PROTO_PASSWORD_OPTIONAL: Allow passwords to be optional.<sbr/> |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
72 | * Passwords in IRC are optional, and are needed for certain |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
73 | * functionality. |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
74 | * @OPT_PROTO_USE_POINTSIZE: Allows font size to be specified in sane point |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
75 | * size.<sbr/> |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
76 | * Probably just XMPP and Y!M |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
77 | * @OPT_PROTO_REGISTER_NOSCREENNAME: Set the Register button active even when |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
78 | * the username has not been specified.<sbr/> |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
79 | * Gadu-Gadu doesn't need a username to register new account (because |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
80 | * usernames are assigned by the server). |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
81 | * @OPT_PROTO_SLASH_COMMANDS_NATIVE: Indicates that slash commands are native |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
82 | * to this protocol.<sbr/> |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
83 | * Used as a hint that unknown commands should not be sent as |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
84 | * messages. |
|
42615
2f3308794a8f
Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
85 | * Since: 2.1 |
|
40870
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
86 | * @OPT_PROTO_INVITE_MESSAGE: Indicates that this protocol supports sending a |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
87 | * user-supplied message along with an invitation. |
|
42615
2f3308794a8f
Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
88 | * Since: 2.8 |
|
40870
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
89 | * @OPT_PROTO_AUTHORIZATION_GRANTED_MESSAGE: Indicates that this protocol |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
90 | * supports sending a user-supplied message along with an |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
91 | * authorization acceptance. |
|
42615
2f3308794a8f
Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
92 | * Since: 3.0 |
|
40870
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
93 | * @OPT_PROTO_AUTHORIZATION_DENIED_MESSAGE: Indicates that this protocol |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
94 | * supports sending a user-supplied message along with an |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
95 | * authorization denial. |
|
42615
2f3308794a8f
Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
96 | * Since: 3.0 |
|
40870
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
97 | * |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
98 | * Protocol options |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
99 | * |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
100 | * These should all be stuff that some protocols can do and others can't. |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
101 | */ |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
102 | typedef enum /*< flags >*/ |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
103 | { |
|
42399
7598020f5ae2
Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
104 | OPT_PROTO_UNIQUE_CHATNAME = 0x00000004, |
|
7598020f5ae2
Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
105 | OPT_PROTO_CHAT_TOPIC = 0x00000008, |
|
7598020f5ae2
Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
106 | OPT_PROTO_NO_PASSWORD = 0x00000010, |
|
7598020f5ae2
Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
107 | OPT_PROTO_MAIL_CHECK = 0x00000020, |
|
7598020f5ae2
Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
108 | OPT_PROTO_PASSWORD_OPTIONAL = 0x00000080, |
|
7598020f5ae2
Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
109 | OPT_PROTO_USE_POINTSIZE = 0x00000100, |
|
7598020f5ae2
Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
110 | OPT_PROTO_REGISTER_NOSCREENNAME = 0x00000200, |
|
7598020f5ae2
Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
111 | OPT_PROTO_SLASH_COMMANDS_NATIVE PURPLE_AVAILABLE_ENUMERATOR_IN_2_1 = 0x00000400, |
|
42400
64c85dc25cd4
Tag some miscellanous Since and exports
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42399
diff
changeset
|
112 | OPT_PROTO_INVITE_MESSAGE PURPLE_AVAILABLE_ENUMERATOR_IN_2_8 = 0x00000800, |
|
64c85dc25cd4
Tag some miscellanous Since and exports
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42399
diff
changeset
|
113 | OPT_PROTO_AUTHORIZATION_GRANTED_MESSAGE PURPLE_AVAILABLE_ENUMERATOR_IN_3_0 = 0x00001000, |
|
64c85dc25cd4
Tag some miscellanous Since and exports
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42399
diff
changeset
|
114 | OPT_PROTO_AUTHORIZATION_DENIED_MESSAGE PURPLE_AVAILABLE_ENUMERATOR_IN_3_0 = 0x00002000, |
|
40870
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
115 | } PurpleProtocolOptions; |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
116 | |
|
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40813
diff
changeset
|
117 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
118 | * PurpleProtocolClass: |
|
40813
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
119 | * @get_user_splits: Returns a list of all #PurpleAccountUserSplit's that the |
|
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
120 | * procotol provides. |
|
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
121 | * @get_account_options: Returns a list of all #PurpleAccountOption's for the |
|
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
122 | * protocol. |
|
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
123 | * @get_whiteboard_ops: Return the #PurpleWhiteboardOps that should be used. |
|
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
124 | * @login: Logs into the server. |
|
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
125 | * @close: Close sconnection with the server. |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
126 | * @status_types: Returns a list of #PurpleStatusType which exist for this |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
127 | * account; and must add at least the offline and online states. |
|
40813
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
128 | * @list_icon: Returns the base icon name for the given buddy and account. If |
|
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
129 | * buddy is %NULL and the account is non-%NULL, it will return the |
|
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
130 | * name to use for the account's icon. If both are %NULL, it will |
|
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
131 | * return the name to use for the protocol's icon. |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
132 | * |
|
36681
9c38716c8eb7
Moved protocol class members to instance. Protocol definitions now require *_init, *_class_init instead of *_base_init.
Ankit Vani <a@nevitus.org>
parents:
36680
diff
changeset
|
133 | * The base class for all protocols. |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
134 | * |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
135 | * All protocol types must implement the methods in this class. |
|
40813
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
136 | * |
|
42615
2f3308794a8f
Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
137 | * Since: 3.0 |
|
36681
9c38716c8eb7
Moved protocol class members to instance. Protocol definitions now require *_init, *_class_init instead of *_base_init.
Ankit Vani <a@nevitus.org>
parents:
36680
diff
changeset
|
138 | */ |
|
40813
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
139 | struct _PurpleProtocolClass { |
|
36681
9c38716c8eb7
Moved protocol class members to instance. Protocol definitions now require *_init, *_class_init instead of *_base_init.
Ankit Vani <a@nevitus.org>
parents:
36680
diff
changeset
|
140 | GObjectClass parent_class; |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
141 | |
|
40813
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
142 | GList *(*get_user_splits)(PurpleProtocol *protocol); |
|
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
143 | GList *(*get_account_options)(PurpleProtocol *protocol); |
|
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
144 | PurpleWhiteboardOps *(*get_whiteboard_ops)(PurpleProtocol *protocol); |
|
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
145 | |
|
43161
920605926071
Add Purple.Protocol.generate_account_name
Gary Kramlich <grim@reaperworld.com>
parents:
43016
diff
changeset
|
146 | char *(*generate_account_name)(PurpleProtocol *protocol, PurpleAccount *account, guint n_accounts); |
|
920605926071
Add Purple.Protocol.generate_account_name
Gary Kramlich <grim@reaperworld.com>
parents:
43016
diff
changeset
|
147 | |
|
41884
36684da1e60d
Add async function to PurpleProtocol for testing whether or not connections are possible
Gary Kramlich <grim@reaperworld.com>
parents:
41869
diff
changeset
|
148 | void (*can_connect_async)(PurpleProtocol *protocol, PurpleAccount *account, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer data); |
|
36684da1e60d
Add async function to PurpleProtocol for testing whether or not connections are possible
Gary Kramlich <grim@reaperworld.com>
parents:
41869
diff
changeset
|
149 | gboolean (*can_connect_finish)(PurpleProtocol *protocol, GAsyncResult *result, GError **error); |
|
36684da1e60d
Add async function to PurpleProtocol for testing whether or not connections are possible
Gary Kramlich <grim@reaperworld.com>
parents:
41869
diff
changeset
|
150 | |
|
41869
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41833
diff
changeset
|
151 | PurpleConnection *(*create_connection)(PurpleProtocol *protocol, PurpleAccount *account, const char *password, GError **error); |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41833
diff
changeset
|
152 | |
|
42877
566102577b66
Add Purple.Protocol.get_action_menu
Gary Kramlich <grim@reaperworld.com>
parents:
42725
diff
changeset
|
153 | BirbActionMenu *(*get_action_menu)(PurpleProtocol *protocol, PurpleAccount *account); |
|
566102577b66
Add Purple.Protocol.get_action_menu
Gary Kramlich <grim@reaperworld.com>
parents:
42725
diff
changeset
|
154 | |
|
36896
3865997e388b
Merged soc.2013.gobjectification branch
Ankit Vani <a@nevitus.org>
parents:
36731
diff
changeset
|
155 | /*< private >*/ |
|
40813
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
156 | gpointer reserved[4]; |
|
36681
9c38716c8eb7
Moved protocol class members to instance. Protocol definitions now require *_init, *_class_init instead of *_base_init.
Ankit Vani <a@nevitus.org>
parents:
36680
diff
changeset
|
157 | }; |
|
9c38716c8eb7
Moved protocol class members to instance. Protocol definitions now require *_init, *_class_init instead of *_base_init.
Ankit Vani <a@nevitus.org>
parents:
36680
diff
changeset
|
158 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
159 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
160 | * PURPLE_PROTOCOL_IMPLEMENTS: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
161 | * @protocol: The protocol in which to check |
|
39759
ea1401483849
Rename *_GET_*_IFACE to more standard *_GET_IFACE.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39758
diff
changeset
|
162 | * @IFACE: The interface name in caps. e.g. <literal>CLIENT</literal> |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
163 | * @func: The function to check |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
164 | * |
|
42656
df9aafbae930
Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents:
42646
diff
changeset
|
165 | * Checks if a protocol plugin implements an interface and a specific function |
|
df9aafbae930
Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents:
42646
diff
changeset
|
166 | * in the interface. |
|
df9aafbae930
Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents:
42646
diff
changeset
|
167 | * |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
168 | * Returns: %TRUE if a protocol implements a function in an interface, |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
169 | * %FALSE otherwise. |
|
41037
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
170 | * |
|
42615
2f3308794a8f
Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
171 | * Since: 3.0 |
|
36620
c76013b145f4
Added PURPLE_PROTOCOL_IMPLEMENTS(protocol,func) to check if a protocol implements a function
Ankit Vani <a@nevitus.org>
parents:
36618
diff
changeset
|
172 | */ |
|
36720
465f02116328
Refactored account, blistnodetypes, buddylist, connection to use the new protocol interfaces
Ankit Vani <a@nevitus.org>
parents:
36718
diff
changeset
|
173 | #define PURPLE_PROTOCOL_IMPLEMENTS(protocol, IFACE, func) \ |
|
39761
59c4ebe9ef67
Rename PURPLE_PROTOCOL_IS_* to PURPLE_IS_PROTOCOL_*.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39760
diff
changeset
|
174 | (PURPLE_IS_PROTOCOL_##IFACE(protocol) && \ |
|
39759
ea1401483849
Rename *_GET_*_IFACE to more standard *_GET_IFACE.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39758
diff
changeset
|
175 | PURPLE_PROTOCOL_##IFACE##_GET_IFACE(protocol)->func != NULL) |
|
36620
c76013b145f4
Added PURPLE_PROTOCOL_IMPLEMENTS(protocol,func) to check if a protocol implements a function
Ankit Vani <a@nevitus.org>
parents:
36618
diff
changeset
|
176 | |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
177 | G_BEGIN_DECLS |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
178 | |
|
36617
be16459a68e9
Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents:
36613
diff
changeset
|
179 | /** |
|
43161
920605926071
Add Purple.Protocol.generate_account_name
Gary Kramlich <grim@reaperworld.com>
parents:
43016
diff
changeset
|
180 | * purple_protocol_generate_account_name: |
|
920605926071
Add Purple.Protocol.generate_account_name
Gary Kramlich <grim@reaperworld.com>
parents:
43016
diff
changeset
|
181 | * @account: the account whose name to generate |
|
920605926071
Add Purple.Protocol.generate_account_name
Gary Kramlich <grim@reaperworld.com>
parents:
43016
diff
changeset
|
182 | * @n_accounts: the number of accounts |
|
920605926071
Add Purple.Protocol.generate_account_name
Gary Kramlich <grim@reaperworld.com>
parents:
43016
diff
changeset
|
183 | * |
|
920605926071
Add Purple.Protocol.generate_account_name
Gary Kramlich <grim@reaperworld.com>
parents:
43016
diff
changeset
|
184 | * Generates a name for an account. |
|
920605926071
Add Purple.Protocol.generate_account_name
Gary Kramlich <grim@reaperworld.com>
parents:
43016
diff
changeset
|
185 | * |
|
920605926071
Add Purple.Protocol.generate_account_name
Gary Kramlich <grim@reaperworld.com>
parents:
43016
diff
changeset
|
186 | * This is used to attempt to generate a simple name for an account. Something |
|
920605926071
Add Purple.Protocol.generate_account_name
Gary Kramlich <grim@reaperworld.com>
parents:
43016
diff
changeset
|
187 | * like "IRC 1". |
|
920605926071
Add Purple.Protocol.generate_account_name
Gary Kramlich <grim@reaperworld.com>
parents:
43016
diff
changeset
|
188 | * |
|
920605926071
Add Purple.Protocol.generate_account_name
Gary Kramlich <grim@reaperworld.com>
parents:
43016
diff
changeset
|
189 | * The @n_accounts parameter is the number of existing accounts with the same |
|
920605926071
Add Purple.Protocol.generate_account_name
Gary Kramlich <grim@reaperworld.com>
parents:
43016
diff
changeset
|
190 | * protocol. |
|
920605926071
Add Purple.Protocol.generate_account_name
Gary Kramlich <grim@reaperworld.com>
parents:
43016
diff
changeset
|
191 | * |
|
920605926071
Add Purple.Protocol.generate_account_name
Gary Kramlich <grim@reaperworld.com>
parents:
43016
diff
changeset
|
192 | * This may be called multiple times for the same account if a duplicate |
|
920605926071
Add Purple.Protocol.generate_account_name
Gary Kramlich <grim@reaperworld.com>
parents:
43016
diff
changeset
|
193 | * account name is found. |
|
920605926071
Add Purple.Protocol.generate_account_name
Gary Kramlich <grim@reaperworld.com>
parents:
43016
diff
changeset
|
194 | * |
|
920605926071
Add Purple.Protocol.generate_account_name
Gary Kramlich <grim@reaperworld.com>
parents:
43016
diff
changeset
|
195 | * Returns: (transfer full): The new account name. |
|
920605926071
Add Purple.Protocol.generate_account_name
Gary Kramlich <grim@reaperworld.com>
parents:
43016
diff
changeset
|
196 | * |
|
920605926071
Add Purple.Protocol.generate_account_name
Gary Kramlich <grim@reaperworld.com>
parents:
43016
diff
changeset
|
197 | * Since: 3.0 |
|
920605926071
Add Purple.Protocol.generate_account_name
Gary Kramlich <grim@reaperworld.com>
parents:
43016
diff
changeset
|
198 | */ |
|
920605926071
Add Purple.Protocol.generate_account_name
Gary Kramlich <grim@reaperworld.com>
parents:
43016
diff
changeset
|
199 | PURPLE_AVAILABLE_IN_3_0 |
|
920605926071
Add Purple.Protocol.generate_account_name
Gary Kramlich <grim@reaperworld.com>
parents:
43016
diff
changeset
|
200 | char *purple_protocol_generate_account_name(PurpleProtocol *protocol, PurpleAccount *account, guint n_accounts); |
|
920605926071
Add Purple.Protocol.generate_account_name
Gary Kramlich <grim@reaperworld.com>
parents:
43016
diff
changeset
|
201 | |
|
920605926071
Add Purple.Protocol.generate_account_name
Gary Kramlich <grim@reaperworld.com>
parents:
43016
diff
changeset
|
202 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
203 | * purple_protocol_get_id: |
|
40813
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
204 | * @protocol: The #PurpleProtocol instance. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
205 | * |
|
40813
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
206 | * Gets the ID of a protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
207 | * |
|
37034
9d6765962b22
Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents:
37023
diff
changeset
|
208 | * Returns: The ID of the protocol. |
|
40813
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
209 | * |
|
42615
2f3308794a8f
Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
210 | * Since: 3.0 |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
211 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
212 | PURPLE_AVAILABLE_IN_3_0 |
|
40813
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
213 | const gchar *purple_protocol_get_id(PurpleProtocol *protocol); |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
214 | |
|
36617
be16459a68e9
Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents:
36613
diff
changeset
|
215 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
216 | * purple_protocol_get_name: |
|
40813
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
217 | * @protocol: The #PurpleProtocol instance. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
218 | * |
|
40813
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
219 | * Gets the translated name of a protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
220 | * |
|
37034
9d6765962b22
Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents:
37023
diff
changeset
|
221 | * Returns: The translated name of the protocol. |
|
40813
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
222 | * |
|
42615
2f3308794a8f
Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
223 | * Since: 3.0 |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
224 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
225 | PURPLE_AVAILABLE_IN_3_0 |
|
40813
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
226 | const gchar *purple_protocol_get_name(PurpleProtocol *protocol); |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
227 | |
|
36617
be16459a68e9
Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents:
36613
diff
changeset
|
228 | /** |
|
40985
ddc26be7f597
Add description to PurpleProtocol
Prateek Pardeshi <prateekpardeshi6@gmail.com>
parents:
40870
diff
changeset
|
229 | * purple_protocol_get_description: |
|
ddc26be7f597
Add description to PurpleProtocol
Prateek Pardeshi <prateekpardeshi6@gmail.com>
parents:
40870
diff
changeset
|
230 | * @protocol: The #PurpleProtocol instance. |
|
ddc26be7f597
Add description to PurpleProtocol
Prateek Pardeshi <prateekpardeshi6@gmail.com>
parents:
40870
diff
changeset
|
231 | * |
|
ddc26be7f597
Add description to PurpleProtocol
Prateek Pardeshi <prateekpardeshi6@gmail.com>
parents:
40870
diff
changeset
|
232 | * Gets the description of a protocol. |
|
ddc26be7f597
Add description to PurpleProtocol
Prateek Pardeshi <prateekpardeshi6@gmail.com>
parents:
40870
diff
changeset
|
233 | * |
|
ddc26be7f597
Add description to PurpleProtocol
Prateek Pardeshi <prateekpardeshi6@gmail.com>
parents:
40870
diff
changeset
|
234 | * Returns: The Description of the protocol. |
|
ddc26be7f597
Add description to PurpleProtocol
Prateek Pardeshi <prateekpardeshi6@gmail.com>
parents:
40870
diff
changeset
|
235 | * |
|
42615
2f3308794a8f
Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
236 | * Since: 3.0 |
|
40985
ddc26be7f597
Add description to PurpleProtocol
Prateek Pardeshi <prateekpardeshi6@gmail.com>
parents:
40870
diff
changeset
|
237 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
238 | PURPLE_AVAILABLE_IN_3_0 |
|
40985
ddc26be7f597
Add description to PurpleProtocol
Prateek Pardeshi <prateekpardeshi6@gmail.com>
parents:
40870
diff
changeset
|
239 | const gchar *purple_protocol_get_description(PurpleProtocol *protocol); |
|
ddc26be7f597
Add description to PurpleProtocol
Prateek Pardeshi <prateekpardeshi6@gmail.com>
parents:
40870
diff
changeset
|
240 | |
|
ddc26be7f597
Add description to PurpleProtocol
Prateek Pardeshi <prateekpardeshi6@gmail.com>
parents:
40870
diff
changeset
|
241 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
242 | * purple_protocol_get_options: |
|
40813
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
243 | * @protocol: The #PurpleProtocol instance. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
244 | * |
|
40813
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
245 | * Gets the options of a protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
246 | * |
|
37034
9d6765962b22
Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents:
37023
diff
changeset
|
247 | * Returns: The options of the protocol. |
|
40813
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
248 | * |
|
42615
2f3308794a8f
Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
249 | * Since: 3.0 |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
250 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
251 | PURPLE_AVAILABLE_IN_3_0 |
|
40813
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
252 | PurpleProtocolOptions purple_protocol_get_options(PurpleProtocol *protocol); |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
253 | |
|
36617
be16459a68e9
Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents:
36613
diff
changeset
|
254 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
255 | * purple_protocol_get_user_splits: |
|
40813
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
256 | * @protocol: The #PurpleProtocol instance. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
257 | * |
|
40813
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
258 | * Gets the user splits of a protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
259 | * |
|
40813
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
260 | * Returns: (element-type PurpleAccountUserSplit) (transfer full): The user |
|
39739
ed1cd735639b
Add some missing element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39672
diff
changeset
|
261 | * splits of the protocol. |
|
40813
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
262 | * |
|
42615
2f3308794a8f
Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
263 | * Since: 3.0 |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
264 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
265 | PURPLE_AVAILABLE_IN_3_0 |
|
40813
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
266 | GList *purple_protocol_get_user_splits(PurpleProtocol *protocol); |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
267 | |
|
36617
be16459a68e9
Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents:
36613
diff
changeset
|
268 | /** |
|
37038
8832d14d7d0c
Rename 'protocol_options' field of PurpleProtocol to more appropriate 'account_options'
Ankit Vani <a@nevitus.org>
parents:
37036
diff
changeset
|
269 | * purple_protocol_get_account_options: |
|
40813
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
270 | * @protocol: The #PurpleProtocol instance. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
271 | * |
|
40813
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
272 | * Gets the account options for a protocol. |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
273 | * |
|
40813
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
274 | * Returns: (element-type PurpleAccountOption) (transfer full): The account |
|
39739
ed1cd735639b
Add some missing element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39672
diff
changeset
|
275 | * options for the protocol. |
|
40813
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
276 | * |
|
42615
2f3308794a8f
Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
277 | * Since: 3.0 |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
278 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
279 | PURPLE_AVAILABLE_IN_3_0 |
|
40813
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
280 | GList *purple_protocol_get_account_options(PurpleProtocol *protocol); |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
281 | |
|
36617
be16459a68e9
Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents:
36613
diff
changeset
|
282 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
283 | * purple_protocol_get_whiteboard_ops: |
|
40813
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
284 | * @protocol: The #PurpleProtocol instance. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
285 | * |
|
40813
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
286 | * Gets the whiteboard ops of a protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
287 | * |
| 40188 | 288 | * Returns: (transfer none): The whiteboard ops of the protocol. |
|
40813
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
289 | * |
|
42615
2f3308794a8f
Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
290 | * Since: 3.0 |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
291 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
292 | PURPLE_AVAILABLE_IN_3_0 |
|
40813
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
293 | PurpleWhiteboardOps *purple_protocol_get_whiteboard_ops(PurpleProtocol *protocol); |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
294 | |
|
40813
71305a7d7423
Modernize PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
295 | /** |
|
41884
36684da1e60d
Add async function to PurpleProtocol for testing whether or not connections are possible
Gary Kramlich <grim@reaperworld.com>
parents:
41869
diff
changeset
|
296 | * purple_protocol_can_connect_async: |
|
36684da1e60d
Add async function to PurpleProtocol for testing whether or not connections are possible
Gary Kramlich <grim@reaperworld.com>
parents:
41869
diff
changeset
|
297 | * @protocol: The instance. |
|
36684da1e60d
Add async function to PurpleProtocol for testing whether or not connections are possible
Gary Kramlich <grim@reaperworld.com>
parents:
41869
diff
changeset
|
298 | * @account: The [class@Purple.Account] instance. |
|
36684da1e60d
Add async function to PurpleProtocol for testing whether or not connections are possible
Gary Kramlich <grim@reaperworld.com>
parents:
41869
diff
changeset
|
299 | * @cancellable: (nullable): The [class@Gio.Cancellable] instance. |
|
36684da1e60d
Add async function to PurpleProtocol for testing whether or not connections are possible
Gary Kramlich <grim@reaperworld.com>
parents:
41869
diff
changeset
|
300 | * @callback: (scope async): The [callback@Gio.AsyncReadyCallback] to call. |
|
36684da1e60d
Add async function to PurpleProtocol for testing whether or not connections are possible
Gary Kramlich <grim@reaperworld.com>
parents:
41869
diff
changeset
|
301 | * @data: (nullable): User data to pass to @callback. |
|
36684da1e60d
Add async function to PurpleProtocol for testing whether or not connections are possible
Gary Kramlich <grim@reaperworld.com>
parents:
41869
diff
changeset
|
302 | * |
|
36684da1e60d
Add async function to PurpleProtocol for testing whether or not connections are possible
Gary Kramlich <grim@reaperworld.com>
parents:
41869
diff
changeset
|
303 | * Asks @protocol if it can determine if @account can be connected. |
|
36684da1e60d
Add async function to PurpleProtocol for testing whether or not connections are possible
Gary Kramlich <grim@reaperworld.com>
parents:
41869
diff
changeset
|
304 | * |
|
36684da1e60d
Add async function to PurpleProtocol for testing whether or not connections are possible
Gary Kramlich <grim@reaperworld.com>
parents:
41869
diff
changeset
|
305 | * Most protocol plugins will call [method@Gio.NetworkMonitor.can_reach_async] |
|
36684da1e60d
Add async function to PurpleProtocol for testing whether or not connections are possible
Gary Kramlich <grim@reaperworld.com>
parents:
41869
diff
changeset
|
306 | * to determine if a connection is possible. |
|
36684da1e60d
Add async function to PurpleProtocol for testing whether or not connections are possible
Gary Kramlich <grim@reaperworld.com>
parents:
41869
diff
changeset
|
307 | * |
|
42646
b82b5609c044
Use PurpleProtocol.can_connect_async in the login process
Gary Kramlich <grim@reaperworld.com>
parents:
42615
diff
changeset
|
308 | * If [vfunc@Protocol.can_connect_async] is not implemented, this function will |
|
b82b5609c044
Use PurpleProtocol.can_connect_async in the login process
Gary Kramlich <grim@reaperworld.com>
parents:
42615
diff
changeset
|
309 | * create a [type@Gio.Task] that returns %TRUE. |
|
b82b5609c044
Use PurpleProtocol.can_connect_async in the login process
Gary Kramlich <grim@reaperworld.com>
parents:
42615
diff
changeset
|
310 | * |
|
42615
2f3308794a8f
Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
311 | * Since: 3.0 |
|
41884
36684da1e60d
Add async function to PurpleProtocol for testing whether or not connections are possible
Gary Kramlich <grim@reaperworld.com>
parents:
41869
diff
changeset
|
312 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
313 | PURPLE_AVAILABLE_IN_3_0 |
|
41884
36684da1e60d
Add async function to PurpleProtocol for testing whether or not connections are possible
Gary Kramlich <grim@reaperworld.com>
parents:
41869
diff
changeset
|
314 | void purple_protocol_can_connect_async(PurpleProtocol *protocol, PurpleAccount *account, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer data); |
|
36684da1e60d
Add async function to PurpleProtocol for testing whether or not connections are possible
Gary Kramlich <grim@reaperworld.com>
parents:
41869
diff
changeset
|
315 | |
|
36684da1e60d
Add async function to PurpleProtocol for testing whether or not connections are possible
Gary Kramlich <grim@reaperworld.com>
parents:
41869
diff
changeset
|
316 | /** |
|
36684da1e60d
Add async function to PurpleProtocol for testing whether or not connections are possible
Gary Kramlich <grim@reaperworld.com>
parents:
41869
diff
changeset
|
317 | * purple_protocol_can_connect_finish: |
|
36684da1e60d
Add async function to PurpleProtocol for testing whether or not connections are possible
Gary Kramlich <grim@reaperworld.com>
parents:
41869
diff
changeset
|
318 | * @protocol: The instance. |
|
36684da1e60d
Add async function to PurpleProtocol for testing whether or not connections are possible
Gary Kramlich <grim@reaperworld.com>
parents:
41869
diff
changeset
|
319 | * @result: The [iface@Gio.AsyncResult] of the operation. |
|
36684da1e60d
Add async function to PurpleProtocol for testing whether or not connections are possible
Gary Kramlich <grim@reaperworld.com>
parents:
41869
diff
changeset
|
320 | * @error: Return address for a #GError, or %NULL. |
|
36684da1e60d
Add async function to PurpleProtocol for testing whether or not connections are possible
Gary Kramlich <grim@reaperworld.com>
parents:
41869
diff
changeset
|
321 | * |
|
36684da1e60d
Add async function to PurpleProtocol for testing whether or not connections are possible
Gary Kramlich <grim@reaperworld.com>
parents:
41869
diff
changeset
|
322 | * This should be called from the callback of |
|
36684da1e60d
Add async function to PurpleProtocol for testing whether or not connections are possible
Gary Kramlich <grim@reaperworld.com>
parents:
41869
diff
changeset
|
323 | * [method@Purple.Protocol.can_connect_async] to get the result of the call. |
|
36684da1e60d
Add async function to PurpleProtocol for testing whether or not connections are possible
Gary Kramlich <grim@reaperworld.com>
parents:
41869
diff
changeset
|
324 | * |
|
36684da1e60d
Add async function to PurpleProtocol for testing whether or not connections are possible
Gary Kramlich <grim@reaperworld.com>
parents:
41869
diff
changeset
|
325 | * Returns: %TRUE on success, otherwise %FALSE with @error optionally set. |
|
36684da1e60d
Add async function to PurpleProtocol for testing whether or not connections are possible
Gary Kramlich <grim@reaperworld.com>
parents:
41869
diff
changeset
|
326 | * |
|
42615
2f3308794a8f
Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
327 | * Since: 3.0 |
|
41884
36684da1e60d
Add async function to PurpleProtocol for testing whether or not connections are possible
Gary Kramlich <grim@reaperworld.com>
parents:
41869
diff
changeset
|
328 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
329 | PURPLE_AVAILABLE_IN_3_0 |
|
41884
36684da1e60d
Add async function to PurpleProtocol for testing whether or not connections are possible
Gary Kramlich <grim@reaperworld.com>
parents:
41869
diff
changeset
|
330 | gboolean purple_protocol_can_connect_finish(PurpleProtocol *protocol, GAsyncResult *result, GError **error); |
|
36684da1e60d
Add async function to PurpleProtocol for testing whether or not connections are possible
Gary Kramlich <grim@reaperworld.com>
parents:
41869
diff
changeset
|
331 | |
|
36684da1e60d
Add async function to PurpleProtocol for testing whether or not connections are possible
Gary Kramlich <grim@reaperworld.com>
parents:
41869
diff
changeset
|
332 | |
|
36684da1e60d
Add async function to PurpleProtocol for testing whether or not connections are possible
Gary Kramlich <grim@reaperworld.com>
parents:
41869
diff
changeset
|
333 | /** |
|
41869
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41833
diff
changeset
|
334 | * purple_protocol_create_connection: |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41833
diff
changeset
|
335 | * @protocol: The instance. |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41833
diff
changeset
|
336 | * @account: The [class@Purple.Account] for the connection. |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41833
diff
changeset
|
337 | * @password: The password for the account. |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41833
diff
changeset
|
338 | * @error: A return address for a [type@GLib.GError]. |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41833
diff
changeset
|
339 | * |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41833
diff
changeset
|
340 | * Creates a [class@PurpleConnection] for @account. |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41833
diff
changeset
|
341 | * |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41833
diff
changeset
|
342 | * A protocol may indicate an error by setting @error and returning %NULL. |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41833
diff
changeset
|
343 | * |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41833
diff
changeset
|
344 | * Returns: (transfer full): The new connection or %NULL with @error possibly |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41833
diff
changeset
|
345 | * set on error. |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41833
diff
changeset
|
346 | * |
|
42615
2f3308794a8f
Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
347 | * Since: 3.0 |
|
41869
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41833
diff
changeset
|
348 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
349 | PURPLE_AVAILABLE_IN_3_0 |
|
41869
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41833
diff
changeset
|
350 | PurpleConnection *purple_protocol_create_connection(PurpleProtocol *protocol, PurpleAccount *account, const char *password, GError **error); |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41833
diff
changeset
|
351 | |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41833
diff
changeset
|
352 | /** |
|
42877
566102577b66
Add Purple.Protocol.get_action_menu
Gary Kramlich <grim@reaperworld.com>
parents:
42725
diff
changeset
|
353 | * purple_protocol_get_action_menu: |
|
566102577b66
Add Purple.Protocol.get_action_menu
Gary Kramlich <grim@reaperworld.com>
parents:
42725
diff
changeset
|
354 | * @protocol: The instance. |
|
566102577b66
Add Purple.Protocol.get_action_menu
Gary Kramlich <grim@reaperworld.com>
parents:
42725
diff
changeset
|
355 | * @account: The account. |
|
566102577b66
Add Purple.Protocol.get_action_menu
Gary Kramlich <grim@reaperworld.com>
parents:
42725
diff
changeset
|
356 | * |
|
566102577b66
Add Purple.Protocol.get_action_menu
Gary Kramlich <grim@reaperworld.com>
parents:
42725
diff
changeset
|
357 | * Gets a [class@Birb.ActionMenu] for @account. |
|
566102577b66
Add Purple.Protocol.get_action_menu
Gary Kramlich <grim@reaperworld.com>
parents:
42725
diff
changeset
|
358 | * |
|
566102577b66
Add Purple.Protocol.get_action_menu
Gary Kramlich <grim@reaperworld.com>
parents:
42725
diff
changeset
|
359 | * Returns: (transfer full) (nullable): The new action menu or %NULL. |
|
566102577b66
Add Purple.Protocol.get_action_menu
Gary Kramlich <grim@reaperworld.com>
parents:
42725
diff
changeset
|
360 | * |
|
566102577b66
Add Purple.Protocol.get_action_menu
Gary Kramlich <grim@reaperworld.com>
parents:
42725
diff
changeset
|
361 | * Since: 3.0 |
|
566102577b66
Add Purple.Protocol.get_action_menu
Gary Kramlich <grim@reaperworld.com>
parents:
42725
diff
changeset
|
362 | */ |
|
566102577b66
Add Purple.Protocol.get_action_menu
Gary Kramlich <grim@reaperworld.com>
parents:
42725
diff
changeset
|
363 | PURPLE_AVAILABLE_IN_3_0 |
|
566102577b66
Add Purple.Protocol.get_action_menu
Gary Kramlich <grim@reaperworld.com>
parents:
42725
diff
changeset
|
364 | BirbActionMenu *purple_protocol_get_action_menu(PurpleProtocol *protocol, PurpleAccount *account); |
|
566102577b66
Add Purple.Protocol.get_action_menu
Gary Kramlich <grim@reaperworld.com>
parents:
42725
diff
changeset
|
365 | |
|
566102577b66
Add Purple.Protocol.get_action_menu
Gary Kramlich <grim@reaperworld.com>
parents:
42725
diff
changeset
|
366 | /** |
|
41037
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
367 | * purple_protocol_get_icon_name: |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
368 | * @protocol: The #PurpleProtocol instance. |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
369 | * |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
370 | * Gets the name of the icon that the protocol made available via either |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
371 | * purple_protocol_get_icon_search_path() or |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
372 | * purple_protocol_get_resource_path(). |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
373 | * |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
374 | * Returns: The name of the icon for @protocol. |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
375 | * |
|
42615
2f3308794a8f
Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
376 | * Since: 3.0 |
|
41037
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
377 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
378 | PURPLE_AVAILABLE_IN_3_0 |
|
41037
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
379 | const gchar *purple_protocol_get_icon_name(PurpleProtocol *protocol); |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
380 | |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
381 | /** |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
382 | * purple_protocol_get_icon_search_path: |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
383 | * @protocol: The #PurpleProtocol instance. |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
384 | * |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
385 | * Gets the icon search path for @protocol. This is used to allow protocol |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
386 | * plugins to install their icons in any XDG icon theme compliant directory. |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
387 | * The returned value should be the path of where the icons are on disk. See |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
388 | * gtk_icon_theme_add_search_path() for additional information. |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
389 | * |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
390 | * User interfaces will look for icons in this path named |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
391 | * %chat-<protocol-name> where protocol-name is the name property of @protocol. |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
392 | * |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
393 | * Returns: The file system path where the icons can be found. |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
394 | * |
|
42615
2f3308794a8f
Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
395 | * Since: 3.0 |
|
41037
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
396 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
397 | PURPLE_AVAILABLE_IN_3_0 |
|
41037
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
398 | const gchar *purple_protocol_get_icon_search_path(PurpleProtocol *protocol); |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
399 | |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
400 | /** |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
401 | * purple_protocol_get_icon_resource_path: |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
402 | * @protocol: The #PurpleProtocol instance. |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
403 | * |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
404 | * Gets the icon resource path for @protocol. This is used to make icons that |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
405 | * have been embedded into a plugin available to libpurple. The returned value |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
406 | * should be the path of where the icons are in the resource. See |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
407 | * gtk_icon_theme_add_resource_path() for additional information. |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
408 | * |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
409 | * User interfaces will look for icons in this path named |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
410 | * %chat-<protocol-name> where protocol-name is the name property of @protocol. |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
411 | * |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
412 | * Returns: The gresource path where the icons can be found. |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
413 | * |
|
42615
2f3308794a8f
Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
414 | * Since: 3.0 |
|
41037
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
415 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
416 | PURPLE_AVAILABLE_IN_3_0 |
|
41037
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
417 | const gchar *purple_protocol_get_icon_resource_path(PurpleProtocol *protocol); |
|
c2043b9692f6
Add icon-name, icon-search-path, and icon-resource-path to PurpleProtocol
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
418 | |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
419 | G_END_DECLS |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
420 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39597
diff
changeset
|
421 | #endif /* PURPLE_PROTOCOL_H */ |