~ubuntu-branches/ubuntu/precise/gwibber/precise-proposed

« back to all changes in this revision

Viewing changes to libgwibber/gwibber.h

  • Committer: Bazaar Package Importer
  • Author(s): Ken VanDine
  • Date: 2011-07-15 17:14:14 UTC
  • mto: This revision was merged to the branch mainline in revision 80.
  • Revision ID: james.westby@ubuntu.com-20110715171414-80ca971vzd56gtmh
Tags: upstream-3.1.2
ImportĀ upstreamĀ versionĀ 3.1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* gwibber.h generated by valac 0.12.0, the Vala compiler, do not modify */
 
2
 
 
3
 
 
4
#ifndef __GWIBBER_H__
 
5
#define __GWIBBER_H__
 
6
 
 
7
#include <glib.h>
 
8
#include <glib-object.h>
 
9
#include <stdlib.h>
 
10
#include <string.h>
 
11
#include <dee.h>
 
12
 
 
13
G_BEGIN_DECLS
 
14
 
 
15
 
 
16
#define GWIBBER_TYPE_ACCOUNT (gwibber_account_get_type ())
 
17
#define GWIBBER_ACCOUNT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GWIBBER_TYPE_ACCOUNT, GwibberAccount))
 
18
#define GWIBBER_ACCOUNT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GWIBBER_TYPE_ACCOUNT, GwibberAccountClass))
 
19
#define GWIBBER_IS_ACCOUNT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GWIBBER_TYPE_ACCOUNT))
 
20
#define GWIBBER_IS_ACCOUNT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GWIBBER_TYPE_ACCOUNT))
 
21
#define GWIBBER_ACCOUNT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GWIBBER_TYPE_ACCOUNT, GwibberAccountClass))
 
22
 
 
23
typedef struct _GwibberAccount GwibberAccount;
 
24
typedef struct _GwibberAccountClass GwibberAccountClass;
 
25
typedef struct _GwibberAccountPrivate GwibberAccountPrivate;
 
26
 
 
27
#define GWIBBER_TYPE_ACCOUNTS (gwibber_accounts_get_type ())
 
28
#define GWIBBER_ACCOUNTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GWIBBER_TYPE_ACCOUNTS, GwibberAccounts))
 
29
#define GWIBBER_ACCOUNTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GWIBBER_TYPE_ACCOUNTS, GwibberAccountsClass))
 
30
#define GWIBBER_IS_ACCOUNTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GWIBBER_TYPE_ACCOUNTS))
 
31
#define GWIBBER_IS_ACCOUNTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GWIBBER_TYPE_ACCOUNTS))
 
32
#define GWIBBER_ACCOUNTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GWIBBER_TYPE_ACCOUNTS, GwibberAccountsClass))
 
33
 
 
34
typedef struct _GwibberAccounts GwibberAccounts;
 
35
typedef struct _GwibberAccountsClass GwibberAccountsClass;
 
36
typedef struct _GwibberAccountsPrivate GwibberAccountsPrivate;
 
37
 
 
38
#define GWIBBER_TYPE_CONNECTION (gwibber_connection_get_type ())
 
39
#define GWIBBER_CONNECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GWIBBER_TYPE_CONNECTION, GwibberConnection))
 
40
#define GWIBBER_CONNECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GWIBBER_TYPE_CONNECTION, GwibberConnectionClass))
 
41
#define GWIBBER_IS_CONNECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GWIBBER_TYPE_CONNECTION))
 
42
#define GWIBBER_IS_CONNECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GWIBBER_TYPE_CONNECTION))
 
43
#define GWIBBER_CONNECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GWIBBER_TYPE_CONNECTION, GwibberConnectionClass))
 
44
 
 
45
typedef struct _GwibberConnection GwibberConnection;
 
46
typedef struct _GwibberConnectionClass GwibberConnectionClass;
 
47
typedef struct _GwibberConnectionPrivate GwibberConnectionPrivate;
 
48
 
 
49
#define GWIBBER_TYPE_SERVICE (gwibber_service_get_type ())
 
50
#define GWIBBER_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GWIBBER_TYPE_SERVICE, GwibberService))
 
