Thu, 21 Apr 2005 02:46:55 +0000
[gaim-migrate @ 12532]
sf patch #1186987, from Alex Converse
"Mirror the conversation api changes in the perl interface
http://cvs.sourceforge.net/viewcvs.py/gaim/gaim/src/conversation.h?r1=1.60&r2=1.61"
committer: Mark Doliner <markdoliner@pidgin.im>
| 6591 | 1 | #include "module.h" |
| 2 | ||
|
7120
83dba78f8518
[gaim-migrate @ 7687]
Christian Hammond <chipx86@chipx86.com>
parents:
6614
diff
changeset
|
3 | MODULE = Gaim::ConvWindow PACKAGE = Gaim::ConvWindow PREFIX = gaim_conv_window_ |
| 6591 | 4 | PROTOTYPES: ENABLE |
| 5 | ||
| 6 | Gaim::ConvWindow | |
|
7120
83dba78f8518
[gaim-migrate @ 7687]
Christian Hammond <chipx86@chipx86.com>
parents:
6614
diff
changeset
|
7 | gaim_conv_window_new() |
| 6591 | 8 | |
| 9 | void | |
| 10 | DESTROY(win) | |
| 11 | Gaim::ConvWindow win | |
| 12 | CODE: | |
|
7120
83dba78f8518
[gaim-migrate @ 7687]
Christian Hammond <chipx86@chipx86.com>
parents:
6614
diff
changeset
|
13 | gaim_conv_window_destroy(win); |
| 6591 | 14 | |
| 15 | ||
| 16 | void | |
|
7120
83dba78f8518
[gaim-migrate @ 7687]
Christian Hammond <chipx86@chipx86.com>
parents:
6614
diff
changeset
|
17 | gaim_conv_window_show(win) |
| 6591 | 18 | Gaim::ConvWindow win |
| 19 | ||
| 20 | void | |
|
7120
83dba78f8518
[gaim-migrate @ 7687]
Christian Hammond <chipx86@chipx86.com>
parents:
6614
diff
changeset
|
21 | gaim_conv_window_hide(win) |
| 6591 | 22 | Gaim::ConvWindow win |
| 23 | ||
| 24 | void | |
|
7120
83dba78f8518
[gaim-migrate @ 7687]
Christian Hammond <chipx86@chipx86.com>
parents:
6614
diff
changeset
|
25 | gaim_conv_window_raise(win) |
| 6591 | 26 | Gaim::ConvWindow win |
| 27 | ||
| 28 | void | |
|
7120
83dba78f8518
[gaim-migrate @ 7687]
Christian Hammond <chipx86@chipx86.com>
parents:
6614
diff
changeset
|
29 | gaim_conv_window_flash(win) |
|
6614
12817c60464d
[gaim-migrate @ 7138]
Christian Hammond <chipx86@chipx86.com>
parents:
6591
diff
changeset
|
30 | Gaim::ConvWindow win |
| 6591 | 31 | |
| 32 | int | |
|
7120
83dba78f8518
[gaim-migrate @ 7687]
Christian Hammond <chipx86@chipx86.com>
parents:
6614
diff
changeset
|
33 | gaim_conv_window_add_conversation(win, conv) |
| 6591 | 34 | Gaim::ConvWindow win |
| 35 | Gaim::Conversation conv | |
| 36 | ||
| 37 | Gaim::Conversation | |
|
10856
5956b7883cad
[gaim-migrate @ 12532]
Alex Converse <alex.converse@gmail.com>
parents:
7120
diff
changeset
|
38 | gaim_conv_window_remove_conversation(win, conv) |
| 6591 | 39 | Gaim::ConvWindow win |
|
10856
5956b7883cad
[gaim-migrate @ 12532]
Alex Converse <alex.converse@gmail.com>
parents:
7120
diff
changeset
|
40 | Gaim::Conversation conv |
| 6591 | 41 | |
| 42 | size_t | |
|
7120
83dba78f8518
[gaim-migrate @ 7687]
Christian Hammond <chipx86@chipx86.com>
parents:
6614
diff
changeset
|
43 | gaim_conv_window_get_conversation_count(win) |
| 6591 | 44 | Gaim::ConvWindow win |
| 45 | ||
| 46 | void | |
|
10856
5956b7883cad
[gaim-migrate @ 12532]
Alex Converse <alex.converse@gmail.com>
parents:
7120
diff
changeset
|
47 | gaim_conv_window_switch_conversation(win, conv) |
| 6591 | 48 | Gaim::ConvWindow win |
|
10856
5956b7883cad
[gaim-migrate @ 12532]
Alex Converse <alex.converse@gmail.com>
parents:
7120
diff
changeset
|
49 | Gaim::Conversation conv |
| 6591 | 50 | |
| 51 | Gaim::Conversation | |
|
7120
83dba78f8518
[gaim-migrate @ 7687]
Christian Hammond <chipx86@chipx86.com>
parents:
6614
diff
changeset
|
52 | gaim_conv_window_get_active_conversation(win) |
| 6591 | 53 | Gaim::ConvWindow win |
| 54 | ||
| 55 | void | |
| 56 | conversations(win) | |
| 57 | Gaim::ConvWindow win | |
| 58 | PREINIT: | |
| 59 | GList *l; | |
| 60 | CODE: | |
|
7120
83dba78f8518
[gaim-migrate @ 7687]
Christian Hammond <chipx86@chipx86.com>
parents:
6614
diff
changeset
|
61 | for (l = gaim_conv_window_get_conversations(win); l != NULL; l = l->next) |
| 6591 | 62 | { |
| 63 | XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, | |
| 64 | "Gaim::Conversation"))); | |
| 65 | } | |
| 66 | ||
| 67 | ||
| 68 | MODULE = Gaim::ConvWindow PACKAGE = Gaim PREFIX = gaim_ | |
| 69 | PROTOTYPES: ENABLE | |
| 70 | ||
| 71 | void | |
| 72 | conv_windows() | |
| 73 | PREINIT: | |
| 74 | GList *l; | |
| 75 | CODE: | |
| 76 | for (l = gaim_get_windows(); l != NULL; l = l->next) | |
| 77 | XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ConvWindow"))); |