libpurple/plugins/perl/common/Conversation.xs

Mon, 03 Feb 2014 22:40:31 +0530

author
Ankit Vani <a@nevitus.org>
date
Mon, 03 Feb 2014 22:40:31 +0530
branch
gtkdoc-conversion
changeset 35436
a69d2e5604c5
parent 35307
2af82f31e6a8
child 35639
7391a9c98a1d
permissions
-rw-r--r--

Swap @title and @short_description roles

6591
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
1 #include "module.h"
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
2
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
3 MODULE = Purple::Conversation PACKAGE = Purple PREFIX = purple_
12819
50f53c5e6657 [gaim-migrate @ 15167]
Etan Reisner <deryni@pidgin.im>
parents: 12364
diff changeset
4 PROTOTYPES: ENABLE
50f53c5e6657 [gaim-migrate @ 15167]
Etan Reisner <deryni@pidgin.im>
parents: 12364
diff changeset
5
16773
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
6 BOOT:
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
7 {
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
8 HV *update_stash = gv_stashpv("Purple::Conversation::UpdateType", 1);
34670
9bd5bd903dc7 Renamed chat buddies to chat users, and IM conversation typing state to IM typing state.
Ankit Vani <a@nevitus.org>
parents: 34656
diff changeset
9 HV *typing_stash = gv_stashpv("Purple::IMTypingState", 1);
34620
e49aa67344e1 Renamed PurpleConversationMessageFlags back to PurpleMessageFlags.
Ankit Vani <a@nevitus.org>
parents: 34617
diff changeset
10 HV *flags_stash = gv_stashpv("Purple::MessageFlags", 1);
34670
9bd5bd903dc7 Renamed chat buddies to chat users, and IM conversation typing state to IM typing state.
Ankit Vani <a@nevitus.org>
parents: 34656
diff changeset
11 HV *cbflags_stash = gv_stashpv("Purple::ChatUser::Flags", 1);
16773
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
12
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
13 static const constiv *civ, update_const_iv[] = {
16773
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
14 #undef const_iv
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
15 #define const_iv(name) {#name, (IV)PURPLE_CONVERSATION_UPDATE_##name}
16773
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
16 const_iv(ADD),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
17 const_iv(REMOVE),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
18 const_iv(ACCOUNT),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
19 const_iv(TYPING),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
20 const_iv(UNSEEN),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
21 const_iv(LOGGING),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
22 const_iv(TOPIC),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
23 /*
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
24 const_iv(ONLINE),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
25 const_iv(OFFLINE),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
26 */
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
27 const_iv(AWAY),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
28 const_iv(ICON),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
29 const_iv(TITLE),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
30 const_iv(CHATLEFT),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
31 const_iv(FEATURES),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
32 };
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
33 static const constiv typing_const_iv[] = {
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
34 #undef const_iv
34670
9bd5bd903dc7 Renamed chat buddies to chat users, and IM conversation typing state to IM typing state.
Ankit Vani <a@nevitus.org>
parents: 34656
diff changeset
35 #define const_iv(name) {#name, (IV)PURPLE_IM_##name}
16773
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
36 const_iv(NOT_TYPING),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
37 const_iv(TYPING),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
38 const_iv(TYPED),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
39 };
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
40 static const constiv flags_const_iv[] = {
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
41 #undef const_iv
34620
e49aa67344e1 Renamed PurpleConversationMessageFlags back to PurpleMessageFlags.
Ankit Vani <a@nevitus.org>
parents: 34617
diff changeset
42 #define const_iv(name) {#name, (IV)PURPLE_MESSAGE_##name}
16773
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
43 const_iv(SEND),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
44 const_iv(RECV),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
45 const_iv(SYSTEM),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
46 const_iv(AUTO_RESP),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
47 const_iv(ACTIVE_ONLY),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
48 const_iv(NICK),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
49 const_iv(NO_LOG),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
50 const_iv(WHISPER),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
51 const_iv(ERROR),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
52 const_iv(DELAYED),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
53 const_iv(RAW),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
54 const_iv(IMAGES),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
55 const_iv(NOTIFY),
18282
7f893fd24e1f Add NO_LINKIFY message flag for perl plugins.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18122
diff changeset
56 const_iv(NO_LINKIFY),
16773
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
57 };
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
58 static const constiv cbflags_const_iv[] = {
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
59 #undef const_iv
34670
9bd5bd903dc7 Renamed chat buddies to chat users, and IM conversation typing state to IM typing state.
Ankit Vani <a@nevitus.org>
parents: 34656
diff changeset
60 #define const_iv(name) {#name, (IV)PURPLE_CHAT_USER_##name}
16773
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
61 const_iv(NONE),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
62 const_iv(VOICE),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
63 const_iv(HALFOP),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
64 const_iv(OP),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
65 const_iv(FOUNDER),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
66 const_iv(TYPING),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
67 };
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
68
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
69 for (civ = update_const_iv + sizeof(update_const_iv) / sizeof(update_const_iv[0]); civ-- > update_const_iv; )
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
70 newCONSTSUB(update_stash, (char *)civ->name, newSViv(civ->iv));
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
71
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
72 for (civ = typing_const_iv + sizeof(typing_const_iv) / sizeof(typing_const_iv[0]); civ-- > typing_const_iv; )
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
73 newCONSTSUB(typing_stash, (char *)civ->name, newSViv(civ->iv));
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
74
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
75 for (civ = flags_const_iv + sizeof(flags_const_iv) / sizeof(flags_const_iv[0]); civ-- > flags_const_iv; )
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
76 newCONSTSUB(flags_stash, (char *)civ->name, newSViv(civ->iv));
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
77
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
78 for (civ = cbflags_const_iv + sizeof(cbflags_const_iv) / sizeof(cbflags_const_iv[0]); civ-- > cbflags_const_iv; )
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
79 newCONSTSUB(cbflags_stash, (char *)civ->name, newSViv(civ->iv));
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
80 }
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
81
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
82 MODULE = Purple::Conversation PACKAGE = Purple::Conversations PREFIX = purple_conversations_
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
83 PROTOTYPES: ENABLE
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
84
34646
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
85 void
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
86 purple_conversations_add(conv)
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
87 Purple::Conversation conv
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
88
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
89 void
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
90 purple_conversations_remove(conv)
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
91 Purple::Conversation conv
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
92
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
93 Purple::Handle
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
94 purple_conversations_get_handle()
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
95
34632
ebe6b2a60305 Changed all arguments and return types of Chat and IMs to PurpleChatConversation and PurpleIMConversation.
Ankit Vani <a@nevitus.org>
parents: 34621
diff changeset
96 Purple::ChatConversation
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
97 purple_conversations_find_chat(gc, id)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
98 Purple::Connection gc
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
99 int id
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
100
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
101 void
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
102 purple_conversations_get_ims()
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
103 PREINIT:
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
104 GList *l;
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
105 PPCODE:
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
106 for (l = purple_conversations_get_ims(); l != NULL; l = l->next) {
34656
adbcbe04077c Refactored remaining libpurple to use the GObject conversation API
Ankit Vani <a@nevitus.org>
parents: 34652
diff changeset
107 XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::IMConversation")));
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
108 }
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
109
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
110 void
34656
adbcbe04077c Refactored remaining libpurple to use the GObject conversation API
Ankit Vani <a@nevitus.org>
parents: 34652
diff changeset
111 purple_conversations_get_all()
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
112 PREINIT:
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
113 GList *l;
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
114 PPCODE:
34656
adbcbe04077c Refactored remaining libpurple to use the GObject conversation API
Ankit Vani <a@nevitus.org>
parents: 34652
diff changeset
115 for (l = purple_conversations_get_all(); l != NULL; l = l->next) {
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
116 XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::Conversation")));
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
117 }
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
118
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
119 void
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
120 purple_conversations_get_chats()
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
121 PREINIT:
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
122 GList *l;
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
123 PPCODE:
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
124 for (l = purple_conversations_get_chats(); l != NULL; l = l->next) {
34656
adbcbe04077c Refactored remaining libpurple to use the GObject conversation API
Ankit Vani <a@nevitus.org>
parents: 34652
diff changeset
125 XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::ChatConversation")));
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
126 }
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
127
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
128 Purple::Conversation
34617
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34616
diff changeset
129 purple_conversations_find_with_account(name, account)
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34616
diff changeset
130 const char *name
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34616
diff changeset
131 Purple::Account account
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34616
diff changeset
132
34632
ebe6b2a60305 Changed all arguments and return types of Chat and IMs to PurpleChatConversation and PurpleIMConversation.
Ankit Vani <a@nevitus.org>
parents: 34621
diff changeset
133 Purple::ChatConversation
34617
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34616
diff changeset
134 purple_conversations_find_chat_with_account(name, account)
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34616
diff changeset
135 const char *name
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34616
diff changeset
136 Purple::Account account
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34616
diff changeset
137
34632
ebe6b2a60305 Changed all arguments and return types of Chat and IMs to PurpleChatConversation and PurpleIMConversation.
Ankit Vani <a@nevitus.org>
parents: 34621
diff changeset
138 Purple::IMConversation
34617
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34616
diff changeset
139 purple_conversations_find_im_with_account(name, account)
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
140 const char *name
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
141 Purple::Account account
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
142
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
143 MODULE = Purple::Conversation PACKAGE = Purple::Conversation PREFIX = purple_conversation_
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
144 PROTOTYPES: ENABLE
6591
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
145
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
146 Purple::Account
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
147 purple_conversation_get_account(conv)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
148 Purple::Conversation conv
6591
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
149
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
150 Purple::Connection
32698
154e4a2a6287 Our API really shouldn't have a 'gc' in it anymore.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32336
diff changeset
151 purple_conversation_get_connection(conv)
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
152 Purple::Conversation conv
6591
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
153
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
154 void
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
155 purple_conversation_set_title(conv, title);
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
156 Purple::Conversation conv
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
157 const char * title
6591
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
158
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
159 const char *
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
160 purple_conversation_get_title(conv)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
161 Purple::Conversation conv
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
162
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
163 void
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
164 purple_conversation_autoset_title(conv)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
165 Purple::Conversation conv
6591
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
166
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
167 void
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
168 purple_conversation_set_name(conv, name)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
169 Purple::Conversation conv
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
170 const char *name
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
171
6591
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
172 const char *
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
173 purple_conversation_get_name(conv)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
174 Purple::Conversation conv
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
175
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
176 void
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
177 purple_conversation_set_logging(conv, log)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
178 Purple::Conversation conv
6591
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
179 gboolean log
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
180
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
181 gboolean
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
182 purple_conversation_is_logging(conv)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
183 Purple::Conversation conv
6591
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
184
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
185 Purple::ConnectionFlags
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
186 purple_conversation_get_features(conv)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
187 Purple::Conversation conv
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
188
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
189 gboolean
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
190 purple_conversation_has_focus(conv)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
191 Purple::Conversation conv
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
192
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
193 void
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
194 purple_conversation_update(conv, type)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
195 Purple::Conversation conv
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
196 Purple::Conversation::UpdateType type
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
197
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
198 void
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
199 purple_conversation_set_account(conv, account);
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
200 Purple::Conversation conv
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
201 Purple::Account account
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
202
17268
de9f01003194 Expose _conversation_write and _conversation_do_command for perl plugins.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 16773
diff changeset
203 void
de9f01003194 Expose _conversation_write and _conversation_do_command for perl plugins.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 16773
diff changeset
204 purple_conversation_write(conv, who, message, flags, mtime)
de9f01003194 Expose _conversation_write and _conversation_do_command for perl plugins.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 16773
diff changeset
205 Purple::Conversation conv
de9f01003194 Expose _conversation_write and _conversation_do_command for perl plugins.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 16773
diff changeset
206 const char *who
de9f01003194 Expose _conversation_write and _conversation_do_command for perl plugins.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 16773
diff changeset
207 const char *message
34620
e49aa67344e1 Renamed PurpleConversationMessageFlags back to PurpleMessageFlags.
Ankit Vani <a@nevitus.org>
parents: 34617
diff changeset
208 Purple::MessageFlags flags
17268
de9f01003194 Expose _conversation_write and _conversation_do_command for perl plugins.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 16773
diff changeset
209 time_t mtime
de9f01003194 Expose _conversation_write and _conversation_do_command for perl plugins.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 16773
diff changeset
210
34613
59e3b109ab38 Added send() and send_with_flags() methods in Conversation.xs
Ankit Vani <a@nevitus.org>
parents: 34609
diff changeset
211 void
34616
1604c574cdc9 Added write_message and send_message to Conversation.xs
Ankit Vani <a@nevitus.org>
parents: 34613
diff changeset
212 purple_conversation_write_message(conv, who, message, flags, mtime)
1604c574cdc9 Added write_message and send_message to Conversation.xs
Ankit Vani <a@nevitus.org>
parents: 34613
diff changeset
213 Purple::Conversation conv
1604c574cdc9 Added write_message and send_message to Conversation.xs
Ankit Vani <a@nevitus.org>
parents: 34613
diff changeset
214 const char *who
1604c574cdc9 Added write_message and send_message to Conversation.xs
Ankit Vani <a@nevitus.org>
parents: 34613
diff changeset
215 const char *message
34620
e49aa67344e1 Renamed PurpleConversationMessageFlags back to PurpleMessageFlags.
Ankit Vani <a@nevitus.org>
parents: 34617
diff changeset
216 Purple::MessageFlags flags
34616
1604c574cdc9 Added write_message and send_message to Conversation.xs
Ankit Vani <a@nevitus.org>
parents: 34613
diff changeset
217 time_t mtime
1604c574cdc9 Added write_message and send_message to Conversation.xs
Ankit Vani <a@nevitus.org>
parents: 34613
diff changeset
218
1604c574cdc9 Added write_message and send_message to Conversation.xs
Ankit Vani <a@nevitus.org>
parents: 34613
diff changeset
219 void
34613
59e3b109ab38 Added send() and send_with_flags() methods in Conversation.xs
Ankit Vani <a@nevitus.org>
parents: 34609
diff changeset
220 purple_conversation_send(conv, message)
59e3b109ab38 Added send() and send_with_flags() methods in Conversation.xs
Ankit Vani <a@nevitus.org>
parents: 34609
diff changeset
221 Purple::Conversation conv
59e3b109ab38 Added send() and send_with_flags() methods in Conversation.xs
Ankit Vani <a@nevitus.org>
parents: 34609
diff changeset
222 const char *message
59e3b109ab38 Added send() and send_with_flags() methods in Conversation.xs
Ankit Vani <a@nevitus.org>
parents: 34609
diff changeset
223
59e3b109ab38 Added send() and send_with_flags() methods in Conversation.xs
Ankit Vani <a@nevitus.org>
parents: 34609
diff changeset
224 void
34652
65a6bfb86d43 Updated libpurple plugins with the API changes
Ankit Vani <a@nevitus.org>
parents: 34646
diff changeset
225 purple_conversation_send_with_flags(conv, message, flags)
34613
59e3b109ab38 Added send() and send_with_flags() methods in Conversation.xs
Ankit Vani <a@nevitus.org>
parents: 34609
diff changeset
226 Purple::Conversation conv
59e3b109ab38 Added send() and send_with_flags() methods in Conversation.xs
Ankit Vani <a@nevitus.org>
parents: 34609
diff changeset
227 const char *message
34620
e49aa67344e1 Renamed PurpleConversationMessageFlags back to PurpleMessageFlags.
Ankit Vani <a@nevitus.org>
parents: 34617
diff changeset
228 Purple::MessageFlags flags
34613
59e3b109ab38 Added send() and send_with_flags() methods in Conversation.xs
Ankit Vani <a@nevitus.org>
parents: 34609
diff changeset
229
33577
e614c5283d96 Revert my revision 485b1a932990
Mark Doliner <mark@kingant.net>
parents: 33569
diff changeset
230 gboolean
e614c5283d96 Revert my revision 485b1a932990
Mark Doliner <mark@kingant.net>
parents: 33569
diff changeset
231 purple_conversation_do_command(conv, cmdline, markup, error)
e614c5283d96 Revert my revision 485b1a932990
Mark Doliner <mark@kingant.net>
parents: 33569
diff changeset
232 Purple::Conversation conv
e614c5283d96 Revert my revision 485b1a932990
Mark Doliner <mark@kingant.net>
parents: 33569
diff changeset
233 const char *cmdline
e614c5283d96 Revert my revision 485b1a932990
Mark Doliner <mark@kingant.net>
parents: 33569
diff changeset
234 const char *markup
e614c5283d96 Revert my revision 485b1a932990
Mark Doliner <mark@kingant.net>
parents: 33569
diff changeset
235 char **error
e614c5283d96 Revert my revision 485b1a932990
Mark Doliner <mark@kingant.net>
parents: 33569
diff changeset
236
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
237 MODULE = Purple::Conversation PACKAGE = Purple::IMConversation PREFIX = purple_im_conversation_
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
238 PROTOTYPES: ENABLE
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
239
34632
ebe6b2a60305 Changed all arguments and return types of Chat and IMs to PurpleChatConversation and PurpleIMConversation.
Ankit Vani <a@nevitus.org>
parents: 34621
diff changeset
240 Purple::IMConversation
34609
28b0f26f011f Added GObject boilerplate code for headers, also _new() and _get_type() functions.
Ankit Vani <a@nevitus.org>
parents: 34608
diff changeset
241 purple_im_conversation_new(class, account, name)
28b0f26f011f Added GObject boilerplate code for headers, also _new() and _get_type() functions.
Ankit Vani <a@nevitus.org>
parents: 34608
diff changeset
242 Purple::Account account
28b0f26f011f Added GObject boilerplate code for headers, also _new() and _get_type() functions.
Ankit Vani <a@nevitus.org>
parents: 34608
diff changeset
243 const char *name
28b0f26f011f Added GObject boilerplate code for headers, also _new() and _get_type() functions.
Ankit Vani <a@nevitus.org>
parents: 34608
diff changeset
244 C_ARGS:
28b0f26f011f Added GObject boilerplate code for headers, also _new() and _get_type() functions.
Ankit Vani <a@nevitus.org>
parents: 34608
diff changeset
245 account, name
28b0f26f011f Added GObject boilerplate code for headers, also _new() and _get_type() functions.
Ankit Vani <a@nevitus.org>
parents: 34608
diff changeset
246
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
247 void
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
248 purple_im_conversation_set_icon(im, icon)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
249 Purple::IMConversation im
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
250 Purple::Buddy::Icon icon
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
251
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
252 Purple::Buddy::Icon
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
253 purple_im_conversation_get_icon(im)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
254 Purple::IMConversation im
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
255
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
256 void
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
257 purple_im_conversation_set_typing_state(im, state)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
258 Purple::IMConversation im
34670
9bd5bd903dc7 Renamed chat buddies to chat users, and IM conversation typing state to IM typing state.
Ankit Vani <a@nevitus.org>
parents: 34656
diff changeset
259 Purple::IMTypingState state
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
260
34670
9bd5bd903dc7 Renamed chat buddies to chat users, and IM conversation typing state to IM typing state.
Ankit Vani <a@nevitus.org>
parents: 34656
diff changeset
261 Purple::IMTypingState
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
262 purple_im_conversation_get_typing_state(im)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
263 Purple::IMConversation im
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
264
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
265 void
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
266 purple_im_conversation_start_typing_timeout(im, timeout)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
267 Purple::IMConversation im
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
268 int timeout
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
269
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
270 void
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
271 purple_im_conversation_stop_typing_timeout(im)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
272 Purple::IMConversation im
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
273
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
274 guint
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
275 purple_im_conversation_get_typing_timeout(im)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
276 Purple::IMConversation im
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
277
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
278 void
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
279 purple_im_conversation_set_type_again(im, val)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
280 Purple::IMConversation im
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
281 time_t val
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
282
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
283 time_t
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
284 purple_im_conversation_get_type_again(im)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
285 Purple::IMConversation im
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
286
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
287 void
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
288 purple_im_conversation_start_send_typed_timeout(im)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
289 Purple::IMConversation im
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
290
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
291 void
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
292 purple_im_conversation_stop_send_typed_timeout(im)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
293 Purple::IMConversation im
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
294
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
295 guint
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
296 purple_im_conversation_get_send_typed_timeout(im)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
297 Purple::IMConversation im
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
298
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
299 void
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
300 purple_im_conversation_update_typing(im)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
301 Purple::IMConversation im
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
302
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
303 MODULE = Purple::Conversation PACKAGE = Purple::Conversation::Helper PREFIX = purple_conversation_helper_
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
304 PROTOTYPES: ENABLE
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
305
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
306 gboolean
34868
faa5b053f310 Replaced purple_conversation_helper_present_error() with simpler purple_conversation_present_error()
Ankit Vani <a@nevitus.org>
parents: 34682
diff changeset
307 purple_conversation_present_error(who, account, what)
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
308 const char *who
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
309 Purple::Account account
12819
50f53c5e6657 [gaim-migrate @ 15167]
Etan Reisner <deryni@pidgin.im>
parents: 12364
diff changeset
310 const char *what
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
311
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
312 MODULE = Purple::Conversation PACKAGE = Purple::Conversation PREFIX = purple_conversation_
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
313 PROTOTYPES: ENABLE
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
314
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
315 void
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
316 purple_conversation_custom_smiley_close(conv, smile)
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
317 Purple::Conversation conv
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
318 const char *smile
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
319
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
320 MODULE = Purple::Conversation PACKAGE = Purple::ChatConversation PREFIX = purple_chat_conversation_
6591
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
321 PROTOTYPES: ENABLE
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
322
34632
ebe6b2a60305 Changed all arguments and return types of Chat and IMs to PurpleChatConversation and PurpleIMConversation.
Ankit Vani <a@nevitus.org>
parents: 34621
diff changeset
323 Purple::ChatConversation
34609
28b0f26f011f Added GObject boilerplate code for headers, also _new() and _get_type() functions.
Ankit Vani <a@nevitus.org>
parents: 34608
diff changeset
324 purple_chat_conversation_new(class, account, name)
28b0f26f011f Added GObject boilerplate code for headers, also _new() and _get_type() functions.
Ankit Vani <a@nevitus.org>
parents: 34608
diff changeset
325 Purple::Account account
28b0f26f011f Added GObject boilerplate code for headers, also _new() and _get_type() functions.
Ankit Vani <a@nevitus.org>
parents: 34608
diff changeset
326 const char *name
28b0f26f011f Added GObject boilerplate code for headers, also _new() and _get_type() functions.
Ankit Vani <a@nevitus.org>
parents: 34608
diff changeset
327 C_ARGS:
28b0f26f011f Added GObject boilerplate code for headers, also _new() and _get_type() functions.
Ankit Vani <a@nevitus.org>
parents: 34608
diff changeset
328 account, name
28b0f26f011f Added GObject boilerplate code for headers, also _new() and _get_type() functions.
Ankit Vani <a@nevitus.org>
parents: 34608
diff changeset
329
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
330 void
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
331 purple_chat_conversation_get_users(chat)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
332 Purple::ChatConversation chat
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
333 PREINIT:
18122
9bf9970c1b6a disapproval of revision '2d8ea56b90971e7851442d96b7d74ecb4f052126'
Richard Laager <rlaager@pidgin.im>
parents: 18121
diff changeset
334 GList *l;
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
335 PPCODE:
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
336 for (l = purple_chat_conversation_get_users(chat); l != NULL; l = l->next) {
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
337 XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::ListEntry")));
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
338 }
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
339
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
340 void
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
341 purple_chat_conversation_ignore(chat, name)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
342 Purple::ChatConversation chat
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
343 const char *name
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
344
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
345 void
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
346 purple_chat_conversation_unignore(chat, name)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
347 Purple::ChatConversation chat
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
348 const char *name
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
349
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
350 void
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
351 purple_chat_conversation_set_ignored(chat, ignored)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
352 Purple::ChatConversation chat
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
353 SV * ignored
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
354 PREINIT:
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
355 GList *l, *t_GL;
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
356 int i, t_len;
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
357 PPCODE:
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
358 t_GL = NULL;
25112
4e9dba9e28e6 disapproval of revision '2d9389f32256ca757b17d7cabe9d9beebce0d311'
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 25106
diff changeset
359 t_len = av_len((AV *)SvRV(ignored));
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
360
25107
bd102c539600 Tweak a few for loop conditions in the Perl bindings per Etan's suggestion.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 25106
diff changeset
361 for (i = 0; i <= t_len; i++)
23980
a38cbb35eecf Some cleanup and a couple leak fixes.
Daniel Atallah <datallah@pidgin.im>
parents: 21737
diff changeset
362 t_GL = g_list_append(t_GL, SvPVutf8_nolen(*av_fetch((AV *)SvRV(ignored), i, 0)));
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
363
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
364 for (l = purple_chat_conversation_set_ignored(chat, t_GL); l != NULL; l = l->next) {
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
365 XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::ListEntry")));
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
366 }
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
367
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
368 void
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
369 purple_chat_conversation_get_ignored(chat)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
370 Purple::ChatConversation chat
6591
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
371 PREINIT:
18122
9bf9970c1b6a disapproval of revision '2d8ea56b90971e7851442d96b7d74ecb4f052126'
Richard Laager <rlaager@pidgin.im>
parents: 18121
diff changeset
372 GList *l;
6591
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
373 PPCODE:
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
374 for (l = purple_chat_conversation_get_ignored(chat); l != NULL; l = l->next) {
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
375 XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::ListEntry")));
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
376 }
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
377
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
378 const char *
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
379 purple_chat_conversation_get_topic(chat)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
380 Purple::ChatConversation chat
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
381
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
382 void
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
383 purple_chat_conversation_set_id(chat, id)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
384 Purple::ChatConversation chat
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
385 int id
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
386
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
387 int
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
388 purple_chat_conversation_get_id(chat)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
389 Purple::ChatConversation chat
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
390
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
391 void
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
392 purple_chat_conversation_add_users(chat, users, extra_msgs, flags, new_arrivals)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
393 Purple::ChatConversation chat
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
394 SV * users
11456
ed9863eb788f [gaim-migrate @ 13695]
Richard Laager <rlaager@pidgin.im>
parents: 11290
diff changeset
395 SV * extra_msgs
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
396 SV * flags
11456
ed9863eb788f [gaim-migrate @ 13695]
Richard Laager <rlaager@pidgin.im>
parents: 11290
diff changeset
397 gboolean new_arrivals
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
398 PREINIT:
11456
ed9863eb788f [gaim-migrate @ 13695]
Richard Laager <rlaager@pidgin.im>
parents: 11290
diff changeset
399 GList *t_GL_users, *t_GL_extra_msgs, *t_GL_flags;
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
400 int i, t_len;
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
401 PPCODE:
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
402 t_GL_users = NULL;
25112
4e9dba9e28e6 disapproval of revision '2d9389f32256ca757b17d7cabe9d9beebce0d311'
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 25106
diff changeset
403 t_len = av_len((AV *)SvRV(users));
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
404
25107
bd102c539600 Tweak a few for loop conditions in the Perl bindings per Etan's suggestion.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 25106
diff changeset
405 for (i = 0; i <= t_len; i++)
23980
a38cbb35eecf Some cleanup and a couple leak fixes.
Daniel Atallah <datallah@pidgin.im>
parents: 21737
diff changeset
406 t_GL_users = g_list_append(t_GL_users, SvPVutf8_nolen(*av_fetch((AV *)SvRV(users), i, 0)));
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
407
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
408 t_GL_flags = NULL;
25112
4e9dba9e28e6 disapproval of revision '2d9389f32256ca757b17d7cabe9d9beebce0d311'
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 25106
diff changeset
409 t_len = av_len((AV *)SvRV(flags));
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
410
25107
bd102c539600 Tweak a few for loop conditions in the Perl bindings per Etan's suggestion.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 25106
diff changeset
411 for (i = 0; i <= t_len; i++)
23980
a38cbb35eecf Some cleanup and a couple leak fixes.
Daniel Atallah <datallah@pidgin.im>
parents: 21737
diff changeset
412 t_GL_flags = g_list_append(t_GL_flags, SvPVutf8_nolen(*av_fetch((AV *)SvRV(flags), i, 0)));
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
413
11456
ed9863eb788f [gaim-migrate @ 13695]
Richard Laager <rlaager@pidgin.im>
parents: 11290
diff changeset
414 t_GL_extra_msgs = NULL;
25112
4e9dba9e28e6 disapproval of revision '2d9389f32256ca757b17d7cabe9d9beebce0d311'
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 25106
diff changeset
415 t_len = av_len((AV *)SvRV(extra_msgs));
11456
ed9863eb788f [gaim-migrate @ 13695]
Richard Laager <rlaager@pidgin.im>
parents: 11290
diff changeset
416
25107
bd102c539600 Tweak a few for loop conditions in the Perl bindings per Etan's suggestion.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 25106
diff changeset
417 for (i = 0; i <= t_len; i++)
23980
a38cbb35eecf Some cleanup and a couple leak fixes.
Daniel Atallah <datallah@pidgin.im>
parents: 21737
diff changeset
418 t_GL_extra_msgs = g_list_append(t_GL_extra_msgs, SvPVutf8_nolen(*av_fetch((AV *)SvRV(extra_msgs), i, 0)));
11456
ed9863eb788f [gaim-migrate @ 13695]
Richard Laager <rlaager@pidgin.im>
parents: 11290
diff changeset
419
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
420 purple_chat_conversation_add_users(chat, t_GL_users, t_GL_extra_msgs, t_GL_flags, new_arrivals);
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
421
21737
fa92350ed598 applied changes from 8d953d5714cb202c5fa66fda1b0f31f01a969622
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 18282
diff changeset
422 g_list_free(t_GL_users);
fa92350ed598 applied changes from 8d953d5714cb202c5fa66fda1b0f31f01a969622
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 18282
diff changeset
423 g_list_free(t_GL_extra_msgs);
fa92350ed598 applied changes from 8d953d5714cb202c5fa66fda1b0f31f01a969622
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 18282
diff changeset
424 g_list_free(t_GL_flags);
fa92350ed598 applied changes from 8d953d5714cb202c5fa66fda1b0f31f01a969622
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 18282
diff changeset
425
11581
5c7f44be5dfe [gaim-migrate @ 13851]
Tim Ringenbach <marv@pidgin.im>
parents: 11456
diff changeset
426 gboolean
34652
65a6bfb86d43 Updated libpurple plugins with the API changes
Ankit Vani <a@nevitus.org>
parents: 34646
diff changeset
427 purple_chat_conversation_has_user(chat, user)
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
428 Purple::ChatConversation chat
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
429 const char * user
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
430
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
431 void purple_chat_conversation_clear_users(chat)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
432 Purple::ChatConversation chat
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
433
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
434 void purple_chat_conversation_set_nick(chat, nick)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
435 Purple::ChatConversation chat
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
436 const char * nick
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
437
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
438 const char *
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
439 purple_chat_conversation_get_nick(chat)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
440 Purple::ChatConversation chat
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
441
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
442 void purple_chat_conversation_leave(chat)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
443 Purple::ChatConversation chat
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
444
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
445 gboolean purple_chat_conversation_has_left(chat)
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
446 Purple::ChatConversation chat
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
447
34670
9bd5bd903dc7 Renamed chat buddies to chat users, and IM conversation typing state to IM typing state.
Ankit Vani <a@nevitus.org>
parents: 34656
diff changeset
448 Purple::ChatUser
34671
ca9b45be7a63 Renamed chat buddy to chat user in a few more places
Ankit Vani <a@nevitus.org>
parents: 34670
diff changeset
449 purple_chat_conversation_find_user(chat, name)
34608
3feba564faed Refactored libpurple/plugins/perl to use GObject-based PurpleConversation API
Ankit Vani <a@nevitus.org>
parents: 33577
diff changeset
450 Purple::ChatConversation chat
11123
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
451 const char *name
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
452
098f5c57f2bb [gaim-migrate @ 13179]
John H. Kelm <johnkelm@gmail.com>
parents: 10856
diff changeset
453 const char *
34670
9bd5bd903dc7 Renamed chat buddies to chat users, and IM conversation typing state to IM typing state.
Ankit Vani <a@nevitus.org>
parents: 34656
diff changeset
454 purple_chat_user_get_name(cb)
9bd5bd903dc7 Renamed chat buddies to chat users, and IM conversation typing state to IM typing state.
Ankit Vani <a@nevitus.org>
parents: 34656
diff changeset
455 Purple::ChatUser cb

mercurial