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
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
|
/* PublishingInterfaces.c generated by valac 0.34.4, the Vala compiler
* generated from PublishingInterfaces.vala, do not modify */
/* Copyright 2016 Software Freedom Conservancy Inc.
*
* This software is licensed under the GNU Lesser General Public License
* (version 2.1 or later). See the COPYING file in this distribution.
*/
#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <gio/gio.h>
#include <float.h>
#include <math.h>
#include <gtk/gtk.h>
#define SPIT_PUBLISHING_TYPE_PUBLISHER (spit_publishing_publisher_get_type ())
#define SPIT_PUBLISHING_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))
#define SPIT_PUBLISHING_IS_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_PUBLISHER))
#define SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisherIface))
typedef struct _SpitPublishingPublisher SpitPublishingPublisher;
typedef struct _SpitPublishingPublisherIface SpitPublishingPublisherIface;
#define SPIT_TYPE_PLUGGABLE (spit_pluggable_get_type ())
#define SPIT_PLUGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_PLUGGABLE, SpitPluggable))
#define SPIT_IS_PLUGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_PLUGGABLE))
#define SPIT_PLUGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_PLUGGABLE, SpitPluggableIface))
typedef struct _SpitPluggable SpitPluggable;
typedef struct _SpitPluggableIface SpitPluggableIface;
#define SPIT_TYPE_PLUGGABLE_INFO (spit_pluggable_info_get_type ())
typedef struct _SpitPluggableInfo SpitPluggableInfo;
#define SPIT_PUBLISHING_TYPE_SERVICE (spit_publishing_service_get_type ())
#define SPIT_PUBLISHING_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService))
#define SPIT_PUBLISHING_IS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_SERVICE))
#define SPIT_PUBLISHING_SERVICE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingServiceIface))
typedef struct _SpitPublishingService SpitPublishingService;
typedef struct _SpitPublishingServiceIface SpitPublishingServiceIface;
#define SPIT_TYPE_HOST_INTERFACE (spit_host_interface_get_type ())
#define SPIT_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_HOST_INTERFACE, SpitHostInterface))
#define SPIT_IS_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_HOST_INTERFACE))
#define SPIT_HOST_INTERFACE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_HOST_INTERFACE, SpitHostInterfaceIface))
typedef struct _SpitHostInterface SpitHostInterface;
typedef struct _SpitHostInterfaceIface SpitHostInterfaceIface;
#define SPIT_PUBLISHING_TYPE_PLUGIN_HOST (spit_publishing_plugin_host_get_type ())
#define SPIT_PUBLISHING_PLUGIN_HOST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_PLUGIN_HOST, SpitPublishingPluginHost))
#define SPIT_PUBLISHING_IS_PLUGIN_HOST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_PLUGIN_HOST))
#define SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_PLUGIN_HOST, SpitPublishingPluginHostIface))
typedef struct _SpitPublishingPluginHost SpitPublishingPluginHost;
typedef struct _SpitPublishingPluginHostIface SpitPublishingPluginHostIface;
#define SPIT_PUBLISHING_TYPE_DIALOG_PANE (spit_publishing_dialog_pane_get_type ())
#define SPIT_PUBLISHING_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane))
#define SPIT_PUBLISHING_IS_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_DIALOG_PANE))
#define SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPaneIface))
typedef struct _SpitPublishingDialogPane SpitPublishingDialogPane;
typedef struct _SpitPublishingDialogPaneIface SpitPublishingDialogPaneIface;
#define SPIT_PUBLISHING_DIALOG_PANE_TYPE_GEOMETRY_OPTIONS (spit_publishing_dialog_pane_geometry_options_get_type ())
#define SPIT_PUBLISHING_PLUGIN_HOST_TYPE_BUTTON_MODE (spit_publishing_plugin_host_button_mode_get_type ())
#define SPIT_PUBLISHING_TYPE_PUBLISHABLE (spit_publishing_publishable_get_type ())
#define SPIT_PUBLISHING_PUBLISHABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_PUBLISHABLE, SpitPublishingPublishable))
#define SPIT_PUBLISHING_IS_PUBLISHABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_PUBLISHABLE))
#define SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_PUBLISHABLE, SpitPublishingPublishableIface))
typedef struct _SpitPublishingPublishable SpitPublishingPublishable;
typedef struct _SpitPublishingPublishableIface SpitPublishingPublishableIface;
#define SPIT_PUBLISHING_PUBLISHER_TYPE_MEDIA_TYPE (spit_publishing_publisher_media_type_get_type ())
/**
* Defines different kinds of errors that can occur during publishing.
*/
typedef enum {
SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER,
SPIT_PUBLISHING_PUBLISHING_ERROR_COMMUNICATION_FAILED,
SPIT_PUBLISHING_PUBLISHING_ERROR_PROTOCOL_ERROR,
SPIT_PUBLISHING_PUBLISHING_ERROR_SERVICE_ERROR,
SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE,
SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR,
SPIT_PUBLISHING_PUBLISHING_ERROR_EXPIRED_SESSION,
SPIT_PUBLISHING_PUBLISHING_ERROR_SSL_FAILED
} SpitPublishingPublishingError;
#define SPIT_PUBLISHING_PUBLISHING_ERROR spit_publishing_publishing_error_quark ()
struct _SpitPluggableInfo {
gchar* version;
gchar* brief_description;
gchar* authors;
gchar* copyright;
gchar* license;
gboolean is_license_wordwrapped;
gchar* website_url;
gchar* website_name;
gchar* translators;
GdkPixbuf** icons;
gint icons_length1;
};
struct _SpitPluggableIface {
GTypeInterface parent_iface;
gint (*get_pluggable_interface) (SpitPluggable* self, gint min_host_interface, gint max_host_interface);
const gchar* (*get_id) (SpitPluggable* self);
const gchar* (*get_pluggable_name) (SpitPluggable* self);
void (*get_info) (SpitPluggable* self, SpitPluggableInfo* info);
void (*activation) (SpitPluggable* self, gboolean enabled);
void (*reserved0) (SpitPluggable* self);
void (*reserved1) (SpitPluggable* self);
void (*reserved2) (SpitPluggable* self);
void (*reserved3) (SpitPluggable* self);
void (*reserved4) (SpitPluggable* self);
void (*reserved5) (SpitPluggable* self);
void (*reserved6) (SpitPluggable* self);
void (*reserved7) (SpitPluggable* self);
};
struct _SpitHostInterfaceIface {
GTypeInterface parent_iface;
GFile* (*get_module_file) (SpitHostInterface* self);
gboolean (*get_config_bool) (SpitHostInterface* self, const gchar* key, gboolean def);
void (*set_config_bool) (SpitHostInterface* self, const gchar* key, gboolean val);
gint (*get_config_int) (SpitHostInterface* self, const gchar* key, gint def);
void (*set_config_int) (SpitHostInterface* self, const gchar* key, gint val);
gchar* (*get_config_string) (SpitHostInterface* self, const gchar* key, const gchar* def);
void (*set_config_string) (SpitHostInterface* self, const gchar* key, const gchar* val);
gdouble (*get_config_double) (SpitHostInterface* self, const gchar* key, gdouble def);
void (*set_config_double) (SpitHostInterface* self, const gchar* key, gdouble val);
void (*unset_config_key) (SpitHostInterface* self, const gchar* key);
void (*reserved0) (SpitHostInterface* self);
void (*reserved1) (SpitHostInterface* self);
void (*reserved2) (SpitHostInterface* self);
void (*reserved3) (SpitHostInterface* self);
void (*reserved4) (SpitHostInterface* self);
void (*reserved5) (SpitHostInterface* self);
void (*reserved6) (SpitHostInterface* self);
void (*reserved7) (SpitHostInterface* self);
};
typedef enum {
SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE = 0,
SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_EXTENDED_SIZE = 1 << 0,
SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_RESIZABLE = 1 << 1,
SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_COLOSSAL_SIZE = 1 << 2
} SpitPublishingDialogPaneGeometryOptions;
struct _SpitPublishingDialogPaneIface {
GTypeInterface parent_iface;
GtkWidget* (*get_widget) (SpitPublishingDialogPane* self);
SpitPublishingDialogPaneGeometryOptions (*get_preferred_geometry) (SpitPublishingDialogPane* self);
void (*on_pane_installed) (SpitPublishingDialogPane* self);
void (*on_pane_uninstalled) (SpitPublishingDialogPane* self);
void (*reserved0) (SpitPublishingDialogPane* self);
void (*reserved1) (SpitPublishingDialogPane* self);
void (*reserved2) (SpitPublishingDialogPane* self);
void (*reserved3) (SpitPublishingDialogPane* self);
void (*reserved4) (SpitPublishingDialogPane* self);
void (*reserved5) (SpitPublishingDialogPane* self);
void (*reserved6) (SpitPublishingDialogPane* self);
void (*reserved7) (SpitPublishingDialogPane* self);
};
typedef enum {
SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE = 0,
SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL = 1
} SpitPublishingPluginHostButtonMode;
typedef void (*SpitPublishingLoginCallback) (void* user_data);
typedef enum {
SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_NONE = 0,
SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO = 1 << 0,
SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO = 1 << 1
} SpitPublishingPublisherMediaType;
struct _SpitPublishingPublishableIface {
GTypeInterface parent_iface;
GFile* (*get_serialized_file) (SpitPublishingPublishable* self);
gchar* (*get_publishing_name) (SpitPublishingPublishable* self);
gchar* (*get_param_string) (SpitPublishingPublishable* self, const gchar* name);
gchar** (*get_publishing_keywords) (SpitPublishingPublishable* self, int* result_length1);
SpitPublishingPublisherMediaType (*get_media_type) (SpitPublishingPublishable* self);
GDateTime* (*get_exposure_date_time) (SpitPublishingPublishable* self);
void (*reserved0) (SpitPublishingPublishable* self);
void (*reserved1) (SpitPublishingPublishable* self);
void (*reserved2) (SpitPublishingPublishable* self);
void (*reserved3) (SpitPublishingPublishable* self);
void (*reserved4) (SpitPublishingPublishable* self);
void (*reserved5) (SpitPublishingPublishable* self);
void (*reserved6) (SpitPublishingPublishable* self);
void (*reserved7) (SpitPublishingPublishable* self);
};
typedef void (*SpitPublishingProgressCallback) (gint file_number, gdouble fraction_complete, void* user_data);
struct _SpitPublishingPluginHostIface {
GTypeInterface parent_iface;
void (*post_error) (SpitPublishingPluginHost* self, GError* err);
void (*stop_publishing) (SpitPublishingPluginHost* self);
SpitPublishingPublisher* (*get_publisher) (SpitPublishingPluginHost* self);
void (*install_dialog_pane) (SpitPublishingPluginHost* self, SpitPublishingDialogPane* pane, SpitPublishingPluginHostButtonMode mode);
void (*install_static_message_pane) (SpitPublishingPluginHost* self, const gchar* message, SpitPublishingPluginHostButtonMode mode);
void (*install_pango_message_pane) (SpitPublishingPluginHost* self, const gchar* markup, SpitPublishingPluginHostButtonMode mode);
void (*install_success_pane) (SpitPublishingPluginHost* self);
void (*install_account_fetch_wait_pane) (SpitPublishingPluginHost* self);
void (*install_login_wait_pane) (SpitPublishingPluginHost* self);
void (*install_welcome_pane) (SpitPublishingPluginHost* self, const gchar* welcome_message, SpitPublishingLoginCallback on_login_clicked, void* on_login_clicked_target);
void (*set_service_locked) (SpitPublishingPluginHost* self, gboolean is_locked);
void (*set_dialog_default_widget) (SpitPublishingPluginHost* self, GtkWidget* widget);
SpitPublishingPublishable** (*get_publishables) (SpitPublishingPluginHost* self, int* result_length1);
SpitPublishingProgressCallback (*serialize_publishables) (SpitPublishingPluginHost* self, gint content_major_axis, gboolean strip_metadata, void** result_target, GDestroyNotify* result_target_destroy_notify);
SpitPublishingPublisherMediaType (*get_publishable_media_type) (SpitPublishingPluginHost* self);
void (*reserved0) (SpitPublishingPluginHost* self);
void (*reserved1) (SpitPublishingPluginHost* self);
void (*reserved2) (SpitPublishingPluginHost* self);
void (*reserved3) (SpitPublishingPluginHost* self);
void (*reserved4) (SpitPublishingPluginHost* self);
void (*reserved5) (SpitPublishingPluginHost* self);
void (*reserved6) (SpitPublishingPluginHost* self);
void (*reserved7) (SpitPublishingPluginHost* self);
};
struct _SpitPublishingServiceIface {
GTypeInterface parent_iface;
SpitPublishingPublisher* (*create_publisher) (SpitPublishingService* self, SpitPublishingPluginHost* host);
SpitPublishingPublisherMediaType (*get_supported_media) (SpitPublishingService* self);
void (*reserved0) (SpitPublishingService* self);
void (*reserved1) (SpitPublishingService* self);
void (*reserved2) (SpitPublishingService* self);
void (*reserved3) (SpitPublishingService* self);
void (*reserved4) (SpitPublishingService* self);
void (*reserved5) (SpitPublishingService* self);
void (*reserved6) (SpitPublishingService* self);
void (*reserved7) (SpitPublishingService* self);
};
struct _SpitPublishingPublisherIface {
GTypeInterface parent_iface;
SpitPublishingService* (*get_service) (SpitPublishingPublisher* self);
void (*start) (SpitPublishingPublisher* self);
gboolean (*is_running) (SpitPublishingPublisher* self);
void (*stop) (SpitPublishingPublisher* self);
void (*reserved0) (SpitPublishingPublisher* self);
void (*reserved1) (SpitPublishingPublisher* self);
void (*reserved2) (SpitPublishingPublisher* self);
void (*reserved3) (SpitPublishingPublisher* self);
void (*reserved4) (SpitPublishingPublisher* self);
void (*reserved5) (SpitPublishingPublisher* self);
void (*reserved6) (SpitPublishingPublisher* self);
void (*reserved7) (SpitPublishingPublisher* self);
};
#define SPIT_PUBLISHING_CURRENT_INTERFACE 0
GQuark spit_publishing_publishing_error_quark (void);
GType spit_pluggable_info_get_type (void) G_GNUC_CONST;
SpitPluggableInfo* spit_pluggable_info_dup (const SpitPluggableInfo* self);
void spit_pluggable_info_free (SpitPluggableInfo* self);
void spit_pluggable_info_copy (const SpitPluggableInfo* self, SpitPluggableInfo* dest);
void spit_pluggable_info_destroy (SpitPluggableInfo* self);
GType spit_pluggable_get_type (void) G_GNUC_CONST;
GType spit_host_interface_get_type (void) G_GNUC_CONST;
GType spit_publishing_dialog_pane_geometry_options_get_type (void) G_GNUC_CONST;
GType spit_publishing_dialog_pane_get_type (void) G_GNUC_CONST;
GType spit_publishing_plugin_host_button_mode_get_type (void) G_GNUC_CONST;
GType spit_publishing_publisher_media_type_get_type (void) G_GNUC_CONST;
GType spit_publishing_publishable_get_type (void) G_GNUC_CONST;
GType spit_publishing_plugin_host_get_type (void) G_GNUC_CONST;
GType spit_publishing_service_get_type (void) G_GNUC_CONST;
GType spit_publishing_publisher_get_type (void) G_GNUC_CONST;
SpitPublishingService* spit_publishing_publisher_get_service (SpitPublishingPublisher* self);
void spit_publishing_publisher_start (SpitPublishingPublisher* self);
gboolean spit_publishing_publisher_is_running (SpitPublishingPublisher* self);
void spit_publishing_publisher_stop (SpitPublishingPublisher* self);
void spit_publishing_publisher_reserved0 (SpitPublishingPublisher* self);
static void spit_publishing_publisher_real_reserved0 (SpitPublishingPublisher* self);
void spit_publishing_publisher_reserved1 (SpitPublishingPublisher* self);
static void spit_publishing_publisher_real_reserved1 (SpitPublishingPublisher* self);
void spit_publishing_publisher_reserved2 (SpitPublishingPublisher* self);
static void spit_publishing_publisher_real_reserved2 (SpitPublishingPublisher* self);
void spit_publishing_publisher_reserved3 (SpitPublishingPublisher* self);
static void spit_publishing_publisher_real_reserved3 (SpitPublishingPublisher* self);
void spit_publishing_publisher_reserved4 (SpitPublishingPublisher* self);
static void spit_publishing_publisher_real_reserved4 (SpitPublishingPublisher* self);
void spit_publishing_publisher_reserved5 (SpitPublishingPublisher* self);
static void spit_publishing_publisher_real_reserved5 (SpitPublishingPublisher* self);
void spit_publishing_publisher_reserved6 (SpitPublishingPublisher* self);
static void spit_publishing_publisher_real_reserved6 (SpitPublishingPublisher* self);
void spit_publishing_publisher_reserved7 (SpitPublishingPublisher* self);
static void spit_publishing_publisher_real_reserved7 (SpitPublishingPublisher* self);
GtkWidget* spit_publishing_dialog_pane_get_widget (SpitPublishingDialogPane* self);
SpitPublishingDialogPaneGeometryOptions spit_publishing_dialog_pane_get_preferred_geometry (SpitPublishingDialogPane* self);
void spit_publishing_dialog_pane_on_pane_installed (SpitPublishingDialogPane* self);
void spit_publishing_dialog_pane_on_pane_uninstalled (SpitPublishingDialogPane* self);
void spit_publishing_dialog_pane_reserved0 (SpitPublishingDialogPane* self);
static void spit_publishing_dialog_pane_real_reserved0 (SpitPublishingDialogPane* self);
void spit_publishing_dialog_pane_reserved1 (SpitPublishingDialogPane* self);
static void spit_publishing_dialog_pane_real_reserved1 (SpitPublishingDialogPane* self);
void spit_publishing_dialog_pane_reserved2 (SpitPublishingDialogPane* self);
static void spit_publishing_dialog_pane_real_reserved2 (SpitPublishingDialogPane* self);
void spit_publishing_dialog_pane_reserved3 (SpitPublishingDialogPane* self);
static void spit_publishing_dialog_pane_real_reserved3 (SpitPublishingDialogPane* self);
void spit_publishing_dialog_pane_reserved4 (SpitPublishingDialogPane* self);
static void spit_publishing_dialog_pane_real_reserved4 (SpitPublishingDialogPane* self);
void spit_publishing_dialog_pane_reserved5 (SpitPublishingDialogPane* self);
static void spit_publishing_dialog_pane_real_reserved5 (SpitPublishingDialogPane* self);
void spit_publishing_dialog_pane_reserved6 (SpitPublishingDialogPane* self);
static void spit_publishing_dialog_pane_real_reserved6 (SpitPublishingDialogPane* self);
void spit_publishing_dialog_pane_reserved7 (SpitPublishingDialogPane* self);
static void spit_publishing_dialog_pane_real_reserved7 (SpitPublishingDialogPane* self);
void spit_publishing_plugin_host_post_error (SpitPublishingPluginHost* self, GError* err);
void spit_publishing_plugin_host_stop_publishing (SpitPublishingPluginHost* self);
SpitPublishingPublisher* spit_publishing_plugin_host_get_publisher (SpitPublishingPluginHost* self);
void spit_publishing_plugin_host_install_dialog_pane (SpitPublishingPluginHost* self, SpitPublishingDialogPane* pane, SpitPublishingPluginHostButtonMode mode);
void spit_publishing_plugin_host_install_static_message_pane (SpitPublishingPluginHost* self, const gchar* message, SpitPublishingPluginHostButtonMode mode);
void spit_publishing_plugin_host_install_pango_message_pane (SpitPublishingPluginHost* self, const gchar* markup, SpitPublishingPluginHostButtonMode mode);
void spit_publishing_plugin_host_install_success_pane (SpitPublishingPluginHost* self);
void spit_publishing_plugin_host_install_account_fetch_wait_pane (SpitPublishingPluginHost* self);
void spit_publishing_plugin_host_install_login_wait_pane (SpitPublishingPluginHost* self);
void spit_publishing_plugin_host_install_welcome_pane (SpitPublishingPluginHost* self, const gchar* welcome_message, SpitPublishingLoginCallback on_login_clicked, void* on_login_clicked_target);
void spit_publishing_plugin_host_set_service_locked (SpitPublishingPluginHost* self, gboolean is_locked);
void spit_publishing_plugin_host_set_dialog_default_widget (SpitPublishingPluginHost* self, GtkWidget* widget);
SpitPublishingPublishable** spit_publishing_plugin_host_get_publishables (SpitPublishingPluginHost* self, int* result_length1);
SpitPublishingProgressCallback spit_publishing_plugin_host_serialize_publishables (SpitPublishingPluginHost* self, gint content_major_axis, gboolean strip_metadata, void** result_target, GDestroyNotify* result_target_destroy_notify);
SpitPublishingPublisherMediaType spit_publishing_plugin_host_get_publishable_media_type (SpitPublishingPluginHost* self);
void spit_publishing_plugin_host_reserved0 (SpitPublishingPluginHost* self);
static void spit_publishing_plugin_host_real_reserved0 (SpitPublishingPluginHost* self);
void spit_publishing_plugin_host_reserved1 (SpitPublishingPluginHost* self);
static void spit_publishing_plugin_host_real_reserved1 (SpitPublishingPluginHost* self);
void spit_publishing_plugin_host_reserved2 (SpitPublishingPluginHost* self);
static void spit_publishing_plugin_host_real_reserved2 (SpitPublishingPluginHost* self);
void spit_publishing_plugin_host_reserved3 (SpitPublishingPluginHost* self);
static void spit_publishing_plugin_host_real_reserved3 (SpitPublishingPluginHost* self);
void spit_publishing_plugin_host_reserved4 (SpitPublishingPluginHost* self);
static void spit_publishing_plugin_host_real_reserved4 (SpitPublishingPluginHost* self);
void spit_publishing_plugin_host_reserved5 (SpitPublishingPluginHost* self);
static void spit_publishing_plugin_host_real_reserved5 (SpitPublishingPluginHost* self);
void spit_publishing_plugin_host_reserved6 (SpitPublishingPluginHost* self);
static void spit_publishing_plugin_host_real_reserved6 (SpitPublishingPluginHost* self);
void spit_publishing_plugin_host_reserved7 (SpitPublishingPluginHost* self);
static void spit_publishing_plugin_host_real_reserved7 (SpitPublishingPluginHost* self);
GFile* spit_publishing_publishable_get_serialized_file (SpitPublishingPublishable* self);
gchar* spit_publishing_publishable_get_publishing_name (SpitPublishingPublishable* self);
gchar* spit_publishing_publishable_get_param_string (SpitPublishingPublishable* self, const gchar* name);
gchar** spit_publishing_publishable_get_publishing_keywords (SpitPublishingPublishable* self, int* result_length1);
SpitPublishingPublisherMediaType spit_publishing_publishable_get_media_type (SpitPublishingPublishable* self);
GDateTime* spit_publishing_publishable_get_exposure_date_time (SpitPublishingPublishable* self);
void spit_publishing_publishable_reserved0 (SpitPublishingPublishable* self);
static void spit_publishing_publishable_real_reserved0 (SpitPublishingPublishable* self);
void spit_publishing_publishable_reserved1 (SpitPublishingPublishable* self);
static void spit_publishing_publishable_real_reserved1 (SpitPublishingPublishable* self);
void spit_publishing_publishable_reserved2 (SpitPublishingPublishable* self);
static void spit_publishing_publishable_real_reserved2 (SpitPublishingPublishable* self);
void spit_publishing_publishable_reserved3 (SpitPublishingPublishable* self);
static void spit_publishing_publishable_real_reserved3 (SpitPublishingPublishable* self);
void spit_publishing_publishable_reserved4 (SpitPublishingPublishable* self);
static void spit_publishing_publishable_real_reserved4 (SpitPublishingPublishable* self);
void spit_publishing_publishable_reserved5 (SpitPublishingPublishable* self);
static void spit_publishing_publishable_real_reserved5 (SpitPublishingPublishable* self);
void spit_publishing_publishable_reserved6 (SpitPublishingPublishable* self);
static void spit_publishing_publishable_real_reserved6 (SpitPublishingPublishable* self);
void spit_publishing_publishable_reserved7 (SpitPublishingPublishable* self);
static void spit_publishing_publishable_real_reserved7 (SpitPublishingPublishable* self);
#define SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME "basename"
#define SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_TITLE "title"
#define SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_COMMENT "comment"
#define SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_EVENTCOMMENT "eventcomment"
SpitPublishingPublisher* spit_publishing_service_create_publisher (SpitPublishingService* self, SpitPublishingPluginHost* host);
SpitPublishingPublisherMediaType spit_publishing_service_get_supported_media (SpitPublishingService* self);
void spit_publishing_service_reserved0 (SpitPublishingService* self);
static void spit_publishing_service_real_reserved0 (SpitPublishingService* self);
void spit_publishing_service_reserved1 (SpitPublishingService* self);
static void spit_publishing_service_real_reserved1 (SpitPublishingService* self);
void spit_publishing_service_reserved2 (SpitPublishingService* self);
static void spit_publishing_service_real_reserved2 (SpitPublishingService* self);
void spit_publishing_service_reserved3 (SpitPublishingService* self);
static void spit_publishing_service_real_reserved3 (SpitPublishingService* self);
void spit_publishing_service_reserved4 (SpitPublishingService* self);
static void spit_publishing_service_real_reserved4 (SpitPublishingService* self);
void spit_publishing_service_reserved5 (SpitPublishingService* self);
static void spit_publishing_service_real_reserved5 (SpitPublishingService* self);
void spit_publishing_service_reserved6 (SpitPublishingService* self);
static void spit_publishing_service_real_reserved6 (SpitPublishingService* self);
void spit_publishing_service_reserved7 (SpitPublishingService* self);
static void spit_publishing_service_real_reserved7 (SpitPublishingService* self);
GQuark spit_publishing_publishing_error_quark (void) {
return g_quark_from_static_string ("spit_publishing_publishing_error-quark");
}
/**
* Describes the kinds of media a publishing service supports.
*
* Values can be masked together, for example: {{{(MediaType.PHOTO | MediaType.VIDEO)}}}
* indicates that a publishing service supports the upload of both photos and videos.
*/
GType spit_publishing_publisher_media_type_get_type (void) {
static volatile gsize spit_publishing_publisher_media_type_type_id__volatile = 0;
if (g_once_init_enter (&spit_publishing_publisher_media_type_type_id__volatile)) {
static const GEnumValue values[] = {{SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_NONE, "SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_NONE", "none"}, {SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO, "SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO", "photo"}, {SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO, "SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO", "video"}, {0, NULL, NULL}};
GType spit_publishing_publisher_media_type_type_id;
spit_publishing_publisher_media_type_type_id = g_enum_register_static ("SpitPublishingPublisherMediaType", values);
g_once_init_leave (&spit_publishing_publisher_media_type_type_id__volatile, spit_publishing_publisher_media_type_type_id);
}
return spit_publishing_publisher_media_type_type_id__volatile;
}
/**
* Returns a {@link Service} object describing the service to which this connects.
*/
SpitPublishingService* spit_publishing_publisher_get_service (SpitPublishingPublisher* self) {
#line 121 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self), NULL);
#line 121 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
return SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->get_service (self);
#line 432 "PublishingInterfaces.c"
}
/**
* Makes this publisher enter the running state and endows it with exclusive access
* to the shared services provided by the {@link PluginHost}. Through the host’s interface,
* this publisher can install user interface panes and query configuration information.
* Only running services should perform network operations.
*/
void spit_publishing_publisher_start (SpitPublishingPublisher* self) {
#line 129 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self));
#line 129 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->start (self);
#line 447 "PublishingInterfaces.c"
}
/**
* Returns true if this publisher is in the running state; false otherwise.
*/
gboolean spit_publishing_publisher_is_running (SpitPublishingPublisher* self) {
#line 134 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self), FALSE);
#line 134 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
return SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->is_running (self);
#line 459 "PublishingInterfaces.c"
}
/**
* Causes this publisher to enter a non-running state. This publisher should stop all
* network operations and cease use of the shared services provided by the {@link PluginHost}.
*/
void spit_publishing_publisher_stop (SpitPublishingPublisher* self) {
#line 140 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self));
#line 140 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->stop (self);
#line 472 "PublishingInterfaces.c"
}
static void spit_publishing_publisher_real_reserved0 (SpitPublishingPublisher* self) {
}
void spit_publishing_publisher_reserved0 (SpitPublishingPublisher* self) {
#line 145 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self));
#line 145 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->reserved0 (self);
#line 485 "PublishingInterfaces.c"
}
static void spit_publishing_publisher_real_reserved1 (SpitPublishingPublisher* self) {
}
void spit_publishing_publisher_reserved1 (SpitPublishingPublisher* self) {
#line 146 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self));
#line 146 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->reserved1 (self);
#line 498 "PublishingInterfaces.c"
}
static void spit_publishing_publisher_real_reserved2 (SpitPublishingPublisher* self) {
}
void spit_publishing_publisher_reserved2 (SpitPublishingPublisher* self) {
#line 147 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self));
#line 147 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->reserved2 (self);
#line 511 "PublishingInterfaces.c"
}
static void spit_publishing_publisher_real_reserved3 (SpitPublishingPublisher* self) {
}
void spit_publishing_publisher_reserved3 (SpitPublishingPublisher* self) {
#line 148 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self));
#line 148 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->reserved3 (self);
#line 524 "PublishingInterfaces.c"
}
static void spit_publishing_publisher_real_reserved4 (SpitPublishingPublisher* self) {
}
void spit_publishing_publisher_reserved4 (SpitPublishingPublisher* self) {
#line 149 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self));
#line 149 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->reserved4 (self);
#line 537 "PublishingInterfaces.c"
}
static void spit_publishing_publisher_real_reserved5 (SpitPublishingPublisher* self) {
}
void spit_publishing_publisher_reserved5 (SpitPublishingPublisher* self) {
#line 150 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self));
#line 150 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->reserved5 (self);
#line 550 "PublishingInterfaces.c"
}
static void spit_publishing_publisher_real_reserved6 (SpitPublishingPublisher* self) {
}
void spit_publishing_publisher_reserved6 (SpitPublishingPublisher* self) {
#line 151 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self));
#line 151 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->reserved6 (self);
#line 563 "PublishingInterfaces.c"
}
static void spit_publishing_publisher_real_reserved7 (SpitPublishingPublisher* self) {
}
void spit_publishing_publisher_reserved7 (SpitPublishingPublisher* self) {
#line 152 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self));
#line 152 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->reserved7 (self);
#line 576 "PublishingInterfaces.c"
}
static void spit_publishing_publisher_base_init (SpitPublishingPublisherIface * iface) {
#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
static gboolean initialized = FALSE;
#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
if (!initialized) {
#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
initialized = TRUE;
#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved0 = spit_publishing_publisher_real_reserved0;
#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved1 = spit_publishing_publisher_real_reserved1;
#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved2 = spit_publishing_publisher_real_reserved2;
#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved3 = spit_publishing_publisher_real_reserved3;
#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved4 = spit_publishing_publisher_real_reserved4;
#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved5 = spit_publishing_publisher_real_reserved5;
#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved6 = spit_publishing_publisher_real_reserved6;
#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved7 = spit_publishing_publisher_real_reserved7;
#line 603 "PublishingInterfaces.c"
}
}
/**
* Represents a connection to a publishing service.
*
* Developers of publishing plugins provide a class that implements this interface. At
* any given time, only one Publisher can be running. When a publisher is running, it is
* allowed to access the network and has exclusive use of the shared user-interface and
* configuration services provided by the {@link PluginHost}. Publishers are created in
* a non-running state and do not begin running until start( ) is invoked. Publishers
* run until stop( ) is invoked.
*/
GType spit_publishing_publisher_get_type (void) {
static volatile gsize spit_publishing_publisher_type_id__volatile = 0;
if (g_once_init_enter (&spit_publishing_publisher_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (SpitPublishingPublisherIface), (GBaseInitFunc) spit_publishing_publisher_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
GType spit_publishing_publisher_type_id;
spit_publishing_publisher_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitPublishingPublisher", &g_define_type_info, 0);
g_type_interface_add_prerequisite (spit_publishing_publisher_type_id, G_TYPE_OBJECT);
g_once_init_leave (&spit_publishing_publisher_type_id__volatile, spit_publishing_publisher_type_id);
}
return spit_publishing_publisher_type_id__volatile;
}
/**
* Describes how the on-screen publishing dialog box should look and behave when an associated
* pane is installed in the on-screen publishing dialog box.
*/
GType spit_publishing_dialog_pane_geometry_options_get_type (void) {
static volatile gsize spit_publishing_dialog_pane_geometry_options_type_id__volatile = 0;
if (g_once_init_enter (&spit_publishing_dialog_pane_geometry_options_type_id__volatile)) {
static const GEnumValue values[] = {{SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE, "SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE", "none"}, {SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_EXTENDED_SIZE, "SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_EXTENDED_SIZE", "extended-size"}, {SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_RESIZABLE, "SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_RESIZABLE", "resizable"}, {SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_COLOSSAL_SIZE, "SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_COLOSSAL_SIZE", "colossal-size"}, {0, NULL, NULL}};
GType spit_publishing_dialog_pane_geometry_options_type_id;
spit_publishing_dialog_pane_geometry_options_type_id = g_enum_register_static ("SpitPublishingDialogPaneGeometryOptions", values);
g_once_init_leave (&spit_publishing_dialog_pane_geometry_options_type_id__volatile, spit_publishing_dialog_pane_geometry_options_type_id);
}
return spit_publishing_dialog_pane_geometry_options_type_id__volatile;
}
/**
* Returns the Gtk.Widget that is this pane's on-screen representation.
*/
GtkWidget* spit_publishing_dialog_pane_get_widget (SpitPublishingDialogPane* self) {
#line 197 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_val_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self), NULL);
#line 197 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
return SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->get_widget (self);
#line 655 "PublishingInterfaces.c"
}
/**
* Returns a {@link GeometryOptions} bitfield describing how the on-screen publishing dialog
* box should look and behave when this pane is installed.
*/
SpitPublishingDialogPaneGeometryOptions spit_publishing_dialog_pane_get_preferred_geometry (SpitPublishingDialogPane* self) {
#line 203 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_val_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self), 0);
#line 203 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
return SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->get_preferred_geometry (self);
#line 668 "PublishingInterfaces.c"
}
/**
* Invoked automatically by Shotwell when this pane has been installed into the on-screen
* publishing dialog box and become visible to the user.
*/
void spit_publishing_dialog_pane_on_pane_installed (SpitPublishingDialogPane* self) {
#line 209 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self));
#line 209 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->on_pane_installed (self);
#line 681 "PublishingInterfaces.c"
}
/**
* Invoked automatically by Shotwell when this pane has been removed from the on-screen
* publishing dialog box and is no longer visible to the user.
*/
void spit_publishing_dialog_pane_on_pane_uninstalled (SpitPublishingDialogPane* self) {
#line 215 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self));
#line 215 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->on_pane_uninstalled (self);
#line 694 "PublishingInterfaces.c"
}
static void spit_publishing_dialog_pane_real_reserved0 (SpitPublishingDialogPane* self) {
}
void spit_publishing_dialog_pane_reserved0 (SpitPublishingDialogPane* self) {
#line 220 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self));
#line 220 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->reserved0 (self);
#line 707 "PublishingInterfaces.c"
}
static void spit_publishing_dialog_pane_real_reserved1 (SpitPublishingDialogPane* self) {
}
void spit_publishing_dialog_pane_reserved1 (SpitPublishingDialogPane* self) {
#line 221 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self));
#line 221 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->reserved1 (self);
#line 720 "PublishingInterfaces.c"
}
static void spit_publishing_dialog_pane_real_reserved2 (SpitPublishingDialogPane* self) {
}
void spit_publishing_dialog_pane_reserved2 (SpitPublishingDialogPane* self) {
#line 222 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self));
#line 222 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->reserved2 (self);
#line 733 "PublishingInterfaces.c"
}
static void spit_publishing_dialog_pane_real_reserved3 (SpitPublishingDialogPane* self) {
}
void spit_publishing_dialog_pane_reserved3 (SpitPublishingDialogPane* self) {
#line 223 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self));
#line 223 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->reserved3 (self);
#line 746 "PublishingInterfaces.c"
}
static void spit_publishing_dialog_pane_real_reserved4 (SpitPublishingDialogPane* self) {
}
void spit_publishing_dialog_pane_reserved4 (SpitPublishingDialogPane* self) {
#line 224 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self));
#line 224 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->reserved4 (self);
#line 759 "PublishingInterfaces.c"
}
static void spit_publishing_dialog_pane_real_reserved5 (SpitPublishingDialogPane* self) {
}
void spit_publishing_dialog_pane_reserved5 (SpitPublishingDialogPane* self) {
#line 225 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self));
#line 225 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->reserved5 (self);
#line 772 "PublishingInterfaces.c"
}
static void spit_publishing_dialog_pane_real_reserved6 (SpitPublishingDialogPane* self) {
}
void spit_publishing_dialog_pane_reserved6 (SpitPublishingDialogPane* self) {
#line 226 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self));
#line 226 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->reserved6 (self);
#line 785 "PublishingInterfaces.c"
}
static void spit_publishing_dialog_pane_real_reserved7 (SpitPublishingDialogPane* self) {
}
void spit_publishing_dialog_pane_reserved7 (SpitPublishingDialogPane* self) {
#line 227 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self));
#line 227 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->reserved7 (self);
#line 798 "PublishingInterfaces.c"
}
static void spit_publishing_dialog_pane_base_init (SpitPublishingDialogPaneIface * iface) {
#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
static gboolean initialized = FALSE;
#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
if (!initialized) {
#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
initialized = TRUE;
#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved0 = spit_publishing_dialog_pane_real_reserved0;
#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved1 = spit_publishing_dialog_pane_real_reserved1;
#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved2 = spit_publishing_dialog_pane_real_reserved2;
#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved3 = spit_publishing_dialog_pane_real_reserved3;
#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved4 = spit_publishing_dialog_pane_real_reserved4;
#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved5 = spit_publishing_dialog_pane_real_reserved5;
#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved6 = spit_publishing_dialog_pane_real_reserved6;
#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved7 = spit_publishing_dialog_pane_real_reserved7;
#line 825 "PublishingInterfaces.c"
}
}
/**
* Encapsulates a pane that can be installed in the on-screen publishing dialog box to
* communicate status to and to get information from the user.
*
*/
GType spit_publishing_dialog_pane_get_type (void) {
static volatile gsize spit_publishing_dialog_pane_type_id__volatile = 0;
if (g_once_init_enter (&spit_publishing_dialog_pane_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (SpitPublishingDialogPaneIface), (GBaseInitFunc) spit_publishing_dialog_pane_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
GType spit_publishing_dialog_pane_type_id;
spit_publishing_dialog_pane_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitPublishingDialogPane", &g_define_type_info, 0);
g_type_interface_add_prerequisite (spit_publishing_dialog_pane_type_id, G_TYPE_OBJECT);
g_once_init_leave (&spit_publishing_dialog_pane_type_id__volatile, spit_publishing_dialog_pane_type_id);
}
return spit_publishing_dialog_pane_type_id__volatile;
}
/**
* Specifies the label text on the push button control that appears in the
* lower-right-hand corner of the on-screen publishing dialog box.
*/
GType spit_publishing_plugin_host_button_mode_get_type (void) {
static volatile gsize spit_publishing_plugin_host_button_mode_type_id__volatile = 0;
if (g_once_init_enter (&spit_publishing_plugin_host_button_mode_type_id__volatile)) {
static const GEnumValue values[] = {{SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE, "SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE", "close"}, {SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL, "SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL", "cancel"}, {0, NULL, NULL}};
GType spit_publishing_plugin_host_button_mode_type_id;
spit_publishing_plugin_host_button_mode_type_id = g_enum_register_static ("SpitPublishingPluginHostButtonMode", values);
g_once_init_leave (&spit_publishing_plugin_host_button_mode_type_id__volatile, spit_publishing_plugin_host_button_mode_type_id);
}
return spit_publishing_plugin_host_button_mode_type_id__volatile;
}
/**
* Notifies the user that an unrecoverable publishing error has occurred and halts
* the publishing process.
*
* @param err An error object that describes the kind of error that occurred.
*/
void spit_publishing_plugin_host_post_error (SpitPublishingPluginHost* self, GError* err) {
#line 277 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
#line 277 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->post_error (self, err);
#line 875 "PublishingInterfaces.c"
}
/**
* Halts the publishing process.
*
* Calling this method stops all network activity and hides the on-screen publishing
* dialog box.
*/
void spit_publishing_plugin_host_stop_publishing (SpitPublishingPluginHost* self) {
#line 285 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
#line 285 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->stop_publishing (self);
#line 890 "PublishingInterfaces.c"
}
/**
* Returns a reference to the {@link Publisher} object that this is currently hosting.
*/
SpitPublishingPublisher* spit_publishing_plugin_host_get_publisher (SpitPublishingPluginHost* self) {
#line 290 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self), NULL);
#line 290 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
return SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->get_publisher (self);
#line 902 "PublishingInterfaces.c"
}
/**
* Attempts to install a pane in the on-screen publishing dialog box, making the pane visible
* and allowing it to interact with the user.
*
* If an error has posted, the {@link PluginHost} will not honor this request.
*
* @param pane the pane to install
*
* @param mode allows you to set the text displayed on the close/cancel button in the
* lower-right-hand corner of the on-screen publishing dialog box when pane is installed.
* If mode is ButtonMode.CLOSE, the button will have the title "Close." If mode is
* ButtonMode.CANCEL, the button will be titled "Cancel." You should set mode depending on
* whether a cancellable action is in progress. For example, if your publisher is in the
* middle of uploading 3 of 8 videos, then mode should be ButtonMode.CANCEL. However, if
* the publishing operation has completed and the success pane is displayed, then mode
* should be ButtonMode.CLOSE, because all cancellable publishing actions have already
* occurred.
*/
void spit_publishing_plugin_host_install_dialog_pane (SpitPublishingPluginHost* self, SpitPublishingDialogPane* pane, SpitPublishingPluginHostButtonMode mode) {
#line 310 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
#line 310 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->install_dialog_pane (self, pane, mode);
#line 929 "PublishingInterfaces.c"
}
/**
* Attempts to install a pane in the on-screen publishing dialog box that contains
* static text.
*
* The text appears centered in the publishing dialog box and is drawn in
* the system font. This is a convenience method only; similar results could be
* achieved by manually constructing a Gtk.Label widget, wrapping it inside a
* {@link DialogPane}, and installing it manually with a call to
* install_dialog_pane( ). To provide visual consistency across publishing services,
* however, always use this convenience method instead of constructing label panes when
* you need to display static text to the user.
*
* If an error has posted, the {@link PluginHost} will not honor this request.
*
* @param message the text to show in the pane
*
* @param mode allows you to set the text displayed on the close/cancel button in the
* lower-right-hand corner of the on-screen publishing dialog box when pane is installed.
* If mode is ButtonMode.CLOSE, the button will have the title "Close." If mode is
* ButtonMode.CANCEL, the button will be titled "Cancel." You should set mode depending on
* whether a cancellable action is in progress. For example, if your publisher is in the
* middle of uploading 3 of 8 videos, then mode should be ButtonMode.CANCEL. However, if
* the publishing operation has completed and the success pane is displayed, then mode
* should be ButtonMode.CLOSE, because all cancellable publishing actions have already
* occurred.
*/
void spit_publishing_plugin_host_install_static_message_pane (SpitPublishingPluginHost* self, const gchar* message, SpitPublishingPluginHostButtonMode mode) {
#line 339 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
#line 339 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->install_static_message_pane (self, message, mode);
#line 964 "PublishingInterfaces.c"
}
/**
* Works just like {@link install_static_message_pane} but allows markup to contain
* Pango text formatting tags as well as unstyled text.
*
* If an error has posted, the {@link PluginHost} will not honor this request.
*
* @param markup the text to show in the pane, marked up with Pango formatting tags.
*
* @param mode allows you to set the text displayed on the close/cancel button in the
* lower-right-hand corner of the on-screen publishing dialog box when pane is installed.
* If mode is ButtonMode.CLOSE, the button will have the title "Close." If mode is
* ButtonMode.CANCEL, the button will be titled "Cancel." You should set mode depending on
* whether a cancellable action is in progress. For example, if your publisher is in the
* middle of uploading 3 of 8 videos, then mode should be ButtonMode.CANCEL. However, if
* the publishing operation has completed and the success pane is displayed, then mode
* should be ButtonMode.CLOSE, because all cancellable publishing actions have already
* occurred.
*/
void spit_publishing_plugin_host_install_pango_message_pane (SpitPublishingPluginHost* self, const gchar* markup, SpitPublishingPluginHostButtonMode mode) {
#line 360 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
#line 360 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->install_pango_message_pane (self, markup, mode);
#line 991 "PublishingInterfaces.c"
}
/**
* Attempts to install a pane in the on-screen publishing dialog box notifying the user
* that his or her publishing operation completed successfully.
*
* The text displayed depends on the type of media the current publishing service
* supports. To provide visual consistency across publishing services and to allow
* Shotwell to handle internationalization, always use this convenience method; don’t
* contruct and install success panes manually.
*
* If an error has posted, the {@link PluginHost} will not honor
* this request.
*/
void spit_publishing_plugin_host_install_success_pane (SpitPublishingPluginHost* self) {
#line 375 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
#line 375 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->install_success_pane (self);
#line 1012 "PublishingInterfaces.c"
}
/**
* Attempts to install a pane displaying the static text “Fetching account information...”
* in the on-screen publishing dialog box, making it visible to the user.
*
* This is a convenience method only; similar results could be achieved by calling
* {@link install_static_message_pane} with an appropriate text argument. To provide
* visual consistency across publishing services and to allow Shotwell to handle
* internationalization, however, you should always use this convenience method whenever
* you need to tell the user that you’re querying account information over the network.
* Queries such as this are almost always performed immediately after the user has logged
* in to the remote service.
*
* If an error has posted, the {@link PluginHost} will not honor this request.
*/
void spit_publishing_plugin_host_install_account_fetch_wait_pane (SpitPublishingPluginHost* self) {
#line 391 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
#line 391 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->install_account_fetch_wait_pane (self);
#line 1035 "PublishingInterfaces.c"
}
/**
* Works just like {@link install_account_fetch_wait_pane} but displays the static text
* “Logging in...“
*
* As with {@link install_account_fetch_wait_pane}, this is a convenience method, but
* you should you use it provide to visual consistency and to let Shotwell handle
* internationalization. See the description of {@link install_account_fetch_wait_pane}
* for more information.
*
* If an error has posted, the {@link PluginHost} will not honor this request.
*/
void spit_publishing_plugin_host_install_login_wait_pane (SpitPublishingPluginHost* self) {
#line 405 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
#line 405 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->install_login_wait_pane (self);
#line 1055 "PublishingInterfaces.c"
}
/**
* Attempts to install a pane displaying the text 'welcome_message' above a push
* button labeled “Login” in the on-screen publishing dialog box, making it visible to the
* user.
*
* When the user clicks the “Login” button, you’ll be notified of the user’s action through
* the callback 'on_login_clicked'. Every Publisher should provide a welcome pane to
* introduce the service and explain service-specific features or restrictions. To provide
* visual consistency across publishing services and to allow Shotwell to handle
* internationalization, always use this convenience method; don’t contruct and install
* welcome panes manually.
*
* If an error has posted, the {@link PluginHost} will not honor this request.
*
* @param welcome_message the text to be displayed above a push button labeled “Login”
* in the on-screen publishing dialog box.
*
* @param on_login_clicked specifies the callback that is invoked when the user clicks
* the “Login” button.
*/
void spit_publishing_plugin_host_install_welcome_pane (SpitPublishingPluginHost* self, const gchar* welcome_message, SpitPublishingLoginCallback on_login_clicked, void* on_login_clicked_target) {
#line 427 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
#line 427 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->install_welcome_pane (self, welcome_message, on_login_clicked, on_login_clicked_target);
#line 1084 "PublishingInterfaces.c"
}
/**
* Toggles whether the service selector combo box in the upper-right-hand corner of the
* on-screen publishing dialog box is sensitive to input.
*
* Publishers should make the service selector box insensitive to input when they are performing
* non-interruptible file or network operations, since switching to another publishing
* service will halt whatever service is currently running. Under certain circumstances,
* the {@link PluginHost} may not honor this request.
*
* @param is_locked when is_locked is true, the service selector combo box is made insensitive.
* It appears greyed out and the user is prevented from switching to another publishing service.
* When is_locked is false, the combo box is sensitive, allowing the user to freely switch
* from the current service to another service.
*/
void spit_publishing_plugin_host_set_service_locked (SpitPublishingPluginHost* self, gboolean is_locked) {
#line 444 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
#line 444 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->set_service_locked (self, is_locked);
#line 1107 "PublishingInterfaces.c"
}
/**
* Makes the designated widget the default widget for the publishing dialog.
*
* After a call to this method, the designated widget will be activated whenever the user
* presses the [ENTER] key anywhere in the on-screen publishing dialog box. Under certain
* circumstances, the {@link PluginHost} may not honor this request.
*
* @param widget a reference to the widget to designate as the default widget for the
* publishing dialog.
*/
void spit_publishing_plugin_host_set_dialog_default_widget (SpitPublishingPluginHost* self, GtkWidget* widget) {
#line 456 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
#line 456 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->set_dialog_default_widget (self, widget);
#line 1126 "PublishingInterfaces.c"
}
/**
* Returns an array of the publishable media items that the user has selected for upload to the
* remote service.
*/
SpitPublishingPublishable** spit_publishing_plugin_host_get_publishables (SpitPublishingPluginHost* self, int* result_length1) {
#line 462 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self), NULL);
#line 462 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
return SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->get_publishables (self, result_length1);
#line 1139 "PublishingInterfaces.c"
}
/**
* Writes all of the publishable media items that the user has selected for upload to the
* remote service to a temporary directory on a local disk.
*
* You should call this method immediately before sending the publishable media items to the
* remote service over the network. Because serializing several megabytes of data is a
* potentially lengthy operation, calling this method installs an activity status pane in
* the on-screen publishing dialog box. The activity status pane displays a progress bar along
* with a string of informational text.
*
* Because sending items over the network to the remote service is also a potentially lengthy
* operation, you should leave the activity status pane installed in the on-screen publishing
* dialog box until this task is finished. Periodically during the sending process, you should
* report to the user on the progress of his or her upload. You can do this by invoking the
* returned {@link ProgressCallback} delegate.
*
* After calling this method, the activity status pane that this method installs remains
* displayed in the on-screen publishing dialog box until you install a new pane.
*
* @param content_major_axis when serializing publishable media items that are photos,
* ensure that neither the width nor the height of the serialized
* photo is greater than content_major_axis pixels. The value of
* this parameter has no effect on video publishables.
*
* @param strip_metadata when serializing publishable media items that are photos, if
* strip_metadata is true, all EXIF, IPTC, and XMP metadata will be
* removed from the serialized file. If strip_metadata is false, all
* metadata will be left intact. The value of this parameter has no
* effect on video publishables.
*/
SpitPublishingProgressCallback spit_publishing_plugin_host_serialize_publishables (SpitPublishingPluginHost* self, gint content_major_axis, gboolean strip_metadata, void** result_target, GDestroyNotify* result_target_destroy_notify) {
#line 494 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self), NULL);
#line 494 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
return SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->serialize_publishables (self, content_major_axis, strip_metadata, result_target, result_target_destroy_notify);
#line 1178 "PublishingInterfaces.c"
}
/**
* Returns a {@link Publisher.MediaType} bitfield describing which kinds of media are present
* in the set of publishable media items that the user has selected for upload to the remote
* service.
*/
SpitPublishingPublisherMediaType spit_publishing_plugin_host_get_publishable_media_type (SpitPublishingPluginHost* self) {
#line 502 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self), 0);
#line 502 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
return SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->get_publishable_media_type (self);
#line 1192 "PublishingInterfaces.c"
}
static void spit_publishing_plugin_host_real_reserved0 (SpitPublishingPluginHost* self) {
}
void spit_publishing_plugin_host_reserved0 (SpitPublishingPluginHost* self) {
#line 507 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
#line 507 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->reserved0 (self);
#line 1205 "PublishingInterfaces.c"
}
static void spit_publishing_plugin_host_real_reserved1 (SpitPublishingPluginHost* self) {
}
void spit_publishing_plugin_host_reserved1 (SpitPublishingPluginHost* self) {
#line 508 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
#line 508 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->reserved1 (self);
#line 1218 "PublishingInterfaces.c"
}
static void spit_publishing_plugin_host_real_reserved2 (SpitPublishingPluginHost* self) {
}
void spit_publishing_plugin_host_reserved2 (SpitPublishingPluginHost* self) {
#line 509 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
#line 509 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->reserved2 (self);
#line 1231 "PublishingInterfaces.c"
}
static void spit_publishing_plugin_host_real_reserved3 (SpitPublishingPluginHost* self) {
}
void spit_publishing_plugin_host_reserved3 (SpitPublishingPluginHost* self) {
#line 510 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
#line 510 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->reserved3 (self);
#line 1244 "PublishingInterfaces.c"
}
static void spit_publishing_plugin_host_real_reserved4 (SpitPublishingPluginHost* self) {
}
void spit_publishing_plugin_host_reserved4 (SpitPublishingPluginHost* self) {
#line 511 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
#line 511 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->reserved4 (self);
#line 1257 "PublishingInterfaces.c"
}
static void spit_publishing_plugin_host_real_reserved5 (SpitPublishingPluginHost* self) {
}
void spit_publishing_plugin_host_reserved5 (SpitPublishingPluginHost* self) {
#line 512 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
#line 512 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->reserved5 (self);
#line 1270 "PublishingInterfaces.c"
}
static void spit_publishing_plugin_host_real_reserved6 (SpitPublishingPluginHost* self) {
}
void spit_publishing_plugin_host_reserved6 (SpitPublishingPluginHost* self) {
#line 513 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
#line 513 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->reserved6 (self);
#line 1283 "PublishingInterfaces.c"
}
static void spit_publishing_plugin_host_real_reserved7 (SpitPublishingPluginHost* self) {
}
void spit_publishing_plugin_host_reserved7 (SpitPublishingPluginHost* self) {
#line 514 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self));
#line 514 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->reserved7 (self);
#line 1296 "PublishingInterfaces.c"
}
static void spit_publishing_plugin_host_base_init (SpitPublishingPluginHostIface * iface) {
#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
static gboolean initialized = FALSE;
#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
if (!initialized) {
#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
initialized = TRUE;
#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved0 = spit_publishing_plugin_host_real_reserved0;
#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved1 = spit_publishing_plugin_host_real_reserved1;
#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved2 = spit_publishing_plugin_host_real_reserved2;
#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved3 = spit_publishing_plugin_host_real_reserved3;
#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved4 = spit_publishing_plugin_host_real_reserved4;
#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved5 = spit_publishing_plugin_host_real_reserved5;
#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved6 = spit_publishing_plugin_host_real_reserved6;
#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved7 = spit_publishing_plugin_host_real_reserved7;
#line 1323 "PublishingInterfaces.c"
}
}
/**
* Manages and provides services for publishing plugins.
*
* Implemented inside Shotwell, the PluginHost provides an interface through which the
* developers of publishing plugins can query and make changes to the publishing
* environment. For example, through the PluginHost, plugins can get a list of the photos
* and videos to be published, install and remove user-interface panes in the publishing
* dialog box, and request that the items to be uploaded be serialized to a temporary
* directory on disk. Plugins can use the services of the PluginHost only when their
* {@link Publisher} is in the running state. This ensures that non-running publishers
* don’t destructively interfere with the actively running publisher.
*/
GType spit_publishing_plugin_host_get_type (void) {
static volatile gsize spit_publishing_plugin_host_type_id__volatile = 0;
if (g_once_init_enter (&spit_publishing_plugin_host_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (SpitPublishingPluginHostIface), (GBaseInitFunc) spit_publishing_plugin_host_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
GType spit_publishing_plugin_host_type_id;
spit_publishing_plugin_host_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitPublishingPluginHost", &g_define_type_info, 0);
g_type_interface_add_prerequisite (spit_publishing_plugin_host_type_id, G_TYPE_OBJECT);
g_type_interface_add_prerequisite (spit_publishing_plugin_host_type_id, SPIT_TYPE_HOST_INTERFACE);
g_once_init_leave (&spit_publishing_plugin_host_type_id__volatile, spit_publishing_plugin_host_type_id);
}
return spit_publishing_plugin_host_type_id__volatile;
}
/**
* Returns a handle to the file on disk to which this publishable's data has been
* serialized.
*
* You should use this file handle to read into memory the binary data you will send over
* the network to the remote publishing service when this publishable is uploaded.
*/
GFile* spit_publishing_publishable_get_serialized_file (SpitPublishingPublishable* self) {
#line 535 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self), NULL);
#line 535 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
return SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->get_serialized_file (self);
#line 1366 "PublishingInterfaces.c"
}
/**
* Returns a name that can be used to identify this publishable to the remote service.
* If the publishing host cannot derive a sensible name, this method will
* return an empty string. Plugins should be able to handle that situation
* and provide a fallback value. One possible option for a fallback is:
* get_param_string(Spit.Publishing.Publishable.PARAM_STRING_BASENAME)
*/
gchar* spit_publishing_publishable_get_publishing_name (SpitPublishingPublishable* self) {
#line 544 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self), NULL);
#line 544 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
return SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->get_publishing_name (self);
#line 1382 "PublishingInterfaces.c"
}
/**
* Returns a string value from the publishable corresponding with the parameter name
* provided, or null if there is no value for this name.
*/
gchar* spit_publishing_publishable_get_param_string (SpitPublishingPublishable* self, const gchar* name) {
#line 550 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self), NULL);
#line 550 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
return SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->get_param_string (self, name);
#line 1395 "PublishingInterfaces.c"
}
/**
* Returns an array of strings that should be used to tag or mark this publishable on the
* remote service, or null if this publishable has no tags or markings.
*/
gchar** spit_publishing_publishable_get_publishing_keywords (SpitPublishingPublishable* self, int* result_length1) {
#line 556 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self), NULL);
#line 556 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
return SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->get_publishing_keywords (self, result_length1);
#line 1408 "PublishingInterfaces.c"
}
/**
* Returns the kind of media item this publishable encapsulates.
*/
SpitPublishingPublisherMediaType spit_publishing_publishable_get_media_type (SpitPublishingPublishable* self) {
#line 561 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self), 0);
#line 561 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
return SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->get_media_type (self);
#line 1420 "PublishingInterfaces.c"
}
/**
* Returns the creation timestamp on the file.
*/
GDateTime* spit_publishing_publishable_get_exposure_date_time (SpitPublishingPublishable* self) {
#line 566 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self), NULL);
#line 566 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
return SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->get_exposure_date_time (self);
#line 1432 "PublishingInterfaces.c"
}
static void spit_publishing_publishable_real_reserved0 (SpitPublishingPublishable* self) {
}
void spit_publishing_publishable_reserved0 (SpitPublishingPublishable* self) {
#line 571 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self));
#line 571 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->reserved0 (self);
#line 1445 "PublishingInterfaces.c"
}
static void spit_publishing_publishable_real_reserved1 (SpitPublishingPublishable* self) {
}
void spit_publishing_publishable_reserved1 (SpitPublishingPublishable* self) {
#line 572 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self));
#line 572 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->reserved1 (self);
#line 1458 "PublishingInterfaces.c"
}
static void spit_publishing_publishable_real_reserved2 (SpitPublishingPublishable* self) {
}
void spit_publishing_publishable_reserved2 (SpitPublishingPublishable* self) {
#line 573 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self));
#line 573 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->reserved2 (self);
#line 1471 "PublishingInterfaces.c"
}
static void spit_publishing_publishable_real_reserved3 (SpitPublishingPublishable* self) {
}
void spit_publishing_publishable_reserved3 (SpitPublishingPublishable* self) {
#line 574 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self));
#line 574 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->reserved3 (self);
#line 1484 "PublishingInterfaces.c"
}
static void spit_publishing_publishable_real_reserved4 (SpitPublishingPublishable* self) {
}
void spit_publishing_publishable_reserved4 (SpitPublishingPublishable* self) {
#line 575 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self));
#line 575 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->reserved4 (self);
#line 1497 "PublishingInterfaces.c"
}
static void spit_publishing_publishable_real_reserved5 (SpitPublishingPublishable* self) {
}
void spit_publishing_publishable_reserved5 (SpitPublishingPublishable* self) {
#line 576 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self));
#line 576 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->reserved5 (self);
#line 1510 "PublishingInterfaces.c"
}
static void spit_publishing_publishable_real_reserved6 (SpitPublishingPublishable* self) {
}
void spit_publishing_publishable_reserved6 (SpitPublishingPublishable* self) {
#line 577 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self));
#line 577 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->reserved6 (self);
#line 1523 "PublishingInterfaces.c"
}
static void spit_publishing_publishable_real_reserved7 (SpitPublishingPublishable* self) {
}
void spit_publishing_publishable_reserved7 (SpitPublishingPublishable* self) {
#line 578 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self));
#line 578 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->reserved7 (self);
#line 1536 "PublishingInterfaces.c"
}
static void spit_publishing_publishable_base_init (SpitPublishingPublishableIface * iface) {
#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
static gboolean initialized = FALSE;
#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
if (!initialized) {
#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
initialized = TRUE;
#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved0 = spit_publishing_publishable_real_reserved0;
#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved1 = spit_publishing_publishable_real_reserved1;
#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved2 = spit_publishing_publishable_real_reserved2;
#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved3 = spit_publishing_publishable_real_reserved3;
#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved4 = spit_publishing_publishable_real_reserved4;
#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved5 = spit_publishing_publishable_real_reserved5;
#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved6 = spit_publishing_publishable_real_reserved6;
#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved7 = spit_publishing_publishable_real_reserved7;
#line 1563 "PublishingInterfaces.c"
}
}
/**
* Describes an underlying media item (such as a photo or a video) that your plugin
* uploads to a remote publishing service.
*/
GType spit_publishing_publishable_get_type (void) {
static volatile gsize spit_publishing_publishable_type_id__volatile = 0;
if (g_once_init_enter (&spit_publishing_publishable_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (SpitPublishingPublishableIface), (GBaseInitFunc) spit_publishing_publishable_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
GType spit_publishing_publishable_type_id;
spit_publishing_publishable_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitPublishingPublishable", &g_define_type_info, 0);
g_type_interface_add_prerequisite (spit_publishing_publishable_type_id, G_TYPE_OBJECT);
g_once_init_leave (&spit_publishing_publishable_type_id__volatile, spit_publishing_publishable_type_id);
}
return spit_publishing_publishable_type_id__volatile;
}
/**
* A factory method that instantiates and returns a new {@link Publisher} object that
* encapsulates a connection to the remote publishing service that this Service describes.
*/
SpitPublishingPublisher* spit_publishing_service_create_publisher (SpitPublishingService* self, SpitPublishingPluginHost* host) {
#line 591 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (self), NULL);
#line 591 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
return SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->create_publisher (self, host);
#line 1594 "PublishingInterfaces.c"
}
/**
* Returns the kinds of media that this service can work with.
*/
SpitPublishingPublisherMediaType spit_publishing_service_get_supported_media (SpitPublishingService* self) {
#line 596 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (self), 0);
#line 596 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
return SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->get_supported_media (self);
#line 1606 "PublishingInterfaces.c"
}
static void spit_publishing_service_real_reserved0 (SpitPublishingService* self) {
}
void spit_publishing_service_reserved0 (SpitPublishingService* self) {
#line 601 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_SERVICE (self));
#line 601 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->reserved0 (self);
#line 1619 "PublishingInterfaces.c"
}
static void spit_publishing_service_real_reserved1 (SpitPublishingService* self) {
}
void spit_publishing_service_reserved1 (SpitPublishingService* self) {
#line 602 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_SERVICE (self));
#line 602 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->reserved1 (self);
#line 1632 "PublishingInterfaces.c"
}
static void spit_publishing_service_real_reserved2 (SpitPublishingService* self) {
}
void spit_publishing_service_reserved2 (SpitPublishingService* self) {
#line 603 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_SERVICE (self));
#line 603 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->reserved2 (self);
#line 1645 "PublishingInterfaces.c"
}
static void spit_publishing_service_real_reserved3 (SpitPublishingService* self) {
}
void spit_publishing_service_reserved3 (SpitPublishingService* self) {
#line 604 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_SERVICE (self));
#line 604 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->reserved3 (self);
#line 1658 "PublishingInterfaces.c"
}
static void spit_publishing_service_real_reserved4 (SpitPublishingService* self) {
}
void spit_publishing_service_reserved4 (SpitPublishingService* self) {
#line 605 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_SERVICE (self));
#line 605 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->reserved4 (self);
#line 1671 "PublishingInterfaces.c"
}
static void spit_publishing_service_real_reserved5 (SpitPublishingService* self) {
}
void spit_publishing_service_reserved5 (SpitPublishingService* self) {
#line 606 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_SERVICE (self));
#line 606 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->reserved5 (self);
#line 1684 "PublishingInterfaces.c"
}
static void spit_publishing_service_real_reserved6 (SpitPublishingService* self) {
}
void spit_publishing_service_reserved6 (SpitPublishingService* self) {
#line 607 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_SERVICE (self));
#line 607 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->reserved6 (self);
#line 1697 "PublishingInterfaces.c"
}
static void spit_publishing_service_real_reserved7 (SpitPublishingService* self) {
}
void spit_publishing_service_reserved7 (SpitPublishingService* self) {
#line 608 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
g_return_if_fail (SPIT_PUBLISHING_IS_SERVICE (self));
#line 608 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->reserved7 (self);
#line 1710 "PublishingInterfaces.c"
}
static void spit_publishing_service_base_init (SpitPublishingServiceIface * iface) {
#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
static gboolean initialized = FALSE;
#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
if (!initialized) {
#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
initialized = TRUE;
#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved0 = spit_publishing_service_real_reserved0;
#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved1 = spit_publishing_service_real_reserved1;
#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved2 = spit_publishing_service_real_reserved2;
#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved3 = spit_publishing_service_real_reserved3;
#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved4 = spit_publishing_service_real_reserved4;
#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved5 = spit_publishing_service_real_reserved5;
#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved6 = spit_publishing_service_real_reserved6;
#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala"
iface->reserved7 = spit_publishing_service_real_reserved7;
#line 1737 "PublishingInterfaces.c"
}
}
/**
* Describes the features and capabilities of a remote publishing service.
*
* Developers of publishing plugins provide a class that implements this interface.
*/
GType spit_publishing_service_get_type (void) {
static volatile gsize spit_publishing_service_type_id__volatile = 0;
if (g_once_init_enter (&spit_publishing_service_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (SpitPublishingServiceIface), (GBaseInitFunc) spit_publishing_service_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
GType spit_publishing_service_type_id;
spit_publishing_service_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitPublishingService", &g_define_type_info, 0);
g_type_interface_add_prerequisite (spit_publishing_service_type_id, G_TYPE_OBJECT);
g_type_interface_add_prerequisite (spit_publishing_service_type_id, SPIT_TYPE_PLUGGABLE);
g_once_init_leave (&spit_publishing_service_type_id__volatile, spit_publishing_service_type_id);
}
return spit_publishing_service_type_id__volatile;
}
|