51
#define GWIBBER_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GWIBBER_TYPE_SERVICE, GwibberServiceClass))
 
52
#define GWIBBER_IS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GWIBBER_TYPE_SERVICE))
 
53
#define GWIBBER_IS_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GWIBBER_TYPE_SERVICE))
 
54
#define GWIBBER_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GWIBBER_TYPE_SERVICE, GwibberServiceClass))
 
55
 
 
56
typedef struct _GwibberService GwibberService;
 
57
typedef struct _GwibberServiceClass GwibberServiceClass;
 
58
typedef struct _GwibberServicePrivate GwibberServicePrivate;
 
59
 
 
60
#define GWIBBER_TYPE_STREAMS (gwibber_streams_get_type ())
 
61
#define GWIBBER_STREAMS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GWIBBER_TYPE_STREAMS, GwibberStreams))
 
62
#define GWIBBER_STREAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GWIBBER_TYPE_STREAMS, GwibberStreamsClass))
 
63
#define GWIBBER_IS_STREAMS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GWIBBER_TYPE_STREAMS))
 
64
#define GWIBBER_IS_STREAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GWIBBER_TYPE_STREAMS))
 
65
#define GWIBBER_STREAMS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GWIBBER_TYPE_STREAMS, GwibberStreamsClass))
 
66
 
 
67
typedef struct _GwibberStreams GwibberStreams;
 
68
typedef struct _GwibberStreamsClass GwibberStreamsClass;
 
69
typedef struct _GwibberStreamsPrivate GwibberStreamsPrivate;
 
70
 
 
71
#define GWIBBER_TYPE_MESSAGES (gwibber_messages_get_type ())
 
72
#define GWIBBER_MESSAGES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GWIBBER_TYPE_MESSAGES, GwibberMessages))
 
73
#define GWIBBER_MESSAGES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GWIBBER_TYPE_MESSAGES, GwibberMessagesClass))
 
74
#define GWIBBER_IS_MESSAGES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GWIBBER_TYPE_MESSAGES))
 
75
#define GWIBBER_IS_MESSAGES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GWIBBER_TYPE_MESSAGES))
 
76
#define GWIBBER_MESSAGES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GWIBBER_TYPE_MESSAGES, GwibberMessagesClass))
 
77
 
 
78
typedef struct _GwibberMessages GwibberMessages;
 
79
typedef struct _GwibberMessagesClass GwibberMessagesClass;
 
80
typedef struct _GwibberMessagesPrivate GwibberMessagesPrivate;
 
81
 
 
82
#define GWIBBER_TYPE_URL_SHORTEN (gwibber_url_shorten_get_type ())
 
83
#define GWIBBER_URL_SHORTEN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GWIBBER_TYPE_URL_SHORTEN, GwibberURLShorten))
 
84
#define GWIBBER_URL_SHORTEN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GWIBBER_TYPE_URL_SHORTEN, GwibberURLShortenClass))
 
85
#define GWIBBER_IS_URL_SHORTEN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GWIBBER_TYPE_URL_SHORTEN))
 
86
#define GWIBBER_IS_URL_SHORTEN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GWIBBER_TYPE_URL_SHORTEN))
 
87
#define GWIBBER_URL_SHORTEN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GWIBBER_TYPE_URL_SHORTEN, GwibberURLShortenClass))
 
88
 
 
89
typedef struct _GwibberURLShorten GwibberURLShorten;
 
90
typedef struct _GwibberURLShortenClass GwibberURLShortenClass;
 
91
typedef struct _GwibberURLShortenPrivate GwibberURLShortenPrivate;
 
92
 
 
93
#define GWIBBER_TYPE_STREAM_MODEL_COLUMN (gwibber_stream_model_column_get_type ())
 
94
 
 
95
#define GWIBBER_TYPE_UTILS (gwibber_utils_get_type ())
 
96
#define GWIBBER_UTILS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GWIBBER_TYPE_UTILS, GwibberUtils))
 
97
#define GWIBBER_UTILS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GWIBBER_TYPE_UTILS, GwibberUtilsClass))
 
