1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
|
/* shotwell-plugin-dev-1.0.vapi generated by valac 0.32.1, do not modify. */
namespace Spit {
namespace DataImports {
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
public interface DataImporter : GLib.Object {
public abstract Spit.DataImports.Service get_service ();
public abstract bool is_running ();
public abstract void on_file_selected (GLib.File file);
public abstract void on_library_selected (Spit.DataImports.ImportableLibrary library);
protected virtual void reserved0 ();
protected virtual void reserved1 ();
protected virtual void reserved2 ();
protected virtual void reserved3 ();
protected virtual void reserved4 ();
protected virtual void reserved5 ();
protected virtual void reserved6 ();
protected virtual void reserved7 ();
public abstract void start ();
public abstract void stop ();
}
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
public interface DialogPane : GLib.Object {
public enum GeometryOptions {
NONE,
EXTENDED_SIZE,
RESIZABLE,
COLOSSAL_SIZE
}
public abstract Spit.DataImports.DialogPane.GeometryOptions get_preferred_geometry ();
public abstract Gtk.Widget get_widget ();
public abstract void on_pane_installed ();
public abstract void on_pane_uninstalled ();
protected virtual void reserved0 ();
protected virtual void reserved1 ();
protected virtual void reserved2 ();
protected virtual void reserved3 ();
protected virtual void reserved4 ();
protected virtual void reserved5 ();
protected virtual void reserved6 ();
protected virtual void reserved7 ();
}
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
public interface ImportableEvent : GLib.Object {
public abstract string get_name ();
}
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
public interface ImportableLibrary : GLib.Object {
public abstract string get_display_name ();
}
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
public interface ImportableMediaItem : GLib.Object {
public abstract Spit.DataImports.ImportableEvent? get_event ();
public abstract time_t? get_exposure_time ();
public abstract string get_filename ();
public abstract string get_folder_path ();
public abstract Spit.DataImports.ImportableRating get_rating ();
public abstract Spit.DataImports.ImportableTag[] get_tags ();
public abstract string? get_title ();
}
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
public interface ImportableRating : GLib.Object {
public abstract int get_value ();
public abstract bool is_rejected ();
public abstract bool is_unrated ();
}
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
public interface ImportableTag : GLib.Object {
public abstract string get_name ();
public abstract Spit.DataImports.ImportableTag? get_parent ();
}
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
public interface PluginHost : GLib.Object, Spit.HostInterface {
public enum ButtonMode {
CLOSE,
CANCEL
}
public abstract void finalize_import (Spit.DataImports.ImportedItemsCountCallback report_imported_items_count, string? finalize_message = null);
public abstract Spit.DataImports.DataImporter get_data_importer ();
public abstract void install_dialog_pane (Spit.DataImports.DialogPane pane, Spit.DataImports.PluginHost.ButtonMode mode = ButtonMode.CANCEL);
public abstract void install_import_progress_pane (string message);
public abstract void install_library_selection_pane (string welcome_message, Spit.DataImports.ImportableLibrary[] discovered_libraries, string? file_select_label);
public abstract void install_static_message_pane (string message, Spit.DataImports.PluginHost.ButtonMode mode = ButtonMode.CANCEL);
public abstract void post_error (GLib.Error err);
public abstract void post_error_message (string msg);
public abstract void prepare_media_items_for_import (Spit.DataImports.ImportableMediaItem[] items, double progress, double host_progress_delta = 0.0, string? progress_message = null);
protected virtual void reserved0 ();
protected virtual void reserved1 ();
protected virtual void reserved2 ();
protected virtual void reserved3 ();
protected virtual void reserved4 ();
protected virtual void reserved5 ();
protected virtual void reserved6 ();
protected virtual void reserved7 ();
public abstract void start_importing ();
public abstract void stop_importing ();
public abstract void update_import_progress_pane (double progress, string? progress_message = null);
}
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
public interface Service : GLib.Object, Spit.Pluggable {
public abstract Spit.DataImports.DataImporter create_data_importer (Spit.DataImports.PluginHost host);
protected virtual void reserved0 ();
protected virtual void reserved1 ();
protected virtual void reserved2 ();
protected virtual void reserved3 ();
protected virtual void reserved4 ();
protected virtual void reserved5 ();
protected virtual void reserved6 ();
protected virtual void reserved7 ();
}
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
public errordomain DataImportError {
UNSUPPORTED_VERSION
}
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
public delegate void ImportedItemsCountCallback (int imported_items_count);
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
public const int CURRENT_INTERFACE;
}
namespace Publishing {
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
public interface DialogPane : GLib.Object {
public enum GeometryOptions {
NONE,
EXTENDED_SIZE,
RESIZABLE,
COLOSSAL_SIZE
}
public abstract Spit.Publishing.DialogPane.GeometryOptions get_preferred_geometry ();
public abstract Gtk.Widget get_widget ();
public abstract void on_pane_installed ();
public abstract void on_pane_uninstalled ();
protected virtual void reserved0 ();
protected virtual void reserved1 ();
protected virtual void reserved2 ();
protected virtual void reserved3 ();
protected virtual void reserved4 ();
protected virtual void reserved5 ();
protected virtual void reserved6 ();
protected virtual void reserved7 ();
}
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
public interface PluginHost : GLib.Object, Spit.HostInterface {
public enum ButtonMode {
CLOSE,
CANCEL
}
public abstract Spit.Publishing.Publisher.MediaType get_publishable_media_type ();
public abstract Spit.Publishing.Publishable[] get_publishables ();
public abstract Spit.Publishing.Publisher get_publisher ();
public abstract void install_account_fetch_wait_pane ();
public abstract void install_dialog_pane (Spit.Publishing.DialogPane pane, Spit.Publishing.PluginHost.ButtonMode mode = ButtonMode.CANCEL);
public abstract void install_login_wait_pane ();
public abstract void install_pango_message_pane (string markup, Spit.Publishing.PluginHost.ButtonMode mode = ButtonMode.CANCEL);
public abstract void install_static_message_pane (string message, Spit.Publishing.PluginHost.ButtonMode mode = ButtonMode.CANCEL);
public abstract void install_success_pane ();
public abstract void install_welcome_pane (string welcome_message, Spit.Publishing.LoginCallback on_login_clicked);
public abstract void post_error (GLib.Error err);
protected virtual void reserved0 ();
protected virtual void reserved1 ();
protected virtual void reserved2 ();
protected virtual void reserved3 ();
protected virtual void reserved4 ();
protected virtual void reserved5 ();
protected virtual void reserved6 ();
protected virtual void reserved7 ();
public abstract Spit.Publishing.ProgressCallback? serialize_publishables (int content_major_axis, bool strip_metadata = false);
public abstract void set_dialog_default_widget (Gtk.Widget widget);
public abstract void set_service_locked (bool is_locked);
public abstract void stop_publishing ();
}
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
public interface Publishable : GLib.Object {
public const string PARAM_STRING_BASENAME;
public const string PARAM_STRING_COMMENT;
public const string PARAM_STRING_EVENTCOMMENT;
public const string PARAM_STRING_TITLE;
public abstract GLib.DateTime get_exposure_date_time ();
public abstract Spit.Publishing.Publisher.MediaType get_media_type ();
public abstract string? get_param_string (string name);
public abstract string[] get_publishing_keywords ();
public abstract string get_publishing_name ();
public abstract GLib.File? get_serialized_file ();
protected virtual void reserved0 ();
protected virtual void reserved1 ();
protected virtual void reserved2 ();
protected virtual void reserved3 ();
protected virtual void reserved4 ();
protected virtual void reserved5 ();
protected virtual void reserved6 ();
protected virtual void reserved7 ();
}
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
public interface Publisher : GLib.Object {
public enum MediaType {
NONE,
PHOTO,
VIDEO
}
public abstract Spit.Publishing.Service get_service ();
public abstract bool is_running ();
protected virtual void reserved0 ();
protected virtual void reserved1 ();
protected virtual void reserved2 ();
protected virtual void reserved3 ();
protected virtual void reserved4 ();
protected virtual void reserved5 ();
protected virtual void reserved6 ();
protected virtual void reserved7 ();
public abstract void start ();
public abstract void stop ();
}
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
public interface Service : GLib.Object, Spit.Pluggable {
public abstract Spit.Publishing.Publisher create_publisher (Spit.Publishing.PluginHost host);
public abstract Spit.Publishing.Publisher.MediaType get_supported_media ();
protected virtual void reserved0 ();
protected virtual void reserved1 ();
protected virtual void reserved2 ();
protected virtual void reserved3 ();
protected virtual void reserved4 ();
protected virtual void reserved5 ();
protected virtual void reserved6 ();
protected virtual void reserved7 ();
}
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
public errordomain PublishingError {
NO_ANSWER,
COMMUNICATION_FAILED,
PROTOCOL_ERROR,
SERVICE_ERROR,
MALFORMED_RESPONSE,
LOCAL_FILE_ERROR,
EXPIRED_SESSION,
SSL_FAILED
}
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
public delegate void LoginCallback ();
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
public delegate void ProgressCallback (int file_number, double fraction_complete);
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
public const int CURRENT_INTERFACE;
}
namespace Transitions {
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
public class Motion : GLib.Object {
public Motion (Spit.Transitions.Direction direction, int fps, int duration_msec);
public double get_alpha (int frame_number);
protected virtual void reserved0 ();
protected virtual void reserved1 ();
protected virtual void reserved2 ();
protected virtual void reserved3 ();
protected virtual void reserved4 ();
protected virtual void reserved5 ();
protected virtual void reserved6 ();
protected virtual void reserved7 ();
public Spit.Transitions.Direction direction { get; private set; }
public int duration_msec { get; private set; }
public int fps { get; private set; }
public int tick_msec { get; }
public int total_frames { get; }
}
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
public class Visuals : GLib.Object {
public Visuals (Gdk.Pixbuf? from_pixbuf, Gdk.Rectangle from_pos, Gdk.Pixbuf? to_pixbuf, Gdk.Rectangle to_pos, Gdk.RGBA bg_color);
protected virtual void reserved0 ();
protected virtual void reserved1 ();
protected virtual void reserved2 ();
protected virtual void reserved3 ();
protected virtual void reserved4 ();
protected virtual void reserved5 ();
protected virtual void reserved6 ();
protected virtual void reserved7 ();
public Gdk.RGBA bg_color { get; private set; }
public Gdk.Pixbuf? from_pixbuf { get; private set; }
public Gdk.Rectangle from_pos { get; private set; }
public Gdk.Pixbuf? to_pixbuf { get; private set; }
public Gdk.Rectangle to_pos { get; private set; }
}
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
public interface Descriptor : GLib.Object, Spit.Pluggable {
public abstract Spit.Transitions.Effect create (Spit.HostInterface host);
protected virtual void reserved0 ();
protected virtual void reserved1 ();
protected virtual void reserved2 ();
protected virtual void reserved3 ();
protected virtual void reserved4 ();
protected virtual void reserved5 ();
protected virtual void reserved6 ();
protected virtual void reserved7 ();
}
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
public interface Effect : GLib.Object {
public abstract void advance (Spit.Transitions.Visuals visuals, Spit.Transitions.Motion motion, int frame_number);
public abstract void cancel ();
public abstract void get_fps (out int desired_fps, out int min_fps);
public abstract bool needs_clear_background ();
public abstract void paint (Spit.Transitions.Visuals visuals, Spit.Transitions.Motion motion, Cairo.Context ctx, int width, int height, int frame_number);
protected virtual void reserved0 ();
protected virtual void reserved1 ();
protected virtual void reserved2 ();
protected virtual void reserved3 ();
protected virtual void reserved4 ();
protected virtual void reserved5 ();
protected virtual void reserved6 ();
protected virtual void reserved7 ();
public abstract void start (Spit.Transitions.Visuals visuals, Spit.Transitions.Motion motion);
}
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
public enum Direction {
LEFT,
RIGHT,
FORWARD,
BACKWARD
}
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
public const int CURRENT_INTERFACE;
}
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
public interface HostInterface : GLib.Object {
public abstract bool get_config_bool (string key, bool def);
public abstract double get_config_double (string key, double def);
public abstract int get_config_int (string key, int def);
public abstract string? get_config_string (string key, string? def);
public abstract GLib.File get_module_file ();
protected virtual void reserved0 ();
protected virtual void reserved1 ();
protected virtual void reserved2 ();
protected virtual void reserved3 ();
protected virtual void reserved4 ();
protected virtual void reserved5 ();
protected virtual void reserved6 ();
protected virtual void reserved7 ();
public abstract void set_config_bool (string key, bool val);
public abstract void set_config_double (string key, double val);
public abstract void set_config_int (string key, int val);
public abstract void set_config_string (string key, string? val);
public abstract void unset_config_key (string key);
}
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
public interface Module : GLib.Object {
public abstract unowned string get_id ();
public abstract unowned string get_module_name ();
public abstract unowned Spit.Pluggable[]? get_pluggables ();
public abstract unowned string get_version ();
protected virtual void reserved0 ();
protected virtual void reserved1 ();
protected virtual void reserved2 ();
protected virtual void reserved3 ();
protected virtual void reserved4 ();
protected virtual void reserved5 ();
protected virtual void reserved6 ();
protected virtual void reserved7 ();
}
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
public interface Pluggable : GLib.Object {
public abstract void activation (bool enabled);
public abstract unowned string get_id ();
public abstract void get_info (ref Spit.PluggableInfo info);
public abstract int get_pluggable_interface (int min_host_interface, int max_host_interface);
public abstract unowned string get_pluggable_name ();
protected virtual void reserved0 ();
protected virtual void reserved1 ();
protected virtual void reserved2 ();
protected virtual void reserved3 ();
protected virtual void reserved4 ();
protected virtual void reserved5 ();
protected virtual void reserved6 ();
protected virtual void reserved7 ();
}
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
public struct EntryPointParams {
public int host_min_spit_interface;
public int host_max_spit_interface;
public int module_spit_interface;
public GLib.File module_file;
}
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
public struct PluggableInfo {
public string? version;
public string? brief_description;
public string? authors;
public string? copyright;
public string? license;
public bool is_license_wordwrapped;
public string? website_url;
public string? website_name;
public string? translators;
public Gdk.Pixbuf[]? icons;
}
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h", has_target = false)]
public delegate Spit.Module? EntryPoint (Spit.EntryPointParams* @params);
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
public const int CURRENT_INTERFACE;
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
public const string ENTRY_POINT_NAME;
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
public const int UNSUPPORTED_INTERFACE;
[CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")]
public static int negotiate_interfaces (int min_host_interface, int max_host_interface, int plugin_interface);
}
|