~stemp/+junk/statux

« back to all changes in this revision

Viewing changes to src/vapi/config.vapi

  • Committer: Stéphane Marguet (Stemp)
  • Date: 2011-01-31 11:26:58 UTC
  • Revision ID: smarguet@gmail.com-20110131112658-5wma12qm3pepatwb
First round of changing pino to statux to avoid confusion with pino3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* config.vapi
 
2
 *
 
3
 * Copyright (C) 2009-2010  troorl
 
4
 *
 
5
 * This program is free software: you can redistribute it and/or modify
 
6
 * it under the terms of the GNU Lesser General Public License as published by
 
7
 * the Free Software Foundation, either version 3 of the License, or
 
8
 * (at your option) any later version.
 
9
 *
 
10
 * This program is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU Lesser General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU Lesser General Public License
 
16
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
17
 *
 
18
 * Author:
 
19
 *      troorl <troorl@gmail.com>
 
20
 */
 
21
 
 
22
[CCode (cprefix = "", lower_case_cprefix = "", cheader_filename = "config.h")]
 
23
namespace Config
 
24
{
 
25
        public const string GETTEXT_PACKAGE;
 
26
        public const string APPNAME;
 
27
        public const string APP_PATH;
 
28
        public const string LOCALE_DIR;
 
29
        public const string APP_VERSION;
 
30
        public const string DESKTOP_FILE_PATH;
 
31
        public const string LOGO_PATH;
 
32
        public const string LOGO_FRESH_PATH;
 
33
        public const string MENTIONS_PATH;
 
34
        public const string MENTIONS_FRESH_PATH;
 
35
        public const string TIMELINE_PATH;
 
36
        public const string TIMELINE_FRESH_PATH;
 
37
        public const string DIRECT_PATH;
 
38
        public const string DIRECT_FRESH_PATH;
 
39
        public const string FAVORITE_PATH;
 
40
        public const string FAVORITE_NO_PATH;
 
41
        //public const string FAVORITE_MENU_PATH;
 
42
        public const string PROGRESS_PATH;
 
43
        public const string DIRECT_REPLY_PATH;
 
44
        public const string REPLY_PATH;
 
45
        public const string RETWEET_PATH;
 
46
        public const string DELETE_PATH;
 
47
        public const string USERPIC_PATH;
 
48
        public const string TEMPLATES_PATH;
 
49
        public const string AUTHORS;
 
50
        
 
51
        public const string CONS_KEY;
 
52
        public const string CONS_SEC;
 
53
}
 
54
 
 
55
namespace Gtk
 
56
{
 
57
  [CCode (cprefix = "GTKSPELL_ERROR_", cheader_filename = "gtkspell/gtkspell.h")]
 
58
  public errordomain SpeelError
 
59
  {
 
60
    ERROR_BACKEND
 
61
  }
 
62
 
 
63
  [Compact]
 
64
  [CCode (cheader_filename = "gtkspell/gtkspell.h", free_function = "")]
 
65
  public class Spell
 
66
  {
 
67
    [CCode (cname = "gtkspell_new_attach")]
 
68
    public Spell.attach (TextView view, string? lang) throws GLib.Error;
 
69
    [CCode (cname = "gtkspell_get_from_text_view")]
 
70
    public static Spell get_from_text_view (TextView view);
 
71
    [CCode (cname = "gtkspell_detach")]
 
72
    public void detach ();
 
73
    [CCode (cname = "gtkspell_set_language")]
 
74
    public bool set_language (string lang) throws GLib.Error;
 
75
    [CCode (cname = "gtkspell_recheck_all")]
 
76
    public void recheck_all ();
 
77
  }
 
78
}
 
79
 
 
80
[CCode (cheader_filename = "time_parser.h")]
 
81
namespace TimeParser {
 
82
        [CCode (cname = "time_to_diff")]
 
83
        public int time_to_diff(string datetime);
 
84
}
 
85
 
 
86
/* indicate.vapi generated by vapigen, do not modify. */
 
87
 
 
88
[CCode (cprefix = "Indicate", lower_case_cprefix = "indicate_")]
 