98
#define GWIBBER_IS_UTILS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GWIBBER_TYPE_UTILS))
 
99
#define GWIBBER_IS_UTILS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GWIBBER_TYPE_UTILS))
 
100
#define GWIBBER_UTILS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GWIBBER_TYPE_UTILS, GwibberUtilsClass))
 
101
 
 
102
typedef struct _GwibberUtils GwibberUtils;
 
103
typedef struct _GwibberUtilsClass GwibberUtilsClass;
 
104
typedef struct _GwibberUtilsPrivate GwibberUtilsPrivate;
 
105
 
 
106
struct _GwibberAccount {
 
107
        GObject parent_instance;
 
108
        GwibberAccountPrivate * priv;
 
109
};
 
110
 
 
111
struct _GwibberAccountClass {
 
112
        GObjectClass parent_class;
 
113
};
 
114
 
 
115
struct _GwibberAccounts {
 
116
        GObject parent_instance;
 
117
        GwibberAccountsPrivate * priv;
 
118
};
 
119
 
 
120
struct _GwibberAccountsClass {
 
121
        GObjectClass parent_class;
 
122
};
 
123
 
 
124
struct _GwibberConnection {
 
125
        GObject parent_instance;
 
126
        GwibberConnectionPrivate * priv;
 
127
};
 
128
 
 
129
struct _GwibberConnectionClass {
 
130
        GObjectClass parent_class;
 
131
};
 
132
 
 
133
struct _GwibberService {
 
134
        GObject parent_instance;
 
135
        GwibberServicePrivate * priv;
 
136
};
 
137
 
 
138
struct _GwibberServiceClass {
 
139
        GObjectClass parent_class;
 
140
};
 
141
 
 
142
struct _GwibberStreams {
 
143
        GObject parent_instance;
 
144
        GwibberStreamsPrivate * priv;
 
145
};
 
146
 
 
147
struct _GwibberStreamsClass {
 
148
        GObjectClass parent_class;
 
149
};
 
150
 
 
151
struct _GwibberMessages {
 
152
        GObject parent_instance;
 
153
        GwibberMessagesPrivate * priv;
 
154
};
 
155
 
 
156
struct _GwibberMessagesClass {
 
157
        GObjectClass parent_class;
 
158
};
 
159
 
 
160
struct _GwibberURLShorten {
 
161
        GObject parent_instance;
 
162
        GwibberURLShortenPrivate * priv;
 
163
};
 
164
 
 
165
struct _GwibberURLShortenClass {
 
166
        GObjectClass parent_class;
 
167
};
 
168
 
 
169
typedef enum  {
 
170
        GWIBBER_STREAM_MODEL_COLUMN_ACCOUNTS,
 
171
        GWIBBER_STREAM_MODEL_COLUMN_STREAM,
 
172
        GWIBBER_STREAM_MODEL_COLUMN_SENDER,
 
173
        GWIBBER_STREAM_MODEL_COLUMN_SENDER_NICK,
 
174
        GWIBBER_STREAM_MODEL_COLUMN_FROM_ME,
 
175
        GWIBBER_STREAM_MODEL_COLUMN_TIMESTAMP,
 
176
        GWIBBER_STREAM_MODEL_COLUMN_MESSAGE,
 
177
        GWIBBER_STREAM_MODEL_COLUMN_HTML,
 
178
        GWIBBER_STREAM_MODEL_COLUMN_ICON_URI,
 
179
        GWIBBER_STREAM_MODEL_COLUMN_URL,
 
180
        GWIBBER_STREAM_MODEL_COLUMN_SOURCE,
 
181
        GWIBBER_STREAM_MODEL_COLUMN_TIMESTRING,
 
182
        GWIBBER_STREAM_MODEL_COLUMN_REPLY_NICK,
 
183
        GWIBBER_STREAM_MODEL_COLUMN_REPLY_URL,
 
184
        GWIBBER_STREAM_MODEL_COLUMN_LIKES,
 
185
        GWIBBER_STREAM_MODEL_COLUMN_RETWEET_NICK,
 
186
        GWIBBER_STREAM_MODEL_COLUMN_RETWEET_NAME,
 
187
        GWIBBER_STREAM_MODEL_COLUMN_RETWEET_ID
 
188
} GwibberStreamModelColumn;
 
