Mon, 30 Jun 2025 14:22:13 -0500
Update the flatpak to gnome 48 and to the matching birb version
The birb version was missed here when it was updated.
Testing Done:
Built the flatpak with the instructions in the readme.
Reviewed at https://reviews.imfreedom.org/r/4038/
|
40948
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
1 | /* |
|
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
2 | * Purple - Internet Messaging Library |
|
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
3 | * Copyright (C) Pidgin Developers <devel@pidgin.im> |
|
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
4 | * |
|
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
|
5 | * Purple is the legal property of its developers, whose names are too numerous |
|
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 |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42387
diff
changeset
|
7 | * source distribution. |
|
40948
2c312f084d84
Create a manager for conversations.
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. |
|
40948
2c312f084d84
Create a manager for conversations.
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. |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42387
diff
changeset
|
18 | * |
|
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/>. |
|
40948
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
21 | */ |
|
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
22 | |
|
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
23 | #if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION) |
|
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
24 | # error "only <purple.h> may be included directly" |
|
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
25 | #endif |
|
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
26 | |
|
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
27 | #ifndef PURPLE_CONVERSATION_MANAGER_H |
|
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
28 | #define PURPLE_CONVERSATION_MANAGER_H |
|
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
29 | |
|
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
30 | #include <glib.h> |
|
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
31 | |
|
42672
5b864b9b22aa
Create purple_conversation_manager_find_dm
Gary Kramlich <grim@reaperworld.com>
parents:
42613
diff
changeset
|
32 | #include "purplecontact.h" |
|
42340
807dda9de806
Fix more internal includes that were using just angle brackets
Gary Kramlich <grim@reaperworld.com>
parents:
42272
diff
changeset
|
33 | #include "purpleconversation.h" |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42340
diff
changeset
|
34 | #include "purpleversion.h" |
|
40948
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
35 | |
|
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
36 | G_BEGIN_DECLS |
|
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
37 | |
|
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
38 | #define PURPLE_TYPE_CONVERSATION_MANAGER (purple_conversation_manager_get_type()) |
|
41010
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40986
diff
changeset
|
39 | |
|
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40986
diff
changeset
|
40 | /** |
|
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40986
diff
changeset
|
41 | * PurpleConversationManager: |
|
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40986
diff
changeset
|
42 | * |
|
41207
d91e963b0a1c
Remove unnecessary gtk-doc comments and move them where possible from libpurple/purple[a-n]*.h
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
43 | * #PurpleConversationManager keeps track of all #PurpleConversation's inside |
|
d91e963b0a1c
Remove unnecessary gtk-doc comments and move them where possible from libpurple/purple[a-n]*.h
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
44 | * of libpurple and allows searching of them. |
|
41010
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40986
diff
changeset
|
45 | * |
|
42613
780d7efe37c2
Remove the micro version from since tags for libpurple part 2
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
46 | * Since: 3.0 |
|
41010
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40986
diff
changeset
|
47 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42340
diff
changeset
|
48 | PURPLE_AVAILABLE_IN_3_0 |
|
40948
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
49 | G_DECLARE_FINAL_TYPE(PurpleConversationManager, purple_conversation_manager, |
|
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
50 | PURPLE, CONVERSATION_MANAGER, GObject) |
|
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
51 | |
|
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
52 | /** |
|
43029
b95b2d2b8200
Rename Purple.ConversationManager.register/unregister to add/remove
Gary Kramlich <grim@reaperworld.com>
parents:
42777
diff
changeset
|
53 | * purple_conversation_manager_add: |
|
b95b2d2b8200
Rename Purple.ConversationManager.register/unregister to add/remove
Gary Kramlich <grim@reaperworld.com>
parents:
42777
diff
changeset
|
54 | * @manager: The #PurpleConversationManager instance. |
|
b95b2d2b8200
Rename Purple.ConversationManager.register/unregister to add/remove
Gary Kramlich <grim@reaperworld.com>
parents:
42777
diff
changeset
|
55 | * @conversation: The #PurpleConversation to add. |
|
b95b2d2b8200
Rename Purple.ConversationManager.register/unregister to add/remove
Gary Kramlich <grim@reaperworld.com>
parents:
42777
diff
changeset
|
56 | * |
|
b95b2d2b8200
Rename Purple.ConversationManager.register/unregister to add/remove
Gary Kramlich <grim@reaperworld.com>
parents:
42777
diff
changeset
|
57 | * Adds @conversation to @manager. |
|
b95b2d2b8200
Rename Purple.ConversationManager.register/unregister to add/remove
Gary Kramlich <grim@reaperworld.com>
parents:
42777
diff
changeset
|
58 | * |
|
b95b2d2b8200
Rename Purple.ConversationManager.register/unregister to add/remove
Gary Kramlich <grim@reaperworld.com>
parents:
42777
diff
changeset
|
59 | * Returns: %TRUE if @conversation was not yet added. |
|
b95b2d2b8200
Rename Purple.ConversationManager.register/unregister to add/remove
Gary Kramlich <grim@reaperworld.com>
parents:
42777
diff
changeset
|
60 | * |
|
b95b2d2b8200
Rename Purple.ConversationManager.register/unregister to add/remove
Gary Kramlich <grim@reaperworld.com>
parents:
42777
diff
changeset
|
61 | * Since: 3.0 |
|
b95b2d2b8200
Rename Purple.ConversationManager.register/unregister to add/remove
Gary Kramlich <grim@reaperworld.com>
parents:
42777
diff
changeset
|
62 | */ |
|
b95b2d2b8200
Rename Purple.ConversationManager.register/unregister to add/remove
Gary Kramlich <grim@reaperworld.com>
parents:
42777
diff
changeset
|
63 | PURPLE_AVAILABLE_IN_3_0 |
|
b95b2d2b8200
Rename Purple.ConversationManager.register/unregister to add/remove
Gary Kramlich <grim@reaperworld.com>
parents:
42777
diff
changeset
|
64 | gboolean purple_conversation_manager_add(PurpleConversationManager *manager, PurpleConversation *conversation); |
|
b95b2d2b8200
Rename Purple.ConversationManager.register/unregister to add/remove
Gary Kramlich <grim@reaperworld.com>
parents:
42777
diff
changeset
|
65 | |
|
b95b2d2b8200
Rename Purple.ConversationManager.register/unregister to add/remove
Gary Kramlich <grim@reaperworld.com>
parents:
42777
diff
changeset
|
66 | /** |
|
42777
8b4f02641aa9
The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents:
42715
diff
changeset
|
67 | * purple_conversation_manager_new: |
|
8b4f02641aa9
The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents:
42715
diff
changeset
|
68 | * @filename: (nullable): The filename to serialize to. |
|
8b4f02641aa9
The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents:
42715
diff
changeset
|
69 | * |
|
8b4f02641aa9
The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents:
42715
diff
changeset
|
70 | * Creates a new conversation manager that will be backed by @filename. |
|
8b4f02641aa9
The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents:
42715
diff
changeset
|
71 | * |
|
8b4f02641aa9
The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents:
42715
diff
changeset
|
72 | * This is typically only called by user interfaces in |
|
8b4f02641aa9
The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents:
42715
diff
changeset
|
73 | * [vfunc@Ui.get_conversation_manager]. |
|
8b4f02641aa9
The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents:
42715
diff
changeset
|
74 | * |
|
8b4f02641aa9
The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents:
42715
diff
changeset
|
75 | * If you need a [class@ConversationManager] instance, you probably want to use |
|
8b4f02641aa9
The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents:
42715
diff
changeset
|
76 | * [func@ConversationManager.get_default]. |
|
8b4f02641aa9
The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents:
42715
diff
changeset
|
77 | * |
|
8b4f02641aa9
The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents:
42715
diff
changeset
|
78 | * Returns: (transfer full): The new instance. |
|
8b4f02641aa9
The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents:
42715
diff
changeset
|
79 | * |
|
8b4f02641aa9
The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents:
42715
diff
changeset
|
80 | * Since: 3.0 |
|
8b4f02641aa9
The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents:
42715
diff
changeset
|
81 | */ |
|
8b4f02641aa9
The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents:
42715
diff
changeset
|
82 | PURPLE_AVAILABLE_IN_3_0 |
|
8b4f02641aa9
The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents:
42715
diff
changeset
|
83 | PurpleConversationManager *purple_conversation_manager_new(const char *filename); |
|
8b4f02641aa9
The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents:
42715
diff
changeset
|
84 | |
|
8b4f02641aa9
The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents:
42715
diff
changeset
|
85 | /** |
|
40948
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
86 | * purple_conversation_manager_get_default: |
|
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
87 | * |
|
43044
b6cb116ce063
Change the internal data structure of Purple.ConversationManager to GPtrArray
Gary Kramlich <grim@reaperworld.com>
parents:
43040
diff
changeset
|
88 | * Gets the default instance of #PurpleConversationManager. This instance |
|
40948
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
89 | * can be used for any of the API including connecting to signals. |
|
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
90 | * |
|
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
91 | * Returns: (transfer none): The default #PurpleConversationManager instance. |
|
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
92 | * |
|
42613
780d7efe37c2
Remove the micro version from since tags for libpurple part 2
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
93 | * Since: 3.0 |
|
40948
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
94 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42340
diff
changeset
|
95 | PURPLE_AVAILABLE_IN_3_0 |
|
40948
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
96 | PurpleConversationManager *purple_conversation_manager_get_default(void); |
|
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
97 | |
|
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
98 | /** |
|
43044
b6cb116ce063
Change the internal data structure of Purple.ConversationManager to GPtrArray
Gary Kramlich <grim@reaperworld.com>
parents:
43040
diff
changeset
|
99 | * purple_conversation_manager_get_default_as_model: |
|
b6cb116ce063
Change the internal data structure of Purple.ConversationManager to GPtrArray
Gary Kramlich <grim@reaperworld.com>
parents:
43040
diff
changeset
|
100 | * |
|
b6cb116ce063
Change the internal data structure of Purple.ConversationManager to GPtrArray
Gary Kramlich <grim@reaperworld.com>
parents:
43040
diff
changeset
|
101 | * Gets the default instance of #PurpleConversationManager but cast to a |
|
b6cb116ce063
Change the internal data structure of Purple.ConversationManager to GPtrArray
Gary Kramlich <grim@reaperworld.com>
parents:
43040
diff
changeset
|
102 | * [iface@Gio.ListModel]. |
|
b6cb116ce063
Change the internal data structure of Purple.ConversationManager to GPtrArray
Gary Kramlich <grim@reaperworld.com>
parents:
43040
diff
changeset
|
103 | * |
|
b6cb116ce063
Change the internal data structure of Purple.ConversationManager to GPtrArray
Gary Kramlich <grim@reaperworld.com>
parents:
43040
diff
changeset
|
104 | * Returns: (transfer none): The instance cast to a list model. |
|
b6cb116ce063
Change the internal data structure of Purple.ConversationManager to GPtrArray
Gary Kramlich <grim@reaperworld.com>
parents:
43040
diff
changeset
|
105 | * |
|
b6cb116ce063
Change the internal data structure of Purple.ConversationManager to GPtrArray
Gary Kramlich <grim@reaperworld.com>
parents:
43040
diff
changeset
|
106 | * Since: 3.0 |
|
b6cb116ce063
Change the internal data structure of Purple.ConversationManager to GPtrArray
Gary Kramlich <grim@reaperworld.com>
parents:
43040
diff
changeset
|
107 | */ |
|
b6cb116ce063
Change the internal data structure of Purple.ConversationManager to GPtrArray
Gary Kramlich <grim@reaperworld.com>
parents:
43040
diff
changeset
|
108 | PURPLE_AVAILABLE_IN_3_0 |
|
b6cb116ce063
Change the internal data structure of Purple.ConversationManager to GPtrArray
Gary Kramlich <grim@reaperworld.com>
parents:
43040
diff
changeset
|
109 | GListModel *purple_conversation_manager_get_default_as_model(void); |
|
b6cb116ce063
Change the internal data structure of Purple.ConversationManager to GPtrArray
Gary Kramlich <grim@reaperworld.com>
parents:
43040
diff
changeset
|
110 | |
|
b6cb116ce063
Change the internal data structure of Purple.ConversationManager to GPtrArray
Gary Kramlich <grim@reaperworld.com>
parents:
43040
diff
changeset
|
111 | /** |
|
42777
8b4f02641aa9
The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents:
42715
diff
changeset
|
112 | * purple_conversation_manager_get_filename: |
|
8b4f02641aa9
The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents:
42715
diff
changeset
|
113 | * @manager: The instance. |
|
8b4f02641aa9
The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents:
42715
diff
changeset
|
114 | * |
|
8b4f02641aa9
The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents:
42715
diff
changeset
|
115 | * Gets the filename the @manager should be serializing itself to. |
|
8b4f02641aa9
The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents:
42715
diff
changeset
|
116 | * |
|
8b4f02641aa9
The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents:
42715
diff
changeset
|
117 | * Returns: (transfer none) (nullable): The filename. |
|
8b4f02641aa9
The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents:
42715
diff
changeset
|
118 | * |
|
8b4f02641aa9
The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents:
42715
diff
changeset
|
119 | * Since: 3.0 |
|
8b4f02641aa9
The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents:
42715
diff
changeset
|
120 | */ |
|
8b4f02641aa9
The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents:
42715
diff
changeset
|
121 | PURPLE_AVAILABLE_IN_3_0 |
|
8b4f02641aa9
The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents:
42715
diff
changeset
|
122 | const char *purple_conversation_manager_get_filename(PurpleConversationManager *manager); |
|
8b4f02641aa9
The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents:
42715
diff
changeset
|
123 | |
|
8b4f02641aa9
The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents:
42715
diff
changeset
|
124 | /** |
|
40948
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
125 | * purple_conversation_manager_get_all: |
|
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
126 | * @manager: The #PurpleConversationManager instance. |
|
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
127 | * |
|
43040
30a19ec025e9
Remove a bunch of unused api from Purple.ConversationManager
Gary Kramlich <grim@reaperworld.com>
parents:
43033
diff
changeset
|
128 | * Gets a list of all conversations that @manager knows about. |
|
40948
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
129 | * |
|
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
130 | * Returns: (transfer container) (element-type PurpleConversation): A list of |
|
43040
30a19ec025e9
Remove a bunch of unused api from Purple.ConversationManager
Gary Kramlich <grim@reaperworld.com>
parents:
43033
diff
changeset
|
131 | * all of the conversations that @manager knows about. |
|
40948
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
132 | * |
|
42613
780d7efe37c2
Remove the micro version from since tags for libpurple part 2
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
133 | * Since: 3.0 |
|
40948
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
134 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42340
diff
changeset
|
135 | PURPLE_AVAILABLE_IN_3_0 |
|
40948
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
136 | GList *purple_conversation_manager_get_all(PurpleConversationManager *manager); |
|
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
137 | |
|
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
138 | /** |
|
42672
5b864b9b22aa
Create purple_conversation_manager_find_dm
Gary Kramlich <grim@reaperworld.com>
parents:
42613
diff
changeset
|
139 | * purple_conversation_manager_find_dm: |
|
5b864b9b22aa
Create purple_conversation_manager_find_dm
Gary Kramlich <grim@reaperworld.com>
parents:
42613
diff
changeset
|
140 | * @manager: The instance. |
|
5b864b9b22aa
Create purple_conversation_manager_find_dm
Gary Kramlich <grim@reaperworld.com>
parents:
42613
diff
changeset
|
141 | * @contact: The contact. |
|
5b864b9b22aa
Create purple_conversation_manager_find_dm
Gary Kramlich <grim@reaperworld.com>
parents:
42613
diff
changeset
|
142 | * |
|
5b864b9b22aa
Create purple_conversation_manager_find_dm
Gary Kramlich <grim@reaperworld.com>
parents:
42613
diff
changeset
|
143 | * Looks for a direct message with @contact and returns it if found. |
|
5b864b9b22aa
Create purple_conversation_manager_find_dm
Gary Kramlich <grim@reaperworld.com>
parents:
42613
diff
changeset
|
144 | * |
|
5b864b9b22aa
Create purple_conversation_manager_find_dm
Gary Kramlich <grim@reaperworld.com>
parents:
42613
diff
changeset
|
145 | * Returns: (transfer none) (nullable): The conversation if found, otherwise |
|
5b864b9b22aa
Create purple_conversation_manager_find_dm
Gary Kramlich <grim@reaperworld.com>
parents:
42613
diff
changeset
|
146 | * %NULL. |
|
5b864b9b22aa
Create purple_conversation_manager_find_dm
Gary Kramlich <grim@reaperworld.com>
parents:
42613
diff
changeset
|
147 | * |
|
5b864b9b22aa
Create purple_conversation_manager_find_dm
Gary Kramlich <grim@reaperworld.com>
parents:
42613
diff
changeset
|
148 | * Since: 3.0 |
|
5b864b9b22aa
Create purple_conversation_manager_find_dm
Gary Kramlich <grim@reaperworld.com>
parents:
42613
diff
changeset
|
149 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42340
diff
changeset
|
150 | PURPLE_AVAILABLE_IN_3_0 |
|
42672
5b864b9b22aa
Create purple_conversation_manager_find_dm
Gary Kramlich <grim@reaperworld.com>
parents:
42613
diff
changeset
|
151 | PurpleConversation *purple_conversation_manager_find_dm(PurpleConversationManager *manager, PurpleContact *contact); |
|
40948
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
152 | |
|
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
153 | /** |
|
42272
015257326ad4
Add an id property to PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
41686
diff
changeset
|
154 | * purple_conversation_manager_find_with_id: |
|
015257326ad4
Add an id property to PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
41686
diff
changeset
|
155 | * @manager: The instance. |
|
015257326ad4
Add an id property to PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
41686
diff
changeset
|
156 | * @account: The account the conversation belongs to. |
|
015257326ad4
Add an id property to PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
41686
diff
changeset
|
157 | * @id: The identifier of the conversation. |
|
015257326ad4
Add an id property to PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
41686
diff
changeset
|
158 | * |
|
43040
30a19ec025e9
Remove a bunch of unused api from Purple.ConversationManager
Gary Kramlich <grim@reaperworld.com>
parents:
43033
diff
changeset
|
159 | * Looks for a conversation belonging to @account with an id of @id. |
|
42272
015257326ad4
Add an id property to PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
41686
diff
changeset
|
160 | * |
|
015257326ad4
Add an id property to PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
41686
diff
changeset
|
161 | * Returns: (transfer none) (nullable): The [class@PurpleConversation] if |
|
015257326ad4
Add an id property to PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
41686
diff
changeset
|
162 | * found, otherwise %NULL. |
|
015257326ad4
Add an id property to PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
41686
diff
changeset
|
163 | * |
|
42613
780d7efe37c2
Remove the micro version from since tags for libpurple part 2
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
164 | * Since: 3.0 |
|
42272
015257326ad4
Add an id property to PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
41686
diff
changeset
|
165 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42340
diff
changeset
|
166 | PURPLE_AVAILABLE_IN_3_0 |
|
42272
015257326ad4
Add an id property to PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
41686
diff
changeset
|
167 | PurpleConversation *purple_conversation_manager_find_with_id(PurpleConversationManager *manager, PurpleAccount *account, const char *id); |
|
015257326ad4
Add an id property to PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
41686
diff
changeset
|
168 | |
|
43029
b95b2d2b8200
Rename Purple.ConversationManager.register/unregister to add/remove
Gary Kramlich <grim@reaperworld.com>
parents:
42777
diff
changeset
|
169 | /** |
|
b95b2d2b8200
Rename Purple.ConversationManager.register/unregister to add/remove
Gary Kramlich <grim@reaperworld.com>
parents:
42777
diff
changeset
|
170 | * purple_conversation_manager_remove: |
|
b95b2d2b8200
Rename Purple.ConversationManager.register/unregister to add/remove
Gary Kramlich <grim@reaperworld.com>
parents:
42777
diff
changeset
|
171 | * @manager: The #PurpleConversationManager instance. |
|
b95b2d2b8200
Rename Purple.ConversationManager.register/unregister to add/remove
Gary Kramlich <grim@reaperworld.com>
parents:
42777
diff
changeset
|
172 | * @conversation: The #PurpleConversation to remove. |
|
b95b2d2b8200
Rename Purple.ConversationManager.register/unregister to add/remove
Gary Kramlich <grim@reaperworld.com>
parents:
42777
diff
changeset
|
173 | * |
|
b95b2d2b8200
Rename Purple.ConversationManager.register/unregister to add/remove
Gary Kramlich <grim@reaperworld.com>
parents:
42777
diff
changeset
|
174 | * Removes @conversation from @manager. |
|
b95b2d2b8200
Rename Purple.ConversationManager.register/unregister to add/remove
Gary Kramlich <grim@reaperworld.com>
parents:
42777
diff
changeset
|
175 | * |
|
b95b2d2b8200
Rename Purple.ConversationManager.register/unregister to add/remove
Gary Kramlich <grim@reaperworld.com>
parents:
42777
diff
changeset
|
176 | * Returns: %TRUE if @conversation was found and removed. |
|
b95b2d2b8200
Rename Purple.ConversationManager.register/unregister to add/remove
Gary Kramlich <grim@reaperworld.com>
parents:
42777
diff
changeset
|
177 | * |
|
b95b2d2b8200
Rename Purple.ConversationManager.register/unregister to add/remove
Gary Kramlich <grim@reaperworld.com>
parents:
42777
diff
changeset
|
178 | * Since: 3.0 |
|
b95b2d2b8200
Rename Purple.ConversationManager.register/unregister to add/remove
Gary Kramlich <grim@reaperworld.com>
parents:
42777
diff
changeset
|
179 | */ |
|
b95b2d2b8200
Rename Purple.ConversationManager.register/unregister to add/remove
Gary Kramlich <grim@reaperworld.com>
parents:
42777
diff
changeset
|
180 | PURPLE_AVAILABLE_IN_3_0 |
|
b95b2d2b8200
Rename Purple.ConversationManager.register/unregister to add/remove
Gary Kramlich <grim@reaperworld.com>
parents:
42777
diff
changeset
|
181 | gboolean purple_conversation_manager_remove(PurpleConversationManager *manager, PurpleConversation *conversation); |
|
b95b2d2b8200
Rename Purple.ConversationManager.register/unregister to add/remove
Gary Kramlich <grim@reaperworld.com>
parents:
42777
diff
changeset
|
182 | |
|
40948
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
183 | G_END_DECLS |
|
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
184 | |
|
2c312f084d84
Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
185 | #endif /* PURPLE_CONVERSATION_MANAGER_H */ |