89
namespace Indicate {
 
90
        [CCode (cheader_filename = "libindicate-gtk/indicator.h")]
 
91
        public class Indicator : GLib.Object {
 
92
                [CCode (has_construct_function = false)]
 
93
                public Indicator ();
 
94
                public bool get_displayed ();
 
95
                public uint get_id ();
 
96
                public virtual unowned string get_property (string key);
 
97
                public void hide ();
 
98
                [NoWrapper]
 
99
                public virtual void indicate_indicator_reserved1 ();
 
100
                [NoWrapper]
 
101
                public virtual void indicate_indicator_reserved2 ();
 
102
                [NoWrapper]
 
103
                public virtual void indicate_indicator_reserved3 ();
 
104
                [NoWrapper]
 
105
                public virtual void indicate_indicator_reserved4 ();
 
106
                public bool is_visible ();
 
107
                public virtual unowned GLib.PtrArray list_properties ();
 
108
                public void set_displayed (bool displayed);
 
109
                public virtual void set_property (string key, string data);
 
110
                public void set_property_bool (string key, bool value);
 
111
                public void set_property_icon(string key, Gdk.Pixbuf data); /* indicate-gtk method */
 
112
                public void set_property_int (string key, int value);
 
113
                public void set_property_time (string key, GLib.TimeVal time);
 
114
                public void set_server (Indicate.Server server);
 
115
                public void show ();
 
116
                public signal void user_display ();
 
117
                [CCode (has_construct_function = false)]
 
118
                public Indicator.with_server (Indicate.Server server);
 
119
                [CCode (name = "displayed")]
 
120
                public virtual signal void sig_displayed (bool displayed);
 
121
                [CCode (name = "hide")]
 
122
                public virtual signal void sig_hide ();
 
123
                [CCode (name = "modified")]
 
124
                public virtual signal void sig_modified (string property);
 
125
                [CCode (name = "show")]
 
126
                public virtual signal void sig_show ();
 
127
                [CCode (name = "user_display")]
 
128
                public virtual signal void sig_user_display ();
 
129
        }
 
130
        [CCode (cheader_filename = "libindicate-gtk/listener.h")]
 
131
        public class Listener : GLib.Object {
 
132
                [CCode (has_construct_function = false)]
 
133
                public Listener ();
 
134
                public void display (Indicate.ListenerServer server, Indicate.ListenerIndicator indicator);
 
135
                public void displayed (Indicate.ListenerServer server, Indicate.ListenerIndicator indicator, bool displayed);
 
136
                public void get_property (Indicate.ListenerServer server, Indicate.ListenerIndicator indicator, string property, Indicate.indicate_listener_get_property_cb callback, void* data);
 
137
                public void get_property_bool (Indicate.ListenerServer server, Indicate.ListenerIndicator indicator, string property, Indicate.indicate_listener_get_property_bool_cb callback, void* data);
 
138
                public void get_property_int (Indicate.ListenerServer server, Indicate.ListenerIndicator indicator, string property, Indicate.indicate_listener_get_property_int_cb callback, void* data);
 
139
                public void get_property_time (Indicate.ListenerServer server, Indicate.ListenerIndicator indicator, string property, Indicate.indicate_listener_get_property_time_cb callback, void* data);
 
140
                [NoWrapper]
 
141
                public virtual void indicate_listener_reserved1 ();
 
142
                [NoWrapper]
 
143
                public virtual void indicate_listener_reserved2 ();
 
144
                [NoWrapper]
 
145
                public virtual void indicate_listener_reserved3 ();
 
146
                [NoWrapper]
 
147
                public virtual void indicate_listener_reserved4 ();
 
148
                public static unowned Indicate.Listener ref_default ();
 
149
                public void set_default_max_indicators (int max);
 
150
                public void set_server_max_indicators (Indicate.ListenerServer server, int max);
 
151
                public virtual signal void indicator_added (Indicate.ListenerServer indicator, Indicate.ListenerIndicator p1);
 
152
                public virtual signal void indicator_modified (Indicate.ListenerServer indicator, Indicate.ListenerIndicator property, string p2);
 
153
                public virtual signal void indicator_removed (Indicate.ListenerServer indicator, Indicate.ListenerIndicator p1);
 
154
                public virtual signal void server_added (Indicate.ListenerServer type, string p1);
 
155
                public virtual signal void server_count_changed (Indicate.ListenerServer count, uint p1);
 
156
                public virtual signal void server_removed (Indicate.ListenerServer type, string p1);
 
157
        }
 
158
        [Compact]
 
159
        [CCode (cheader_filename = "libindicate-gtk/listener.h")]
 
160
        public class ListenerIndicator {
 
161
                public static GLib.Type get_gtype ();
 
162
                public uint get_id ();
 
163
        }
 
164
        [Compact]
 
165
        [CCode (cheader_filename = "libindicate-gtk/listener.h")]
 
166
        public class ListenerServer {
 
167
                public static bool check_interest (Indicate.Listener listener, Indicate.ListenerServer server, Indicate.Interests interest);
 
168
                public static void get_count (Indicate.Listener listener, Indicate.ListenerServer server, Indicate.indicate_listener_get_server_uint_property_cb callback, void* data);
 
169
                public unowned string get_dbusname ();
 
170
                public static void get_desktop (Indicate.Listener listener, Indicate.ListenerServer server, Indicate.indicate_listener_get_server_property_cb callback, void* data);
 
171
                public static GLib.Type get_gtype ();
 
172
                public static void remove_interest (Indicate.Listener listener, Indicate.ListenerServer server, Indicate.Interests interest);
 
173
                public static void show_interest (Indicate.Listener listener, Indicate.ListenerServer server, Indicate.Interests interest);
 
174
        }
 
175
        [CCode (cheader_filename = "libindicate/server.h")]
 
176
        public class Server : GLib.Object {
 
177
                public void add_indicator (Indicate.Indicator indicator);
 
178
                public virtual bool check_interest (Indicate.Interests interest);
 
179
                [NoWrapper]
 
180
                public virtual bool get_indicator_count (out uint count) throws GLib.Error;
 
181
                [NoWrapper]
 
182
                public virtual bool get_indicator_list (out unowned GLib.Array indicators) throws GLib.Error;
 
183
                [NoWrapper]
 
184
                public virtual bool get_indicator_properties (uint id, string properties) throws GLib.Error;
 
185
                [NoWrapper]
 
186
                public virtual bool get_indicator_property (uint id, string property, string value) throws GLib.Error;
 
187
                [NoWrapper]
 
188
                public virtual bool get_indicator_property_group (uint id, GLib.PtrArray properties, string value) throws GLib.Error;
 
189
                public int get_max_indicators ();
 
190
                public virtual uint get_next_id ();
 
191
                public void hide ();
 
192
                [NoWrapper]
 
193
                public virtual void indicate_server_reserved1 ();
 
194
                [NoWrapper]
 
195
                public virtual void indicate_server_reserved2 ();
 
196
                [NoWrapper]
 
197
                public virtual void indicate_server_reserved3 ();
 
198
                [NoWrapper]
 
199
                public virtual void indicate_server_reserved4 ();
 
200
                [NoWrapper]
 
201
                public virtual void indicator_added (uint id);
 
202
                [NoWrapper]
 
203
                public virtual bool indicator_displayed (string sender, uint id, bool displayed) throws GLib.Error;
 
204
                [NoWrapper]
 
205
                public virtual void indicator_removed (uint id);
 
206
                [NoWrapper]
 
207
                public virtual int max_indicators_get ();
 
208
                [NoWrapper]
 
209
                public virtual bool max_indicators_set (string sender, int max);
 
210
                public static unowned Indicate.Server ref_default ();
 
211
                public void remove_indicator (Indicate.Indicator indicator);
 
212
                [NoWrapper]
 
213
                public virtual bool remove_interest (string sender, Indicate.Interests interest);
 
214
                public void set_count (uint count);
 
215
                public static void set_dbus_object (string obj);
 
216
                public void set_default ();
 
217
                public void set_desktop_file (string path);
 
218
                public void set_type (string type);
 
219
                public void show ();
 
220
                [NoWrapper]
 
221
                public virtual bool show_indicator_to_user (uint id) throws GLib.Error;
 
222
                [NoWrapper]
 
223
                public virtual bool show_interest (string sender, Indicate.Interests interest);
 
224
                [NoAccessorMethod]
 
225
                public uint count { get; set; }
 
226
                [NoAccessorMethod]
 
227
                public string desktop { owned get; set; }
 
228
                [NoAccessorMethod]
 
229
                public string type { owned get; set; }
 
230
                public virtual signal void indicator_delete (uint p0);
 
231
                public virtual signal void indicator_modified (uint id, string property);
 
232
                public virtual signal void indicator_new (uint p0);
 
233
                public virtual signal void interest_added (uint interest);
 
234
                public virtual signal void interest_removed (uint interest);
 
235
                public virtual signal void max_indicators_changed (int max);
 
236
                public virtual signal void server_count_changed (uint count);
 
237
                public virtual signal void server_display ();
 
238
                public virtual signal void server_hide (string type);
 
239
                public virtual signal void server_show (string type);
 
240
        }
 
241
        [CCode (cprefix = "INDICATE_INTEREST_", cheader_filename = "libindicate/interests.h")]
 
242
        public enum Interests {
 
243
                NONE,
 
244
                SERVER_DISPLAY,
 
245
                SERVER_SIGNAL,
 
246
                INDICATOR_DISPLAY,
 
247
                INDICATOR_SIGNAL,
 
248
                INDICATOR_COUNT,
 
249
                LAST
 
250
        }
 
251
        [CCode (cheader_filename = "libindicate-gtk/listener.h")]
 
252
        public delegate void indicate_listener_get_property_bool_cb (Indicate.Listener listener, Indicate.ListenerServer server, Indicate.ListenerIndicator indicator, string property, bool propertydata);
 
253
        [CCode (cheader_filename = "libindicate-gtk/listener.h")]
 
254
        public delegate void indicate_listener_get_property_cb (Indicate.Listener listener, Indicate.ListenerServer server, Indicate.ListenerIndicator indicator, string property, string propertydata);
 
255
        [CCode (cheader_filename = "libindicate-gtk/listener.h")]
 
256
        public delegate void indicate_listener_get_property_int_cb (Indicate.Listener listener, Indicate.ListenerServer server, Indicate.ListenerIndicator indicator, string property, int propertydata);
 
257
        [CCode (cheader_filename = "libindicate-gtk/listener.h")]
 
258
        public delegate void indicate_listener_get_property_time_cb (Indicate.Listener listener, Indicate.ListenerServer server, Indicate.ListenerIndicator indicator, string property, GLib.TimeVal propertydata);
 
259
        [CCode (cheader_filename = "libindicate-gtk/listener.h")]
 
260
        public delegate void indicate_listener_get_server_property_cb (Indicate.Listener listener, Indicate.ListenerServer server, string value);
 
261
        [CCode (cheader_filename = "libindicate-gtk/listener.h")]
 
262
        public delegate void indicate_listener_get_server_uint_property_cb (Indicate.Listener listener, Indicate.ListenerServer server, uint value);
 
263
        [CCode (cheader_filename = "libindicate-gtk/indicator.h")]
 
264
        public const int INDICATOR_H_INCLUDED__;
 
265
        [CCode (cheader_filename = "libindicate/indicator-messages.h")]
 
266
        public const int INDICATOR_MESSAGES_H_INCLUDED__;
 
267
        [CCode (cheader_filename = "libindicate/indicator-messages.h")]
 
268
        public const string INDICATOR_MESSAGES_PROP_ATTENTION;
 
269
        [CCode (cheader_filename = "libindicate/indicator-messages.h")]
 
270
        public const string INDICATOR_MESSAGES_PROP_COUNT;
 
271
        [CCode (cheader_filename = "libindicate/indicator-messages.h")]
 
272
        public const string INDICATOR_MESSAGES_PROP_ICON;
 
273
        [CCode (cheader_filename = "libindicate/indicator-messages.h")]
 
274
        public const string INDICATOR_MESSAGES_PROP_NAME;
 
275
        [CCode (cheader_filename = "libindicate/indicator-messages.h")]
 
276
        public const string INDICATOR_MESSAGES_PROP_TIME;
 
277
        [CCode (cheader_filename = "libindicate/indicator-messages.h")]
 
278
        public const string INDICATOR_MESSAGES_SERVER_TYPE;
 
279
        [CCode (cheader_filename = "libindicate-gtk/indicator.h")]
 
280
        public const string INDICATOR_SIGNAL_DISPLAY;
 
281
        [CCode (cheader_filename = "libindicate-gtk/indicator.h")]
 
282
        public const string INDICATOR_SIGNAL_DISPLAYED;
 
283
        [CCode (cheader_filename = "libindicate-gtk/indicator.h")]
 
284
        public const string INDICATOR_SIGNAL_HIDE;
 
285
        [CCode (cheader_filename = "libindicate-gtk/indicator.h")]
 
286
        public const string INDICATOR_SIGNAL_MODIFIED;
 
287
        [CCode (cheader_filename = "libindicate-gtk/indicator.h")]
 
288
        public const string INDICATOR_SIGNAL_SHOW;
 
289
        [CCode (cheader_filename = "libindicate-gtk/indicator.h")]
 
290
        public const string INDICATOR_VALUE_FALSE;
 
291
        [CCode (cheader_filename = "libindicate-gtk/indicator.h")]
 
292
        public const string INDICATOR_VALUE_TRUE;
 
293
        [CCode (cheader_filename = "libindicate/interests.h")]
 
294
        public const int INTERESTS_H_INCLUDED__;
 
295
        [CCode (cheader_filename = "libindicate-gtk/listener.h")]
 
296
        public const int LISTENER_H_INCLUDED__;
 
297
        [CCode (cheader_filename = "libindicate-gtk/listener.h")]
 
298
        public const string LISTENER_SIGNAL_INDICATOR_ADDED;
 
299
        [CCode (cheader_filename = "libindicate-gtk/listener.h")]
 
300
        public const string LISTENER_SIGNAL_INDICATOR_MODIFIED;
 
301
        [CCode (cheader_filename = "libindicate-gtk/listener.h")]
 
302
        public const string LISTENER_SIGNAL_INDICATOR_REMOVED;
 
303
        [CCode (cheader_filename = "libindicate-gtk/listener.h")]
 
304
        public const string LISTENER_SIGNAL_SERVER_ADDED;
 
305
        [CCode (cheader_filename = "libindicate-gtk/listener.h")]
 
306
        public const string LISTENER_SIGNAL_SERVER_COUNT_CHANGED;
 
307
        [CCode (cheader_filename = "libindicate-gtk/listener.h")]
 
308
        public const string LISTENER_SIGNAL_SERVER_REMOVED;
 
309
        [CCode (cheader_filename = "libindicate/server.h")]
 
310
        public const int SERVER_H_INCLUDED__;
 
311
        [CCode (cheader_filename = "libindicate/server.h")]
 
312
        public const int SERVER_INDICATOR_NULL;
 
313
        [CCode (cheader_filename = "libindicate/server.h")]
 
314
        public const string SERVER_SIGNAL_INDICATOR_ADDED;
 
315
        [CCode (cheader_filename = "libindicate/server.h")]
 
316
        public const string SERVER_SIGNAL_INDICATOR_MODIFIED;
 
317
        [CCode (cheader_filename = "libindicate/server.h")]
 
318
        public const string SERVER_SIGNAL_INDICATOR_REMOVED;
 
319
        [CCode (cheader_filename = "libindicate/server.h")]
 
320
        public const string SERVER_SIGNAL_INTEREST_ADDED;
 
321
        [CCode (cheader_filename = "libindicate/server.h")]
 
322
        public const string SERVER_SIGNAL_INTEREST_REMOVED;
 
323
        [CCode (cheader_filename = "libindicate/server.h")]
 
324
        public const string SERVER_SIGNAL_MAX_INDICATORS_CHANGED;
 
325
        [CCode (cheader_filename = "libindicate/server.h")]
 
326
        public const string SERVER_SIGNAL_SERVER_COUNT_CHANGED;
 
327
        [CCode (cheader_filename = "libindicate/server.h")]
 
328
        public const string SERVER_SIGNAL_SERVER_DISPLAY;
 
329
        [CCode (cheader_filename = "libindicate/server.h")]
 
330
        public const string SERVER_SIGNAL_SERVER_HIDE;
 
331
        [CCode (cheader_filename = "libindicate/server.h")]
 
332
        public const string SERVER_SIGNAL_SERVER_SHOW;
 
333
}
 
334
 
 
335
/*
 
336
[CCode (cheader_filename = "sha1.h")]
 
337
namespace SHA1
 
338
{
 
339
  [CCode (cname = "_oauth_hmac_sha1")]
 
340
  public void hmac (string key, string message, out uchar[] output);
 
341
}
 
342
*/