189
 
 
190
struct _GwibberUtils {
 
191
        GObject parent_instance;
 
192
        GwibberUtilsPrivate * priv;
 
193
};
 
194
 
 
195
struct _GwibberUtilsClass {
 
196
        GObjectClass parent_class;
 
197
};
 
198
 
 
199
 
 
200
GType gwibber_account_get_type (void) G_GNUC_CONST;
 
201
GwibberAccount* gwibber_account_new (const gchar* id);
 
202
GwibberAccount* gwibber_account_construct (GType object_type, const gchar* id);
 
203
const gchar* gwibber_account_get_id (GwibberAccount* self);
 
204
void gwibber_account_set_id (GwibberAccount* self, const gchar* value);
 
205
const gchar* gwibber_account_get_username (GwibberAccount* self);
 
206
void gwibber_account_set_username (GwibberAccount* self, const gchar* value);
 
207
const gchar* gwibber_account_get_name (GwibberAccount* self);
 
208
void gwibber_account_set_name (GwibberAccount* self, const gchar* value);
 
209
const gchar* gwibber_account_get_service (GwibberAccount* self);
 
210
void gwibber_account_set_service (GwibberAccount* self, const gchar* value);
 
211
const gchar* gwibber_account_get_color (GwibberAccount* self);
 
212
void gwibber_account_set_color (GwibberAccount* self, const gchar* value);
 
213
const gchar* gwibber_account_get_site_display_name (GwibberAccount* self);
 
214
void gwibber_account_set_site_display_name (GwibberAccount* self, const gchar* value);
 
215
const gchar* gwibber_account_get_session_key (GwibberAccount* self);
 
216
void gwibber_account_set_session_key (GwibberAccount* self, const gchar* value);
 
217
const gchar* gwibber_account_get_secret_key (GwibberAccount* self);
 
218
void gwibber_account_set_secret_key (GwibberAccount* self, const gchar* value);
 
219
const gchar* gwibber_account_get_access_token (GwibberAccount* self);
 
220
void gwibber_account_set_access_token (GwibberAccount* self, const gchar* value);
 
221
const gchar* gwibber_account_get_password (GwibberAccount* self);
 
222
void gwibber_account_set_password (GwibberAccount* self, const gchar* value);
 
223
const gchar* gwibber_account_get_url_prefix (GwibberAccount* self);
 
224
void gwibber_account_set_url_prefix (GwibberAccount* self, const gchar* value);
 
225
const gchar* gwibber_account_get_domain (GwibberAccount* self);
 
226
void gwibber_account_set_domain (GwibberAccount* self, const gchar* value);
 
227
const gchar* gwibber_account_get_secret_token (GwibberAccount* self);
 
228
void gwibber_account_set_secret_token (GwibberAccount* self, const gchar* value);
 
229
const gchar* gwibber_account_get_user_id (GwibberAccount* self);
 
230
void gwibber_account_set_user_id (GwibberAccount* self, const gchar* value);
 
231
const gchar* gwibber_account_get_send_enabled (GwibberAccount* self);
 
232
void gwibber_account_set_send_enabled (GwibberAccount* self, const gchar* value);
 
233
const gchar* gwibber_account_get_receive_enabled (GwibberAccount* self);
 
234
void gwibber_account_set_receive_enabled (GwibberAccount* self, const gchar* value);
 
235
GType gwibber_accounts_get_type (void) G_GNUC_CONST;
 
236
GwibberAccounts* gwibber_accounts_new (void);
 
237
GwibberAccounts* gwibber_accounts_construct (GType object_type);
 
238
GList* gwibber_accounts_list (GwibberAccounts* self);
 
239
gchar* gwibber_accounts_lookup_str_by_id (GwibberAccounts* self, const gchar* id);
 
240
GwibberAccount* gwibber_accounts_lookup_by_id (GwibberAccounts* self, const gchar* id);
 
241
void gwibber_accounts_send_enabled (GwibberAccounts* self, const gchar* id);
 
