libpurple/whiteboard.h

Mon, 16 Sep 2013 22:53:40 +0530

author
Ankit Vani <a@nevitus.org>
date
Mon, 16 Sep 2013 22:53:40 +0530
branch
soc.2013.gobjectification.plugins
changeset 36752
c726e758c59b
parent 36710
16a60fe59d22
child 36896
3865997e388b
permissions
-rw-r--r--

Refactored finch grouping plugin to use the new plugin API

11475
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
1 /**
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
2 * @file whiteboard.h The PurpleWhiteboard core object
20147
66f05a854eee applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents: 19859
diff changeset
3 */
66f05a854eee applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents: 19859
diff changeset
4 /* purple
11475
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
5 *
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
6 * Purple is the legal property of its developers, whose names are too numerous
11475
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
7 * to list here. Please refer to the COPYRIGHT file distributed with this
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
8 * source distribution.
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
9 *
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
10 * This program is free software; you can redistribute it and/or modify
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
11 * it under the terms of the GNU General Public License as published by
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
12 * the Free Software Foundation; either version 2 of the License, or
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
13 * (at your option) any later version.
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
14 *
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
15 * This program is distributed in the hope that it will be useful,
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
18 * GNU General Public License for more details.
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
19 *
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
20 * You should have received a copy of the GNU General Public License
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
21 * along with this program; if not, write to the Free Software
19859
71d37b57eff2 The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 16743
diff changeset
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
11475
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
23 */
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
24
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
25 #ifndef _PURPLE_WHITEBOARD_H_
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
26 #define _PURPLE_WHITEBOARD_H_
11475
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
27
34936
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
28 #define PURPLE_TYPE_WHITEBOARD (purple_whiteboard_get_type())
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
29 #define PURPLE_WHITEBOARD(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PURPLE_TYPE_WHITEBOARD, PurpleWhiteboard))
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
30 #define PURPLE_WHITEBOARD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PURPLE_TYPE_WHITEBOARD, PurpleWhiteboardClass))
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
31 #define PURPLE_IS_WHITEBOARD(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_WHITEBOARD))
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
32 #define PURPLE_IS_WHITEBOARD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PURPLE_TYPE_WHITEBOARD))
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
33 #define PURPLE_WHITEBOARD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PURPLE_TYPE_WHITEBOARD, PurpleWhiteboardClass))
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
34
32708
e275f5e7b257 Hide struct PurpleWhiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32554
diff changeset
35 /** @copydoc _PurpleWhiteboard */
e275f5e7b257 Hide struct PurpleWhiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32554
diff changeset
36 typedef struct _PurpleWhiteboard PurpleWhiteboard;
34936
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
37 /** @copydoc _PurpleWhiteboardClass */
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
38 typedef struct _PurpleWhiteboardClass PurpleWhiteboardClass;
32708
e275f5e7b257 Hide struct PurpleWhiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32554
diff changeset
39
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
40 /**
36637
9b0109ae118d Renamed some prpl stuff to protocol stuff.
Ankit Vani <a@nevitus.org>
parents: 36545
diff changeset
41 * Whiteboard protocol operations
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
42 */
36637
9b0109ae118d Renamed some prpl stuff to protocol stuff.
Ankit Vani <a@nevitus.org>
parents: 36545
diff changeset
43 typedef struct _PurpleWhiteboardOps PurpleWhiteboardOps;
11475
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
44
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
45 #include "account.h"
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
46
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
47 /**
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
48 * The PurpleWhiteboard UI Operations
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
49 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
50 typedef struct _PurpleWhiteboardUiOps
11475
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
51 {
34939
e093c956c5e5 Added GObject code to whiteboard.c
Ankit Vani <a@nevitus.org>
parents: 34937
diff changeset
52 void (*create)(PurpleWhiteboard *wb); /**< create function */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
53 void (*destroy)(PurpleWhiteboard *wb); /**< destory function */
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
54 void (*set_dimensions)(PurpleWhiteboard *wb, int width, int height); /**< set_dimensions function */
34939
e093c956c5e5 Added GObject code to whiteboard.c
Ankit Vani <a@nevitus.org>
parents: 34937
diff changeset
55 void (*set_brush) (PurpleWhiteboard *wb, int size, int color); /**< set the size and color of the brush */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
56 void (*draw_point)(PurpleWhiteboard *wb, int x, int y,
34939
e093c956c5e5 Added GObject code to whiteboard.c
Ankit Vani <a@nevitus.org>
parents: 34937
diff changeset
57 int color, int size); /**< draw_point function */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
58 void (*draw_line)(PurpleWhiteboard *wb, int x1, int y1,
34939
e093c956c5e5 Added GObject code to whiteboard.c
Ankit Vani <a@nevitus.org>
parents: 34937
diff changeset
59 int x2, int y2,
e093c956c5e5 Added GObject code to whiteboard.c
Ankit Vani <a@nevitus.org>
parents: 34937
diff changeset
60 int color, int size); /**< draw_line function */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
61 void (*clear)(PurpleWhiteboard *wb); /**< clear function */
16743
1ce5ffe12e2a Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents: 15884
diff changeset
62
1ce5ffe12e2a Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents: 15884
diff changeset
63 void (*_purple_reserved1)(void);
1ce5ffe12e2a Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents: 15884
diff changeset
64 void (*_purple_reserved2)(void);
1ce5ffe12e2a Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents: 15884
diff changeset
65 void (*_purple_reserved3)(void);
1ce5ffe12e2a Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents: 15884
diff changeset
66 void (*_purple_reserved4)(void);
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
67 } PurpleWhiteboardUiOps;
11475
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
68
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
69 /**
36637
9b0109ae118d Renamed some prpl stuff to protocol stuff.
Ankit Vani <a@nevitus.org>
parents: 36545
diff changeset
70 * PurpleWhiteboard Protocol Operations
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
71 */
36637
9b0109ae118d Renamed some prpl stuff to protocol stuff.
Ankit Vani <a@nevitus.org>
parents: 36545
diff changeset
72 struct _PurpleWhiteboardOps
11475
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
73 {
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
74 void (*start)(PurpleWhiteboard *wb); /**< start function */
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
75 void (*end)(PurpleWhiteboard *wb); /**< end function */
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
76 void (*get_dimensions)(const PurpleWhiteboard *wb, int *width, int *height); /**< get_dimensions function */
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
77 void (*set_dimensions)(PurpleWhiteboard *wb, int width, int height); /**< set_dimensions function */
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
78 void (*get_brush) (const PurpleWhiteboard *wb, int *size, int *color); /**< get the brush size and color */
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
79 void (*set_brush) (PurpleWhiteboard *wb, int size, int color); /**< set the brush size and color */
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
80 void (*send_draw_list)(PurpleWhiteboard *wb, GList *draw_list); /**< send_draw_list function */
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
81 void (*clear)(PurpleWhiteboard *wb); /**< clear function */
16743
1ce5ffe12e2a Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents: 15884
diff changeset
82
1ce5ffe12e2a Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents: 15884
diff changeset
83 void (*_purple_reserved1)(void);
1ce5ffe12e2a Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents: 15884
diff changeset
84 void (*_purple_reserved2)(void);
1ce5ffe12e2a Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents: 15884
diff changeset
85 void (*_purple_reserved3)(void);
1ce5ffe12e2a Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents: 15884
diff changeset
86 void (*_purple_reserved4)(void);
11475
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
87 };
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
88
34936
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
89 /**
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
90 * A PurpleWhiteboard
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
91 */
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
92 struct _PurpleWhiteboard
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
93 {
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
94 /*< private >*/
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
95 GObject gparent;
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
96
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
97 /** The UI data associated with this whiteboard. This is a convenience
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
98 * field provided to the UIs -- it is not used by the libpurple core.
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
99 */
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
100 gpointer ui_data;
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
101 };
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
102
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
103 /** Base class for all #PurpleWhiteboard's */
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
104 struct _PurpleWhiteboardClass {
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
105 /*< private >*/
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
106 GObjectClass parent_class;
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
107
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
108 void (*_purple_reserved1)(void);
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
109 void (*_purple_reserved2)(void);
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
110 void (*_purple_reserved3)(void);
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
111 void (*_purple_reserved4)(void);
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
112 };
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
113
32787
7072f190d6ad Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32708
diff changeset
114 G_BEGIN_DECLS
11475
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
115
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
116 /******************************************************************************/
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
117 /** @name PurpleWhiteboard API */
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
118 /******************************************************************************/
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
119 /*@{*/
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
120
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
121 /**
34936
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
122 * Returns the GType for the PurpleWhiteboard object.
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
123 */
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
124 GType purple_whiteboard_get_type(void);
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
125
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
126 /**
12400
47c1252e6f84 [gaim-migrate @ 14707]
Richard Laager <rlaager@pidgin.im>
parents: 12022
diff changeset
127 * Sets the UI operations
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
128 *
12400
47c1252e6f84 [gaim-migrate @ 14707]
Richard Laager <rlaager@pidgin.im>
parents: 12022
diff changeset
129 * @param ops The UI operations to set
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
130 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
131 void purple_whiteboard_set_ui_ops(PurpleWhiteboardUiOps *ops);
11475
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
132
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
133 /**
36637
9b0109ae118d Renamed some prpl stuff to protocol stuff.
Ankit Vani <a@nevitus.org>
parents: 36545
diff changeset
134 * Sets the protocol operations for a whiteboard
12400
47c1252e6f84 [gaim-migrate @ 14707]
Richard Laager <rlaager@pidgin.im>
parents: 12022
diff changeset
135 *
36637
9b0109ae118d Renamed some prpl stuff to protocol stuff.
Ankit Vani <a@nevitus.org>
parents: 36545
diff changeset
136 * @param wb The whiteboard for which to set the protocol operations
9b0109ae118d Renamed some prpl stuff to protocol stuff.
Ankit Vani <a@nevitus.org>
parents: 36545
diff changeset
137 * @param ops The protocol operations to set
12400
47c1252e6f84 [gaim-migrate @ 14707]
Richard Laager <rlaager@pidgin.im>
parents: 12022
diff changeset
138 */
36637
9b0109ae118d Renamed some prpl stuff to protocol stuff.
Ankit Vani <a@nevitus.org>
parents: 36545
diff changeset
139 void purple_whiteboard_set_protocol_ops(PurpleWhiteboard *wb, PurpleWhiteboardOps *ops);
12400
47c1252e6f84 [gaim-migrate @ 14707]
Richard Laager <rlaager@pidgin.im>
parents: 12022
diff changeset
140
47c1252e6f84 [gaim-migrate @ 14707]
Richard Laager <rlaager@pidgin.im>
parents: 12022
diff changeset
141 /**
34936
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
142 * Creates a new whiteboard
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
143 *
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
144 * @param account The account.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
145 * @param who Who you're drawing with.
36709
6e915db4db35 Backed out changeset 7b1fefd1e2ee
Ankit Vani <a@nevitus.org>
parents: 36695
diff changeset
146 * @param state The state.
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
147 *
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
148 * @return The new whiteboard
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
149 */
36709
6e915db4db35 Backed out changeset 7b1fefd1e2ee
Ankit Vani <a@nevitus.org>
parents: 36695
diff changeset
150 PurpleWhiteboard *purple_whiteboard_new(PurpleAccount *account, const char *who, int state);
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
151
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
152 /**
32285
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
153 * Returns the whiteboard's account.
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
154 *
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
155 * @param wb The whiteboard.
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
156 *
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
157 * @return The whiteboard's account.
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
158 */
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
159 PurpleAccount *purple_whiteboard_get_account(const PurpleWhiteboard *wb);
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
160
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
161 /**
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
162 * Return who you're drawing with.
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
163 *
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
164 * @param wb The whiteboard
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
165 *
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
166 * @return Who you're drawing with.
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
167 */
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
168 const char *purple_whiteboard_get_who(const PurpleWhiteboard *wb);
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
169
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
170 /**
36709
6e915db4db35 Backed out changeset 7b1fefd1e2ee
Ankit Vani <a@nevitus.org>
parents: 36695
diff changeset
171 * Set the state of the whiteboard.
6e915db4db35 Backed out changeset 7b1fefd1e2ee
Ankit Vani <a@nevitus.org>
parents: 36695
diff changeset
172 *
6e915db4db35 Backed out changeset 7b1fefd1e2ee
Ankit Vani <a@nevitus.org>
parents: 36695
diff changeset
173 * @param wb The whiteboard.
6e915db4db35 Backed out changeset 7b1fefd1e2ee
Ankit Vani <a@nevitus.org>
parents: 36695
diff changeset
174 * @param state The state
6e915db4db35 Backed out changeset 7b1fefd1e2ee
Ankit Vani <a@nevitus.org>
parents: 36695
diff changeset
175 */
6e915db4db35 Backed out changeset 7b1fefd1e2ee
Ankit Vani <a@nevitus.org>
parents: 36695
diff changeset
176 void purple_whiteboard_set_state(PurpleWhiteboard *wb, int state);
6e915db4db35 Backed out changeset 7b1fefd1e2ee
Ankit Vani <a@nevitus.org>
parents: 36695
diff changeset
177
6e915db4db35 Backed out changeset 7b1fefd1e2ee
Ankit Vani <a@nevitus.org>
parents: 36695
diff changeset
178 /**
6e915db4db35 Backed out changeset 7b1fefd1e2ee
Ankit Vani <a@nevitus.org>
parents: 36695
diff changeset
179 * Return the state of the whiteboard.
6e915db4db35 Backed out changeset 7b1fefd1e2ee
Ankit Vani <a@nevitus.org>
parents: 36695
diff changeset
180 *
6e915db4db35 Backed out changeset 7b1fefd1e2ee
Ankit Vani <a@nevitus.org>
parents: 36695
diff changeset
181 * @param wb The whiteboard.
6e915db4db35 Backed out changeset 7b1fefd1e2ee
Ankit Vani <a@nevitus.org>
parents: 36695
diff changeset
182 *
6e915db4db35 Backed out changeset 7b1fefd1e2ee
Ankit Vani <a@nevitus.org>
parents: 36695
diff changeset
183 * @return The state of the whiteboard.
6e915db4db35 Backed out changeset 7b1fefd1e2ee
Ankit Vani <a@nevitus.org>
parents: 36695
diff changeset
184 */
6e915db4db35 Backed out changeset 7b1fefd1e2ee
Ankit Vani <a@nevitus.org>
parents: 36695
diff changeset
185 int purple_whiteboard_get_state(const PurpleWhiteboard *wb);
6e915db4db35 Backed out changeset 7b1fefd1e2ee
Ankit Vani <a@nevitus.org>
parents: 36695
diff changeset
186
6e915db4db35 Backed out changeset 7b1fefd1e2ee
Ankit Vani <a@nevitus.org>
parents: 36695
diff changeset
187 /**
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
188 * Starts a whiteboard
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
189 *
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
190 * @param wb The whiteboard.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
191 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
192 void purple_whiteboard_start(PurpleWhiteboard *wb);
11475
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
193
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
194 /**
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
195 * Finds a whiteboard from an account and user.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
196 *
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
197 * @param account The account.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
198 * @param who The user.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
199 *
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
200 * @return The whiteboard if found, otherwise @c NULL.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
201 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
202 PurpleWhiteboard *purple_whiteboard_get_session(const PurpleAccount *account, const char *who);
11475
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
203
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
204 /**
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
205 * Destorys a drawing list for a whiteboard
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
206 *
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
207 * @param draw_list The drawing list.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
208 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
209 void purple_whiteboard_draw_list_destroy(GList *draw_list);
11475
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
210
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
211 /**
12022
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
212 * Gets the dimension of a whiteboard.
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
213 *
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
214 * @param wb The whiteboard.
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
215 * @param width The width to be set.
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
216 * @param height The height to be set.
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
217 *
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
218 * @return TRUE if the values of width and height were set.
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
219 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
220 gboolean purple_whiteboard_get_dimensions(const PurpleWhiteboard *wb, int *width, int *height);
12022
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
221
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
222 /**
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
223 * Sets the dimensions for a whiteboard.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
224 *
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
225 * @param wb The whiteboard.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
226 * @param width The width.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
227 * @param height The height.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
228 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
229 void purple_whiteboard_set_dimensions(PurpleWhiteboard *wb, int width, int height);
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
230
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
231 /**
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
232 * Draws a point on a whiteboard.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
233 *
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
234 * @param wb The whiteboard.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
235 * @param x The x coordinate.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
236 * @param y The y coordinate.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
237 * @param color The color to use.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
238 * @param size The brush size.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
239 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
240 void purple_whiteboard_draw_point(PurpleWhiteboard *wb, int x, int y, int color, int size);
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
241
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
242 /**
12022
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
243 * Send a list of points to draw to the buddy.
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
244 *
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
245 * @param wb The whiteboard
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
246 * @param list A GList of points
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
247 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
248 void purple_whiteboard_send_draw_list(PurpleWhiteboard *wb, GList *list);
12022
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
249
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
250 /**
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
251 * Draws a line on a whiteboard
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
252 *
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
253 * @param wb The whiteboard.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
254 * @param x1 The top-left x coordinate.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
255 * @param y1 The top-left y coordinate.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
256 * @param x2 The bottom-right x coordinate.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
257 * @param y2 The bottom-right y coordinate.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
258 * @param color The color to use.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
259 * @param size The brush size.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
260 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
261 void purple_whiteboard_draw_line(PurpleWhiteboard *wb, int x1, int y1, int x2, int y2, int color, int size);
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
262
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
263 /**
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
264 * Clears a whiteboard
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
265 *
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
266 * @param wb The whiteboard.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
267 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
268 void purple_whiteboard_clear(PurpleWhiteboard *wb);
11475
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
269
12022
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
270 /**
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
271 * Sends a request to the buddy to clear the whiteboard.
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
272 *
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
273 * @param wb The whiteboard
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
274 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
275 void purple_whiteboard_send_clear(PurpleWhiteboard *wb);
12022
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
276
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
277 /**
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
278 * Sends a request to change the size and color of the brush.
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
279 *
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
280 * @param wb The whiteboard
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
281 * @param size The size of the brush
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
282 * @param color The color of the brush
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
283 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
284 void purple_whiteboard_send_brush(PurpleWhiteboard *wb, int size, int color);
12022
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
285
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
286 /**
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
287 * Gets the size and color of the brush.
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
288 *
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
289 * @param wb The whiteboard
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
290 * @param size The size of the brush
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
291 * @param color The color of the brush
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
292 *
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
293 * @return TRUE if the size and color were set.
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
294 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
295 gboolean purple_whiteboard_get_brush(const PurpleWhiteboard *wb, int *size, int *color);
12022
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
296
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
297 /**
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
298 * Sets the size and color of the brush.
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
299 *
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
300 * @param wb The whiteboard
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
301 * @param size The size of the brush
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
302 * @param color The color of the brush
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
303 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
304 void purple_whiteboard_set_brush(PurpleWhiteboard *wb, int size, int color);
12022
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
305
32282
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
306 /**
32285
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
307 * Return the drawing list.
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
308 *
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
309 * @param wb The whiteboard.
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
310 *
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
311 * @return The drawing list
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
312 */
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
313 GList *purple_whiteboard_get_draw_list(const PurpleWhiteboard *wb);
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
314
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
315 /**
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
316 * Set the drawing list.
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
317 *
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
318 * @param wb The whiteboard
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
319 * @param draw_list The drawing list.
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
320 */
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
321 void purple_whiteboard_set_draw_list(PurpleWhiteboard *wb, GList* draw_list);
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
322
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
323 /**
36710
16a60fe59d22 Backed out changeset 7cf0bf5b9a40
Ankit Vani <a@nevitus.org>
parents: 36709
diff changeset
324 * Sets the protocol data for a whiteboard.
16a60fe59d22 Backed out changeset 7cf0bf5b9a40
Ankit Vani <a@nevitus.org>
parents: 36709
diff changeset
325 *
16a60fe59d22 Backed out changeset 7cf0bf5b9a40
Ankit Vani <a@nevitus.org>
parents: 36709
diff changeset
326 * @param wb The whiteboard.
16a60fe59d22 Backed out changeset 7cf0bf5b9a40
Ankit Vani <a@nevitus.org>
parents: 36709
diff changeset
327 * @param proto_data The protocol data to set for the whiteboard.
16a60fe59d22 Backed out changeset 7cf0bf5b9a40
Ankit Vani <a@nevitus.org>
parents: 36709
diff changeset
328 */
16a60fe59d22 Backed out changeset 7cf0bf5b9a40
Ankit Vani <a@nevitus.org>
parents: 36709
diff changeset
329 void purple_whiteboard_set_protocol_data(PurpleWhiteboard *wb, gpointer proto_data);
16a60fe59d22 Backed out changeset 7cf0bf5b9a40
Ankit Vani <a@nevitus.org>
parents: 36709
diff changeset
330
16a60fe59d22 Backed out changeset 7cf0bf5b9a40
Ankit Vani <a@nevitus.org>
parents: 36709
diff changeset
331 /**
16a60fe59d22 Backed out changeset 7cf0bf5b9a40
Ankit Vani <a@nevitus.org>
parents: 36709
diff changeset
332 * Gets the protocol data for a whiteboard.
16a60fe59d22 Backed out changeset 7cf0bf5b9a40
Ankit Vani <a@nevitus.org>
parents: 36709
diff changeset
333 *
16a60fe59d22 Backed out changeset 7cf0bf5b9a40
Ankit Vani <a@nevitus.org>
parents: 36709
diff changeset
334 * @param wb The whiteboard.
16a60fe59d22 Backed out changeset 7cf0bf5b9a40
Ankit Vani <a@nevitus.org>
parents: 36709
diff changeset
335 *
16a60fe59d22 Backed out changeset 7cf0bf5b9a40
Ankit Vani <a@nevitus.org>
parents: 36709
diff changeset
336 * @return The protocol data for the whiteboard.
16a60fe59d22 Backed out changeset 7cf0bf5b9a40
Ankit Vani <a@nevitus.org>
parents: 36709
diff changeset
337 */
16a60fe59d22 Backed out changeset 7cf0bf5b9a40
Ankit Vani <a@nevitus.org>
parents: 36709
diff changeset
338 gpointer purple_whiteboard_get_protocol_data(const PurpleWhiteboard *wb);
16a60fe59d22 Backed out changeset 7cf0bf5b9a40
Ankit Vani <a@nevitus.org>
parents: 36709
diff changeset
339
16a60fe59d22 Backed out changeset 7cf0bf5b9a40
Ankit Vani <a@nevitus.org>
parents: 36709
diff changeset
340 /**
32282
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
341 * Set the UI data associated with this whiteboard.
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
342 *
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
343 * @param wb The whiteboard.
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
344 * @param ui_data A pointer to associate with this whiteboard.
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
345 */
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
346 void purple_whiteboard_set_ui_data(PurpleWhiteboard *wb, gpointer ui_data);
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
347
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
348 /**
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
349 * Get the UI data associated with this whiteboard.
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
350 *
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
351 * @param wb The whiteboard..
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
352 *
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
353 * @return The UI data associated with this whiteboard. This is a
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
354 * convenience field provided to the UIs--it is not
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
355 * used by the libpurple core.
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
356 */
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
357 gpointer purple_whiteboard_get_ui_data(const PurpleWhiteboard *wb);
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
358
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
359 /*@}*/
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
360
32787
7072f190d6ad Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32708
diff changeset
361 G_END_DECLS
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
362
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
363 #endif /* _PURPLE_WHITEBOARD_H_ */

mercurial