242
void gwibber_accounts_updated (GwibberAccounts* self, const gchar* account_in);
 
243
void gwibber_accounts_accounts_available (GwibberAccounts* self, gboolean is_up);
 
244
GType gwibber_connection_get_type (void) G_GNUC_CONST;
 
245
GwibberConnection* gwibber_connection_new (void);
 
246
GwibberConnection* gwibber_connection_construct (GType object_type);
 
247
gboolean gwibber_connection_is_connected (GwibberConnection* self);
 
248
void gwibber_connection_conn_available (GwibberConnection* self, gboolean is_up);
 
249
GType gwibber_service_get_type (void) G_GNUC_CONST;
 
250
void gwibber_service_service_available (GwibberService* self, gboolean is_up);
 
251
void gwibber_service_on_loading_started (GwibberService* self);
 
252
void gwibber_service_on_loading_complete (GwibberService* self);
 
253
void gwibber_service_on_error (GwibberService* self, const gchar* error_str);
 
254
void gwibber_service_start (GwibberService* self);
 
255
void gwibber_service_quit (GwibberService* self);
 
256
void gwibber_service_refresh (GwibberService* self);
 
257
gboolean gwibber_service_like (GwibberService* self, const gchar* mid, const gchar* account);
 
258
gboolean gwibber_service_retweet (GwibberService* self, const gchar* mid, const gchar* account);
 
259
gboolean gwibber_service_send_message (GwibberService* self, const gchar* message, const gchar* mid, const gchar* action, gchar** accounts, int accounts_length1);
 
260
GHashTable* gwibber_service_services (GwibberService* self);
 
261
GHashTable* gwibber_service_features (GwibberService* self);
 
262
gchar* gwibber_service_version (GwibberService* self);
 
263
gchar* gwibber_service_avatar_path (GwibberService* self, const gchar* url, GError** error);
 
264
GwibberService* gwibber_service_new (void);
 
265
GwibberService* gwibber_service_construct (GType object_type);
 
266
GType gwibber_streams_get_type (void) G_GNUC_CONST;
 
267
GwibberStreams* gwibber_streams_new (void);
 
268
GwibberStreams* gwibber_streams_construct (GType object_type);
 
269
gchar* gwibber_streams_messages (GwibberStreams* self, const gchar* stream, const gchar* account, gint time);
 
270
DeeModel* gwibber_streams_get_stream_filter_model (GwibberStreams* self, DeeModel* model, const gchar* stream);
 
271
DeeModel* gwibber_streams_get_stream_model (GwibberStreams* self);
 
272
void gwibber_streams_streams_available (GwibberStreams* self, gboolean is_up);
 
273
GType gwibber_messages_get_type (void) G_GNUC_CONST;
 
274
GwibberMessages* gwibber_messages_new (void);
 
275
GwibberMessages* gwibber_messages_construct (GType object_type);
 
276
gchar* gwibber_messages_get_message (GwibberMessages* self, const gchar* mid);
 
277
void gwibber_messages_on_new_message (GwibberMessages* self, const gchar* change, const gchar* data);
 
278
GType gwibber_url_shorten_get_type (void) G_GNUC_CONST;
 
279
gchar* gwibber_url_shorten_shorten (GwibberURLShorten* self, const gchar* url);
 
280
void gwibber_url_shorten_url_available (GwibberURLShorten* self, gboolean is_up);
 
281
GwibberURLShorten* gwibber_url_shorten_new (void);
 
282
GwibberURLShorten* gwibber_url_shorten_construct (GType object_type);
 
283
GType gwibber_stream_model_column_get_type (void) G_GNUC_CONST;
 
284
GType gwibber_utils_get_type (void) G_GNUC_CONST;
 
285
gchar* gwibber_utils_generate_time_string (GwibberUtils* self, guint t);
 
286
gchar* gwibber_utils_avatar_path (GwibberUtils* self, const gchar* url);
 
287
GwibberUtils* gwibber_utils_new (void);
 
288
GwibberUtils* gwibber_utils_construct (GType object_type);
 
289
 
 
290
 
 
291
G_END_DECLS
 
292
 
 
293
#endif