2
* Generated by gdbus-codegen 2.31.16. DO NOT EDIT.
4
* The license of this code is the same as for the source it was derived from.
11
#include "cups-notifier.h"
14
# include <gio/gunixfdlist.h>
19
GDBusArgInfo parent_struct;
20
gboolean use_gvariant;
21
} _ExtendedGDBusArgInfo;
25
GDBusMethodInfo parent_struct;
26
const gchar *signal_name;
28
} _ExtendedGDBusMethodInfo;
32
GDBusSignalInfo parent_struct;
33
const gchar *signal_name;
34
} _ExtendedGDBusSignalInfo;
38
GDBusPropertyInfo parent_struct;
39
const gchar *hyphen_name;
40
gboolean use_gvariant;
41
} _ExtendedGDBusPropertyInfo;
45
GDBusInterfaceInfo parent_struct;
46
const gchar *hyphen_name;
47
} _ExtendedGDBusInterfaceInfo;
51
const _ExtendedGDBusPropertyInfo *info;
53
GValue orig_value; /* the value before the change */
57
_changed_property_free (ChangedProperty *data)
59
g_value_unset (&data->orig_value);
64
_g_strv_equal0 (gchar **a, gchar **b)
68
if (a == NULL && b == NULL)
73
if (a == NULL || b == NULL)
75
if (g_strv_length (a) != g_strv_length (b))
77
for (n = 0; a[n] != NULL; n++)
78
if (g_strcmp0 (a[n], b[n]) != 0)
86
_g_variant_equal0 (GVariant *a, GVariant *b)
89
if (a == NULL && b == NULL)
94
if (a == NULL || b == NULL)
96
ret = g_variant_equal (a, b);
101
G_GNUC_UNUSED static gboolean
102
_g_value_equal (const GValue *a, const GValue *b)
104
gboolean ret = FALSE;
105
g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b));
106
switch (G_VALUE_TYPE (a))
109
ret = (g_value_get_boolean (a) == g_value_get_boolean (b));
112
ret = (g_value_get_uchar (a) == g_value_get_uchar (b));
115
ret = (g_value_get_int (a) == g_value_get_int (b));
118
ret = (g_value_get_uint (a) == g_value_get_uint (b));
121
ret = (g_value_get_int64 (a) == g_value_get_int64 (b));
124
ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b));
127
ret = (g_value_get_double (a) == g_value_get_double (b));
130
ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0);
133
ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b));
136
if (G_VALUE_TYPE (a) == G_TYPE_STRV)
137
ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b));
139
g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a)));
145
/* ------------------------------------------------------------------------
146
* Code for interface org.cups.cupsd.Notifier
147
* ------------------------------------------------------------------------
151
* SECTION:CupsNotifier
152
* @title: CupsNotifier
153
* @short_description: Generated C code for the org.cups.cupsd.Notifier D-Bus interface
155
* This section contains code for working with the <link linkend="gdbus-interface-org-cups-cupsd-Notifier.top_of_page">org.cups.cupsd.Notifier</link> D-Bus interface in C.
158
/* ---- Introspection data for org.cups.cupsd.Notifier ---- */
160
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_server_started_ARG_text =
171
static const _ExtendedGDBusArgInfo * const _cups_notifier_signal_info_server_started_ARG_pointers[] =
173
&_cups_notifier_signal_info_server_started_ARG_text,
177
static const _ExtendedGDBusSignalInfo _cups_notifier_signal_info_server_started =
182
(GDBusArgInfo **) &_cups_notifier_signal_info_server_started_ARG_pointers,
188
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_server_restarted_ARG_text =
199
static const _ExtendedGDBusArgInfo * const _cups_notifier_signal_info_server_restarted_ARG_pointers[] =
201
&_cups_notifier_signal_info_server_restarted_ARG_text,
205
static const _ExtendedGDBusSignalInfo _cups_notifier_signal_info_server_restarted =
210
(GDBusArgInfo **) &_cups_notifier_signal_info_server_restarted_ARG_pointers,
216
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_server_stopped_ARG_text =
227
static const _ExtendedGDBusArgInfo * const _cups_notifier_signal_info_server_stopped_ARG_pointers[] =
229
&_cups_notifier_signal_info_server_stopped_ARG_text,
233
static const _ExtendedGDBusSignalInfo _cups_notifier_signal_info_server_stopped =
238
(GDBusArgInfo **) &_cups_notifier_signal_info_server_stopped_ARG_pointers,
244
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_server_audit_ARG_text =
255
static const _ExtendedGDBusArgInfo * const _cups_notifier_signal_info_server_audit_ARG_pointers[] =
257
&_cups_notifier_signal_info_server_audit_ARG_text,
261
static const _ExtendedGDBusSignalInfo _cups_notifier_signal_info_server_audit =
266
(GDBusArgInfo **) &_cups_notifier_signal_info_server_audit_ARG_pointers,
272
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_added_ARG_text =
283
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_added_ARG_printer_uri =
294
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_added_ARG_printer_name =
305
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_added_ARG_printer_state =
316
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_added_ARG_printer_state_reasons =
320
"printer_state_reasons",
327
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_added_ARG_printer_is_accepting_jobs =
331
"printer_is_accepting_jobs",
338
static const _ExtendedGDBusArgInfo * const _cups_notifier_signal_info_printer_added_ARG_pointers[] =
340
&_cups_notifier_signal_info_printer_added_ARG_text,
341
&_cups_notifier_signal_info_printer_added_ARG_printer_uri,
342
&_cups_notifier_signal_info_printer_added_ARG_printer_name,
343
&_cups_notifier_signal_info_printer_added_ARG_printer_state,
344
&_cups_notifier_signal_info_printer_added_ARG_printer_state_reasons,
345
&_cups_notifier_signal_info_printer_added_ARG_printer_is_accepting_jobs,
349
static const _ExtendedGDBusSignalInfo _cups_notifier_signal_info_printer_added =
354
(GDBusArgInfo **) &_cups_notifier_signal_info_printer_added_ARG_pointers,
360
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_deleted_ARG_text =
371
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_deleted_ARG_printer_uri =
382
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_deleted_ARG_printer_name =
393
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_deleted_ARG_printer_state =
404
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_deleted_ARG_printer_state_reasons =
408
"printer_state_reasons",
415
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_deleted_ARG_printer_is_accepting_jobs =
419
"printer_is_accepting_jobs",
426
static const _ExtendedGDBusArgInfo * const _cups_notifier_signal_info_printer_deleted_ARG_pointers[] =
428
&_cups_notifier_signal_info_printer_deleted_ARG_text,
429
&_cups_notifier_signal_info_printer_deleted_ARG_printer_uri,
430
&_cups_notifier_signal_info_printer_deleted_ARG_printer_name,
431
&_cups_notifier_signal_info_printer_deleted_ARG_printer_state,
432
&_cups_notifier_signal_info_printer_deleted_ARG_printer_state_reasons,
433
&_cups_notifier_signal_info_printer_deleted_ARG_printer_is_accepting_jobs,
437
static const _ExtendedGDBusSignalInfo _cups_notifier_signal_info_printer_deleted =
442
(GDBusArgInfo **) &_cups_notifier_signal_info_printer_deleted_ARG_pointers,
448
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_modified_ARG_text =
459
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_modified_ARG_printer_uri =
470
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_modified_ARG_printer_name =
481
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_modified_ARG_printer_state =
492
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_modified_ARG_printer_state_reasons =
496
"printer_state_reasons",
503
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_modified_ARG_printer_is_accepting_jobs =
507
"printer_is_accepting_jobs",
514
static const _ExtendedGDBusArgInfo * const _cups_notifier_signal_info_printer_modified_ARG_pointers[] =
516
&_cups_notifier_signal_info_printer_modified_ARG_text,
517
&_cups_notifier_signal_info_printer_modified_ARG_printer_uri,
518
&_cups_notifier_signal_info_printer_modified_ARG_printer_name,
519
&_cups_notifier_signal_info_printer_modified_ARG_printer_state,
520
&_cups_notifier_signal_info_printer_modified_ARG_printer_state_reasons,
521
&_cups_notifier_signal_info_printer_modified_ARG_printer_is_accepting_jobs,
525
static const _ExtendedGDBusSignalInfo _cups_notifier_signal_info_printer_modified =
530
(GDBusArgInfo **) &_cups_notifier_signal_info_printer_modified_ARG_pointers,
536
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_restarted_ARG_text =
547
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_restarted_ARG_printer_uri =
558
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_restarted_ARG_printer_name =
569
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_restarted_ARG_printer_state =
580
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_restarted_ARG_printer_state_reasons =
584
"printer_state_reasons",
591
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_restarted_ARG_printer_is_accepting_jobs =
595
"printer_is_accepting_jobs",
602
static const _ExtendedGDBusArgInfo * const _cups_notifier_signal_info_printer_restarted_ARG_pointers[] =
604
&_cups_notifier_signal_info_printer_restarted_ARG_text,
605
&_cups_notifier_signal_info_printer_restarted_ARG_printer_uri,
606
&_cups_notifier_signal_info_printer_restarted_ARG_printer_name,
607
&_cups_notifier_signal_info_printer_restarted_ARG_printer_state,
608
&_cups_notifier_signal_info_printer_restarted_ARG_printer_state_reasons,
609
&_cups_notifier_signal_info_printer_restarted_ARG_printer_is_accepting_jobs,
613
static const _ExtendedGDBusSignalInfo _cups_notifier_signal_info_printer_restarted =
618
(GDBusArgInfo **) &_cups_notifier_signal_info_printer_restarted_ARG_pointers,
624
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_stopped_ARG_text =
635
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_stopped_ARG_printer_uri =
646
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_stopped_ARG_printer_name =
657
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_stopped_ARG_printer_state =
668
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_stopped_ARG_printer_state_reasons =
672
"printer_state_reasons",
679
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_stopped_ARG_printer_is_accepting_jobs =
683
"printer_is_accepting_jobs",
690
static const _ExtendedGDBusArgInfo * const _cups_notifier_signal_info_printer_stopped_ARG_pointers[] =
692
&_cups_notifier_signal_info_printer_stopped_ARG_text,
693
&_cups_notifier_signal_info_printer_stopped_ARG_printer_uri,
694
&_cups_notifier_signal_info_printer_stopped_ARG_printer_name,
695
&_cups_notifier_signal_info_printer_stopped_ARG_printer_state,
696
&_cups_notifier_signal_info_printer_stopped_ARG_printer_state_reasons,
697
&_cups_notifier_signal_info_printer_stopped_ARG_printer_is_accepting_jobs,
701
static const _ExtendedGDBusSignalInfo _cups_notifier_signal_info_printer_stopped =
706
(GDBusArgInfo **) &_cups_notifier_signal_info_printer_stopped_ARG_pointers,
712
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_shutdown_ARG_text =
723
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_shutdown_ARG_printer_uri =
734
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_shutdown_ARG_printer_name =
745
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_shutdown_ARG_printer_state =
756
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_shutdown_ARG_printer_state_reasons =
760
"printer_state_reasons",
767
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_shutdown_ARG_printer_is_accepting_jobs =
771
"printer_is_accepting_jobs",
778
static const _ExtendedGDBusArgInfo * const _cups_notifier_signal_info_printer_shutdown_ARG_pointers[] =
780
&_cups_notifier_signal_info_printer_shutdown_ARG_text,
781
&_cups_notifier_signal_info_printer_shutdown_ARG_printer_uri,
782
&_cups_notifier_signal_info_printer_shutdown_ARG_printer_name,
783
&_cups_notifier_signal_info_printer_shutdown_ARG_printer_state,
784
&_cups_notifier_signal_info_printer_shutdown_ARG_printer_state_reasons,
785
&_cups_notifier_signal_info_printer_shutdown_ARG_printer_is_accepting_jobs,
789
static const _ExtendedGDBusSignalInfo _cups_notifier_signal_info_printer_shutdown =
794
(GDBusArgInfo **) &_cups_notifier_signal_info_printer_shutdown_ARG_pointers,
800
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_state_changed_ARG_text =
811
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_state_changed_ARG_printer_uri =
822
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_state_changed_ARG_printer_name =
833
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_state_changed_ARG_printer_state =
844
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_state_changed_ARG_printer_state_reasons =
848
"printer_state_reasons",
855
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_state_changed_ARG_printer_is_accepting_jobs =
859
"printer_is_accepting_jobs",
866
static const _ExtendedGDBusArgInfo * const _cups_notifier_signal_info_printer_state_changed_ARG_pointers[] =
868
&_cups_notifier_signal_info_printer_state_changed_ARG_text,
869
&_cups_notifier_signal_info_printer_state_changed_ARG_printer_uri,
870
&_cups_notifier_signal_info_printer_state_changed_ARG_printer_name,
871
&_cups_notifier_signal_info_printer_state_changed_ARG_printer_state,
872
&_cups_notifier_signal_info_printer_state_changed_ARG_printer_state_reasons,
873
&_cups_notifier_signal_info_printer_state_changed_ARG_printer_is_accepting_jobs,
877
static const _ExtendedGDBusSignalInfo _cups_notifier_signal_info_printer_state_changed =
881
"PrinterStateChanged",
882
(GDBusArgInfo **) &_cups_notifier_signal_info_printer_state_changed_ARG_pointers,
885
"printer-state-changed"
888
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_finishings_changed_ARG_text =
899
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_finishings_changed_ARG_printer_uri =
910
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_finishings_changed_ARG_printer_name =
921
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_finishings_changed_ARG_printer_state =
932
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_finishings_changed_ARG_printer_state_reasons =
936
"printer_state_reasons",
943
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_finishings_changed_ARG_printer_is_accepting_jobs =
947
"printer_is_accepting_jobs",
954
static const _ExtendedGDBusArgInfo * const _cups_notifier_signal_info_printer_finishings_changed_ARG_pointers[] =
956
&_cups_notifier_signal_info_printer_finishings_changed_ARG_text,
957
&_cups_notifier_signal_info_printer_finishings_changed_ARG_printer_uri,
958
&_cups_notifier_signal_info_printer_finishings_changed_ARG_printer_name,
959
&_cups_notifier_signal_info_printer_finishings_changed_ARG_printer_state,
960
&_cups_notifier_signal_info_printer_finishings_changed_ARG_printer_state_reasons,
961
&_cups_notifier_signal_info_printer_finishings_changed_ARG_printer_is_accepting_jobs,
965
static const _ExtendedGDBusSignalInfo _cups_notifier_signal_info_printer_finishings_changed =
969
"PrinterFinishingsChanged",
970
(GDBusArgInfo **) &_cups_notifier_signal_info_printer_finishings_changed_ARG_pointers,
973
"printer-finishings-changed"
976
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_media_changed_ARG_text =
987
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_media_changed_ARG_printer_uri =
998
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_media_changed_ARG_printer_name =
1009
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_media_changed_ARG_printer_state =
1020
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_media_changed_ARG_printer_state_reasons =
1024
"printer_state_reasons",
1031
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_media_changed_ARG_printer_is_accepting_jobs =
1035
"printer_is_accepting_jobs",
1042
static const _ExtendedGDBusArgInfo * const _cups_notifier_signal_info_printer_media_changed_ARG_pointers[] =
1044
&_cups_notifier_signal_info_printer_media_changed_ARG_text,
1045
&_cups_notifier_signal_info_printer_media_changed_ARG_printer_uri,
1046
&_cups_notifier_signal_info_printer_media_changed_ARG_printer_name,
1047
&_cups_notifier_signal_info_printer_media_changed_ARG_printer_state,
1048
&_cups_notifier_signal_info_printer_media_changed_ARG_printer_state_reasons,
1049
&_cups_notifier_signal_info_printer_media_changed_ARG_printer_is_accepting_jobs,
1053
static const _ExtendedGDBusSignalInfo _cups_notifier_signal_info_printer_media_changed =
1057
"PrinterMediaChanged",
1058
(GDBusArgInfo **) &_cups_notifier_signal_info_printer_media_changed_ARG_pointers,
1061
"printer-media-changed"
1064
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_created_ARG_text =
1075
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_created_ARG_printer_uri =
1086
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_created_ARG_printer_name =
1097
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_created_ARG_printer_state =
1108
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_created_ARG_printer_state_reasons =
1112
"printer_state_reasons",
1119
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_created_ARG_printer_is_accepting_jobs =
1123
"printer_is_accepting_jobs",
1130
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_created_ARG_job_id =
1141
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_created_ARG_job_state =
1152
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_created_ARG_job_state_reasons =
1156
"job_state_reasons",
1163
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_created_ARG_job_name =
1174
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_created_ARG_job_impressions_completed =
1178
"job_impressions_completed",
1185
static const _ExtendedGDBusArgInfo * const _cups_notifier_signal_info_job_created_ARG_pointers[] =
1187
&_cups_notifier_signal_info_job_created_ARG_text,
1188
&_cups_notifier_signal_info_job_created_ARG_printer_uri,
1189
&_cups_notifier_signal_info_job_created_ARG_printer_name,
1190
&_cups_notifier_signal_info_job_created_ARG_printer_state,
1191
&_cups_notifier_signal_info_job_created_ARG_printer_state_reasons,
1192
&_cups_notifier_signal_info_job_created_ARG_printer_is_accepting_jobs,
1193
&_cups_notifier_signal_info_job_created_ARG_job_id,
1194
&_cups_notifier_signal_info_job_created_ARG_job_state,
1195
&_cups_notifier_signal_info_job_created_ARG_job_state_reasons,
1196
&_cups_notifier_signal_info_job_created_ARG_job_name,
1197
&_cups_notifier_signal_info_job_created_ARG_job_impressions_completed,
1201
static const _ExtendedGDBusSignalInfo _cups_notifier_signal_info_job_created =
1206
(GDBusArgInfo **) &_cups_notifier_signal_info_job_created_ARG_pointers,
1212
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_completed_ARG_text =
1223
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_completed_ARG_printer_uri =
1234
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_completed_ARG_printer_name =
1245
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_completed_ARG_printer_state =
1256
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_completed_ARG_printer_state_reasons =
1260
"printer_state_reasons",
1267
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_completed_ARG_printer_is_accepting_jobs =
1271
"printer_is_accepting_jobs",
1278
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_completed_ARG_job_id =
1289
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_completed_ARG_job_state =
1300
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_completed_ARG_job_state_reasons =
1304
"job_state_reasons",
1311
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_completed_ARG_job_name =
1322
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_completed_ARG_job_impressions_completed =
1326
"job_impressions_completed",
1333
static const _ExtendedGDBusArgInfo * const _cups_notifier_signal_info_job_completed_ARG_pointers[] =
1335
&_cups_notifier_signal_info_job_completed_ARG_text,
1336
&_cups_notifier_signal_info_job_completed_ARG_printer_uri,
1337
&_cups_notifier_signal_info_job_completed_ARG_printer_name,
1338
&_cups_notifier_signal_info_job_completed_ARG_printer_state,
1339
&_cups_notifier_signal_info_job_completed_ARG_printer_state_reasons,
1340
&_cups_notifier_signal_info_job_completed_ARG_printer_is_accepting_jobs,
1341
&_cups_notifier_signal_info_job_completed_ARG_job_id,
1342
&_cups_notifier_signal_info_job_completed_ARG_job_state,
1343
&_cups_notifier_signal_info_job_completed_ARG_job_state_reasons,
1344
&_cups_notifier_signal_info_job_completed_ARG_job_name,
1345
&_cups_notifier_signal_info_job_completed_ARG_job_impressions_completed,
1349
static const _ExtendedGDBusSignalInfo _cups_notifier_signal_info_job_completed =
1354
(GDBusArgInfo **) &_cups_notifier_signal_info_job_completed_ARG_pointers,
1360
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_state_ARG_text =
1371
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_state_ARG_printer_uri =
1382
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_state_ARG_printer_name =
1393
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_state_ARG_printer_state =
1404
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_state_ARG_printer_state_reasons =
1408
"printer_state_reasons",
1415
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_state_ARG_printer_is_accepting_jobs =
1419
"printer_is_accepting_jobs",
1426
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_state_ARG_job_id =
1437
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_state_ARG_job_state =
1448
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_state_ARG_job_state_reasons =
1452
"job_state_reasons",
1459
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_state_ARG_job_name =
1470
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_state_ARG_job_impressions_completed =
1474
"job_impressions_completed",
1481
static const _ExtendedGDBusArgInfo * const _cups_notifier_signal_info_job_state_ARG_pointers[] =
1483
&_cups_notifier_signal_info_job_state_ARG_text,
1484
&_cups_notifier_signal_info_job_state_ARG_printer_uri,
1485
&_cups_notifier_signal_info_job_state_ARG_printer_name,
1486
&_cups_notifier_signal_info_job_state_ARG_printer_state,
1487
&_cups_notifier_signal_info_job_state_ARG_printer_state_reasons,
1488
&_cups_notifier_signal_info_job_state_ARG_printer_is_accepting_jobs,
1489
&_cups_notifier_signal_info_job_state_ARG_job_id,
1490
&_cups_notifier_signal_info_job_state_ARG_job_state,
1491
&_cups_notifier_signal_info_job_state_ARG_job_state_reasons,
1492
&_cups_notifier_signal_info_job_state_ARG_job_name,
1493
&_cups_notifier_signal_info_job_state_ARG_job_impressions_completed,
1497
static const _ExtendedGDBusSignalInfo _cups_notifier_signal_info_job_state =
1502
(GDBusArgInfo **) &_cups_notifier_signal_info_job_state_ARG_pointers,
1508
static const _ExtendedGDBusSignalInfo * const _cups_notifier_signal_info_pointers[] =
1510
&_cups_notifier_signal_info_server_started,
1511
&_cups_notifier_signal_info_server_restarted,
1512
&_cups_notifier_signal_info_server_stopped,
1513
&_cups_notifier_signal_info_server_audit,
1514
&_cups_notifier_signal_info_printer_added,
1515
&_cups_notifier_signal_info_printer_deleted,
1516
&_cups_notifier_signal_info_printer_modified,
1517
&_cups_notifier_signal_info_printer_restarted,
1518
&_cups_notifier_signal_info_printer_stopped,
1519
&_cups_notifier_signal_info_printer_shutdown,
1520
&_cups_notifier_signal_info_printer_state_changed,
1521
&_cups_notifier_signal_info_printer_finishings_changed,
1522
&_cups_notifier_signal_info_printer_media_changed,
1523
&_cups_notifier_signal_info_job_created,
1524
&_cups_notifier_signal_info_job_completed,
1525
&_cups_notifier_signal_info_job_state,
1529
static const _ExtendedGDBusInterfaceInfo _cups_notifier_interface_info =
1533
"org.cups.cupsd.Notifier",
1535
(GDBusSignalInfo **) &_cups_notifier_signal_info_pointers,
1544
* cups_notifier_interface_info:
1546
* Gets a machine-readable description of the <link linkend="gdbus-interface-org-cups-cupsd-Notifier.top_of_page">org.cups.cupsd.Notifier</link> D-Bus interface.
1548
* Returns: (transfer none): A #GDBusInterfaceInfo. Do not free.
1550
GDBusInterfaceInfo *
1551
cups_notifier_interface_info (void)
1553
return (GDBusInterfaceInfo *) &_cups_notifier_interface_info;
1557
* cups_notifier_override_properties:
1558
* @klass: The class structure for a #GObject<!-- -->-derived class.
1559
* @property_id_begin: The property id to assign to the first overridden property.
1561
* Overrides all #GObject properties in the #CupsNotifier interface for a concrete class.
1562
* The properties are overridden in the order they are defined.
1564
* Returns: The last property id.
1567
cups_notifier_override_properties (GObjectClass *klass, guint property_id_begin)
1569
return property_id_begin - 1;
1577
* Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-cups-cupsd-Notifier.top_of_page">org.cups.cupsd.Notifier</link>.
1581
* CupsNotifierIface:
1582
* @parent_iface: The parent interface.
1583
* @job_completed: Handler for the #CupsNotifier::job-completed signal.
1584
* @job_created: Handler for the #CupsNotifier::job-created signal.
1585
* @job_state: Handler for the #CupsNotifier::job-state signal.
1586
* @printer_added: Handler for the #CupsNotifier::printer-added signal.
1587
* @printer_deleted: Handler for the #CupsNotifier::printer-deleted signal.
1588
* @printer_finishings_changed: Handler for the #CupsNotifier::printer-finishings-changed signal.
1589
* @printer_media_changed: Handler for the #CupsNotifier::printer-media-changed signal.
1590
* @printer_modified: Handler for the #CupsNotifier::printer-modified signal.
1591
* @printer_restarted: Handler for the #CupsNotifier::printer-restarted signal.
1592
* @printer_shutdown: Handler for the #CupsNotifier::printer-shutdown signal.
1593
* @printer_state_changed: Handler for the #CupsNotifier::printer-state-changed signal.
1594
* @printer_stopped: Handler for the #CupsNotifier::printer-stopped signal.
1595
* @server_audit: Handler for the #CupsNotifier::server-audit signal.
1596
* @server_restarted: Handler for the #CupsNotifier::server-restarted signal.
1597
* @server_started: Handler for the #CupsNotifier::server-started signal.
1598
* @server_stopped: Handler for the #CupsNotifier::server-stopped signal.
1600
* Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-cups-cupsd-Notifier.top_of_page">org.cups.cupsd.Notifier</link>.
1604
cups_notifier_default_init (CupsNotifierIface *iface)
1606
/* GObject signals for received D-Bus signals: */
1608
* CupsNotifier::server-started:
1609
* @object: A #CupsNotifier.
1610
* @arg_text: Argument.
1612
* On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-cups-cupsd-Notifier.ServerStarted">"ServerStarted"</link> is received.
1614
* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
1616
g_signal_new ("server-started",
1617
G_TYPE_FROM_INTERFACE (iface),
1619
G_STRUCT_OFFSET (CupsNotifierIface, server_started),
1622
g_cclosure_marshal_generic,
1627
* CupsNotifier::server-restarted:
1628
* @object: A #CupsNotifier.
1629
* @arg_text: Argument.
1631
* On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-cups-cupsd-Notifier.ServerRestarted">"ServerRestarted"</link> is received.
1633
* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
1635
g_signal_new ("server-restarted",
1636
G_TYPE_FROM_INTERFACE (iface),
1638
G_STRUCT_OFFSET (CupsNotifierIface, server_restarted),
1641
g_cclosure_marshal_generic,
1646
* CupsNotifier::server-stopped:
1647
* @object: A #CupsNotifier.
1648
* @arg_text: Argument.
1650
* On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-cups-cupsd-Notifier.ServerStopped">"ServerStopped"</link> is received.
1652
* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
1654
g_signal_new ("server-stopped",
1655
G_TYPE_FROM_INTERFACE (iface),
1657
G_STRUCT_OFFSET (CupsNotifierIface, server_stopped),
1660
g_cclosure_marshal_generic,
1665
* CupsNotifier::server-audit:
1666
* @object: A #CupsNotifier.
1667
* @arg_text: Argument.
1669
* On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-cups-cupsd-Notifier.ServerAudit">"ServerAudit"</link> is received.
1671
* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
1673
g_signal_new ("server-audit",
1674
G_TYPE_FROM_INTERFACE (iface),
1676
G_STRUCT_OFFSET (CupsNotifierIface, server_audit),
1679
g_cclosure_marshal_generic,
1684
* CupsNotifier::printer-added:
1685
* @object: A #CupsNotifier.
1686
* @arg_text: Argument.
1687
* @arg_printer_uri: Argument.
1688
* @arg_printer_name: Argument.
1689
* @arg_printer_state: Argument.
1690
* @arg_printer_state_reasons: Argument.
1691
* @arg_printer_is_accepting_jobs: Argument.
1693
* On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-cups-cupsd-Notifier.PrinterAdded">"PrinterAdded"</link> is received.
1695
* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
1697
g_signal_new ("printer-added",
1698
G_TYPE_FROM_INTERFACE (iface),
1700
G_STRUCT_OFFSET (CupsNotifierIface, printer_added),
1703
g_cclosure_marshal_generic,
1705
6, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_BOOLEAN);
1708
* CupsNotifier::printer-deleted:
1709
* @object: A #CupsNotifier.
1710
* @arg_text: Argument.
1711
* @arg_printer_uri: Argument.
1712
* @arg_printer_name: Argument.
1713
* @arg_printer_state: Argument.
1714
* @arg_printer_state_reasons: Argument.
1715
* @arg_printer_is_accepting_jobs: Argument.
1717
* On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-cups-cupsd-Notifier.PrinterDeleted">"PrinterDeleted"</link> is received.
1719
* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
1721
g_signal_new ("printer-deleted",
1722
G_TYPE_FROM_INTERFACE (iface),
1724
G_STRUCT_OFFSET (CupsNotifierIface, printer_deleted),
1727
g_cclosure_marshal_generic,
1729
6, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_BOOLEAN);
1732
* CupsNotifier::printer-modified:
1733
* @object: A #CupsNotifier.
1734
* @arg_text: Argument.
1735
* @arg_printer_uri: Argument.
1736
* @arg_printer_name: Argument.
1737
* @arg_printer_state: Argument.
1738
* @arg_printer_state_reasons: Argument.
1739
* @arg_printer_is_accepting_jobs: Argument.
1741
* On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-cups-cupsd-Notifier.PrinterModified">"PrinterModified"</link> is received.
1743
* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
1745
g_signal_new ("printer-modified",
1746
G_TYPE_FROM_INTERFACE (iface),
1748
G_STRUCT_OFFSET (CupsNotifierIface, printer_modified),
1751
g_cclosure_marshal_generic,
1753
6, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_BOOLEAN);
1756
* CupsNotifier::printer-restarted:
1757
* @object: A #CupsNotifier.
1758
* @arg_text: Argument.
1759
* @arg_printer_uri: Argument.
1760
* @arg_printer_name: Argument.
1761
* @arg_printer_state: Argument.
1762
* @arg_printer_state_reasons: Argument.
1763
* @arg_printer_is_accepting_jobs: Argument.
1765
* On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-cups-cupsd-Notifier.PrinterRestarted">"PrinterRestarted"</link> is received.
1767
* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
1769
g_signal_new ("printer-restarted",
1770
G_TYPE_FROM_INTERFACE (iface),
1772
G_STRUCT_OFFSET (CupsNotifierIface, printer_restarted),
1775
g_cclosure_marshal_generic,
1777
6, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_BOOLEAN);
1780
* CupsNotifier::printer-stopped:
1781
* @object: A #CupsNotifier.
1782
* @arg_text: Argument.
1783
* @arg_printer_uri: Argument.
1784
* @arg_printer_name: Argument.
1785
* @arg_printer_state: Argument.
1786
* @arg_printer_state_reasons: Argument.
1787
* @arg_printer_is_accepting_jobs: Argument.
1789
* On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-cups-cupsd-Notifier.PrinterStopped">"PrinterStopped"</link> is received.
1791
* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
1793
g_signal_new ("printer-stopped",
1794
G_TYPE_FROM_INTERFACE (iface),
1796
G_STRUCT_OFFSET (CupsNotifierIface, printer_stopped),
1799
g_cclosure_marshal_generic,
1801
6, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_BOOLEAN);
1804
* CupsNotifier::printer-shutdown:
1805
* @object: A #CupsNotifier.
1806
* @arg_text: Argument.
1807
* @arg_printer_uri: Argument.
1808
* @arg_printer_name: Argument.
1809
* @arg_printer_state: Argument.
1810
* @arg_printer_state_reasons: Argument.
1811
* @arg_printer_is_accepting_jobs: Argument.
1813
* On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-cups-cupsd-Notifier.PrinterShutdown">"PrinterShutdown"</link> is received.
1815
* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
1817
g_signal_new ("printer-shutdown",
1818
G_TYPE_FROM_INTERFACE (iface),
1820
G_STRUCT_OFFSET (CupsNotifierIface, printer_shutdown),
1823
g_cclosure_marshal_generic,
1825
6, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_BOOLEAN);
1828
* CupsNotifier::printer-state-changed:
1829
* @object: A #CupsNotifier.
1830
* @arg_text: Argument.
1831
* @arg_printer_uri: Argument.
1832
* @arg_printer_name: Argument.
1833
* @arg_printer_state: Argument.
1834
* @arg_printer_state_reasons: Argument.
1835
* @arg_printer_is_accepting_jobs: Argument.
1837
* On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-cups-cupsd-Notifier.PrinterStateChanged">"PrinterStateChanged"</link> is received.
1839
* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
1841
g_signal_new ("printer-state-changed",
1842
G_TYPE_FROM_INTERFACE (iface),
1844
G_STRUCT_OFFSET (CupsNotifierIface, printer_state_changed),
1847
g_cclosure_marshal_generic,
1849
6, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_BOOLEAN);
1852
* CupsNotifier::printer-finishings-changed:
1853
* @object: A #CupsNotifier.
1854
* @arg_text: Argument.
1855
* @arg_printer_uri: Argument.
1856
* @arg_printer_name: Argument.
1857
* @arg_printer_state: Argument.
1858
* @arg_printer_state_reasons: Argument.
1859
* @arg_printer_is_accepting_jobs: Argument.
1861
* On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-cups-cupsd-Notifier.PrinterFinishingsChanged">"PrinterFinishingsChanged"</link> is received.
1863
* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
1865
g_signal_new ("printer-finishings-changed",
1866
G_TYPE_FROM_INTERFACE (iface),
1868
G_STRUCT_OFFSET (CupsNotifierIface, printer_finishings_changed),
1871
g_cclosure_marshal_generic,
1873
6, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_BOOLEAN);
1876
* CupsNotifier::printer-media-changed:
1877
* @object: A #CupsNotifier.
1878
* @arg_text: Argument.
1879
* @arg_printer_uri: Argument.
1880
* @arg_printer_name: Argument.
1881
* @arg_printer_state: Argument.
1882
* @arg_printer_state_reasons: Argument.
1883
* @arg_printer_is_accepting_jobs: Argument.
1885
* On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-cups-cupsd-Notifier.PrinterMediaChanged">"PrinterMediaChanged"</link> is received.
1887
* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
1889
g_signal_new ("printer-media-changed",
1890
G_TYPE_FROM_INTERFACE (iface),
1892
G_STRUCT_OFFSET (CupsNotifierIface, printer_media_changed),
1895
g_cclosure_marshal_generic,
1897
6, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_BOOLEAN);
1900
* CupsNotifier::job-created:
1901
* @object: A #CupsNotifier.
1902
* @arg_text: Argument.
1903
* @arg_printer_uri: Argument.
1904
* @arg_printer_name: Argument.
1905
* @arg_printer_state: Argument.
1906
* @arg_printer_state_reasons: Argument.
1907
* @arg_printer_is_accepting_jobs: Argument.
1908
* @arg_job_id: Argument.
1909
* @arg_job_state: Argument.
1910
* @arg_job_state_reasons: Argument.
1911
* @arg_job_name: Argument.
1912
* @arg_job_impressions_completed: Argument.
1914
* On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-cups-cupsd-Notifier.JobCreated">"JobCreated"</link> is received.
1916
* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
1918
g_signal_new ("job-created",
1919
G_TYPE_FROM_INTERFACE (iface),
1921
G_STRUCT_OFFSET (CupsNotifierIface, job_created),
1924
g_cclosure_marshal_generic,
1926
11, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_BOOLEAN, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT);
1929
* CupsNotifier::job-completed:
1930
* @object: A #CupsNotifier.
1931
* @arg_text: Argument.
1932
* @arg_printer_uri: Argument.
1933
* @arg_printer_name: Argument.
1934
* @arg_printer_state: Argument.
1935
* @arg_printer_state_reasons: Argument.
1936
* @arg_printer_is_accepting_jobs: Argument.
1937
* @arg_job_id: Argument.
1938
* @arg_job_state: Argument.
1939
* @arg_job_state_reasons: Argument.
1940
* @arg_job_name: Argument.
1941
* @arg_job_impressions_completed: Argument.
1943
* On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-cups-cupsd-Notifier.JobCompleted">"JobCompleted"</link> is received.
1945
* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
1947
g_signal_new ("job-completed",
1948
G_TYPE_FROM_INTERFACE (iface),
1950
G_STRUCT_OFFSET (CupsNotifierIface, job_completed),
1953
g_cclosure_marshal_generic,
1955
11, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_BOOLEAN, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT);
1958
* CupsNotifier::job-state:
1959
* @object: A #CupsNotifier.
1960
* @arg_text: Argument.
1961
* @arg_printer_uri: Argument.
1962
* @arg_printer_name: Argument.
1963
* @arg_printer_state: Argument.
1964
* @arg_printer_state_reasons: Argument.
1965
* @arg_printer_is_accepting_jobs: Argument.
1966
* @arg_job_id: Argument.
1967
* @arg_job_state: Argument.
1968
* @arg_job_state_reasons: Argument.
1969
* @arg_job_name: Argument.
1970
* @arg_job_impressions_completed: Argument.
1972
* On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-cups-cupsd-Notifier.JobState">"JobState"</link> is received.
1974
* On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
1976
g_signal_new ("job-state",
1977
G_TYPE_FROM_INTERFACE (iface),
1979
G_STRUCT_OFFSET (CupsNotifierIface, job_state),
1982
g_cclosure_marshal_generic,
1984
11, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_BOOLEAN, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT);
1988
typedef CupsNotifierIface CupsNotifierInterface;
1989
G_DEFINE_INTERFACE (CupsNotifier, cups_notifier, G_TYPE_OBJECT);
1992
* cups_notifier_emit_server_started:
1993
* @object: A #CupsNotifier.
1994
* @arg_text: Argument to pass with the signal.
1996
* Emits the <link linkend="gdbus-signal-org-cups-cupsd-Notifier.ServerStarted">"ServerStarted"</link> D-Bus signal.
1999
cups_notifier_emit_server_started (
2000
CupsNotifier *object,
2001
const gchar *arg_text)
2003
g_signal_emit_by_name (object, "server-started", arg_text);
2007
* cups_notifier_emit_server_restarted:
2008
* @object: A #CupsNotifier.
2009
* @arg_text: Argument to pass with the signal.
2011
* Emits the <link linkend="gdbus-signal-org-cups-cupsd-Notifier.ServerRestarted">"ServerRestarted"</link> D-Bus signal.
2014
cups_notifier_emit_server_restarted (
2015
CupsNotifier *object,
2016
const gchar *arg_text)
2018
g_signal_emit_by_name (object, "server-restarted", arg_text);
2022
* cups_notifier_emit_server_stopped:
2023
* @object: A #CupsNotifier.
2024
* @arg_text: Argument to pass with the signal.
2026
* Emits the <link linkend="gdbus-signal-org-cups-cupsd-Notifier.ServerStopped">"ServerStopped"</link> D-Bus signal.
2029
cups_notifier_emit_server_stopped (
2030
CupsNotifier *object,
2031
const gchar *arg_text)
2033
g_signal_emit_by_name (object, "server-stopped", arg_text);
2037
* cups_notifier_emit_server_audit:
2038
* @object: A #CupsNotifier.
2039
* @arg_text: Argument to pass with the signal.
2041
* Emits the <link linkend="gdbus-signal-org-cups-cupsd-Notifier.ServerAudit">"ServerAudit"</link> D-Bus signal.
2044
cups_notifier_emit_server_audit (
2045
CupsNotifier *object,
2046
const gchar *arg_text)
2048
g_signal_emit_by_name (object, "server-audit", arg_text);
2052
* cups_notifier_emit_printer_added:
2053
* @object: A #CupsNotifier.
2054
* @arg_text: Argument to pass with the signal.
2055
* @arg_printer_uri: Argument to pass with the signal.
2056
* @arg_printer_name: Argument to pass with the signal.
2057
* @arg_printer_state: Argument to pass with the signal.
2058
* @arg_printer_state_reasons: Argument to pass with the signal.
2059
* @arg_printer_is_accepting_jobs: Argument to pass with the signal.
2061
* Emits the <link linkend="gdbus-signal-org-cups-cupsd-Notifier.PrinterAdded">"PrinterAdded"</link> D-Bus signal.
2064
cups_notifier_emit_printer_added (
2065
CupsNotifier *object,
2066
const gchar *arg_text,
2067
const gchar *arg_printer_uri,
2068
const gchar *arg_printer_name,
2069
guint arg_printer_state,
2070
const gchar *arg_printer_state_reasons,
2071
gboolean arg_printer_is_accepting_jobs)
2073
g_signal_emit_by_name (object, "printer-added", arg_text, arg_printer_uri, arg_printer_name, arg_printer_state, arg_printer_state_reasons, arg_printer_is_accepting_jobs);
2077
* cups_notifier_emit_printer_deleted:
2078
* @object: A #CupsNotifier.
2079
* @arg_text: Argument to pass with the signal.
2080
* @arg_printer_uri: Argument to pass with the signal.
2081
* @arg_printer_name: Argument to pass with the signal.
2082
* @arg_printer_state: Argument to pass with the signal.
2083
* @arg_printer_state_reasons: Argument to pass with the signal.
2084
* @arg_printer_is_accepting_jobs: Argument to pass with the signal.
2086
* Emits the <link linkend="gdbus-signal-org-cups-cupsd-Notifier.PrinterDeleted">"PrinterDeleted"</link> D-Bus signal.
2089
cups_notifier_emit_printer_deleted (
2090
CupsNotifier *object,
2091
const gchar *arg_text,
2092
const gchar *arg_printer_uri,
2093
const gchar *arg_printer_name,
2094
guint arg_printer_state,
2095
const gchar *arg_printer_state_reasons,
2096
gboolean arg_printer_is_accepting_jobs)
2098
g_signal_emit_by_name (object, "printer-deleted", arg_text, arg_printer_uri, arg_printer_name, arg_printer_state, arg_printer_state_reasons, arg_printer_is_accepting_jobs);
2102
* cups_notifier_emit_printer_modified:
2103
* @object: A #CupsNotifier.
2104
* @arg_text: Argument to pass with the signal.
2105
* @arg_printer_uri: Argument to pass with the signal.
2106
* @arg_printer_name: Argument to pass with the signal.
2107
* @arg_printer_state: Argument to pass with the signal.
2108
* @arg_printer_state_reasons: Argument to pass with the signal.
2109
* @arg_printer_is_accepting_jobs: Argument to pass with the signal.
2111
* Emits the <link linkend="gdbus-signal-org-cups-cupsd-Notifier.PrinterModified">"PrinterModified"</link> D-Bus signal.
2114
cups_notifier_emit_printer_modified (
2115
CupsNotifier *object,
2116
const gchar *arg_text,
2117
const gchar *arg_printer_uri,
2118
const gchar *arg_printer_name,
2119
guint arg_printer_state,
2120
const gchar *arg_printer_state_reasons,
2121
gboolean arg_printer_is_accepting_jobs)
2123
g_signal_emit_by_name (object, "printer-modified", arg_text, arg_printer_uri, arg_printer_name, arg_printer_state, arg_printer_state_reasons, arg_printer_is_accepting_jobs);
2127
* cups_notifier_emit_printer_restarted:
2128
* @object: A #CupsNotifier.
2129
* @arg_text: Argument to pass with the signal.
2130
* @arg_printer_uri: Argument to pass with the signal.
2131
* @arg_printer_name: Argument to pass with the signal.
2132
* @arg_printer_state: Argument to pass with the signal.
2133
* @arg_printer_state_reasons: Argument to pass with the signal.
2134
* @arg_printer_is_accepting_jobs: Argument to pass with the signal.
2136
* Emits the <link linkend="gdbus-signal-org-cups-cupsd-Notifier.PrinterRestarted">"PrinterRestarted"</link> D-Bus signal.
2139
cups_notifier_emit_printer_restarted (
2140
CupsNotifier *object,
2141
const gchar *arg_text,
2142
const gchar *arg_printer_uri,
2143
const gchar *arg_printer_name,
2144
guint arg_printer_state,
2145
const gchar *arg_printer_state_reasons,
2146
gboolean arg_printer_is_accepting_jobs)
2148
g_signal_emit_by_name (object, "printer-restarted", arg_text, arg_printer_uri, arg_printer_name, arg_printer_state, arg_printer_state_reasons, arg_printer_is_accepting_jobs);
2152
* cups_notifier_emit_printer_stopped:
2153
* @object: A #CupsNotifier.
2154
* @arg_text: Argument to pass with the signal.
2155
* @arg_printer_uri: Argument to pass with the signal.
2156
* @arg_printer_name: Argument to pass with the signal.
2157
* @arg_printer_state: Argument to pass with the signal.
2158
* @arg_printer_state_reasons: Argument to pass with the signal.
2159
* @arg_printer_is_accepting_jobs: Argument to pass with the signal.
2161
* Emits the <link linkend="gdbus-signal-org-cups-cupsd-Notifier.PrinterStopped">"PrinterStopped"</link> D-Bus signal.
2164
cups_notifier_emit_printer_stopped (
2165
CupsNotifier *object,
2166
const gchar *arg_text,
2167
const gchar *arg_printer_uri,
2168
const gchar *arg_printer_name,
2169
guint arg_printer_state,
2170
const gchar *arg_printer_state_reasons,
2171
gboolean arg_printer_is_accepting_jobs)
2173
g_signal_emit_by_name (object, "printer-stopped", arg_text, arg_printer_uri, arg_printer_name, arg_printer_state, arg_printer_state_reasons, arg_printer_is_accepting_jobs);
2177
* cups_notifier_emit_printer_shutdown:
2178
* @object: A #CupsNotifier.
2179
* @arg_text: Argument to pass with the signal.
2180
* @arg_printer_uri: Argument to pass with the signal.
2181
* @arg_printer_name: Argument to pass with the signal.
2182
* @arg_printer_state: Argument to pass with the signal.
2183
* @arg_printer_state_reasons: Argument to pass with the signal.
2184
* @arg_printer_is_accepting_jobs: Argument to pass with the signal.
2186
* Emits the <link linkend="gdbus-signal-org-cups-cupsd-Notifier.PrinterShutdown">"PrinterShutdown"</link> D-Bus signal.
2189
cups_notifier_emit_printer_shutdown (
2190
CupsNotifier *object,
2191
const gchar *arg_text,
2192
const gchar *arg_printer_uri,
2193
const gchar *arg_printer_name,
2194
guint arg_printer_state,
2195
const gchar *arg_printer_state_reasons,
2196
gboolean arg_printer_is_accepting_jobs)
2198
g_signal_emit_by_name (object, "printer-shutdown", arg_text, arg_printer_uri, arg_printer_name, arg_printer_state, arg_printer_state_reasons, arg_printer_is_accepting_jobs);
2202
* cups_notifier_emit_printer_state_changed:
2203
* @object: A #CupsNotifier.
2204
* @arg_text: Argument to pass with the signal.
2205
* @arg_printer_uri: Argument to pass with the signal.
2206
* @arg_printer_name: Argument to pass with the signal.
2207
* @arg_printer_state: Argument to pass with the signal.
2208
* @arg_printer_state_reasons: Argument to pass with the signal.
2209
* @arg_printer_is_accepting_jobs: Argument to pass with the signal.
2211
* Emits the <link linkend="gdbus-signal-org-cups-cupsd-Notifier.PrinterStateChanged">"PrinterStateChanged"</link> D-Bus signal.
2214
cups_notifier_emit_printer_state_changed (
2215
CupsNotifier *object,
2216
const gchar *arg_text,
2217
const gchar *arg_printer_uri,
2218
const gchar *arg_printer_name,
2219
guint arg_printer_state,
2220
const gchar *arg_printer_state_reasons,
2221
gboolean arg_printer_is_accepting_jobs)
2223
g_signal_emit_by_name (object, "printer-state-changed", arg_text, arg_printer_uri, arg_printer_name, arg_printer_state, arg_printer_state_reasons, arg_printer_is_accepting_jobs);
2227
* cups_notifier_emit_printer_finishings_changed:
2228
* @object: A #CupsNotifier.
2229
* @arg_text: Argument to pass with the signal.
2230
* @arg_printer_uri: Argument to pass with the signal.
2231
* @arg_printer_name: Argument to pass with the signal.
2232
* @arg_printer_state: Argument to pass with the signal.
2233
* @arg_printer_state_reasons: Argument to pass with the signal.
2234
* @arg_printer_is_accepting_jobs: Argument to pass with the signal.
2236
* Emits the <link linkend="gdbus-signal-org-cups-cupsd-Notifier.PrinterFinishingsChanged">"PrinterFinishingsChanged"</link> D-Bus signal.
2239
cups_notifier_emit_printer_finishings_changed (
2240
CupsNotifier *object,
2241
const gchar *arg_text,
2242
const gchar *arg_printer_uri,
2243
const gchar *arg_printer_name,
2244
guint arg_printer_state,
2245
const gchar *arg_printer_state_reasons,
2246
gboolean arg_printer_is_accepting_jobs)
2248
g_signal_emit_by_name (object, "printer-finishings-changed", arg_text, arg_printer_uri, arg_printer_name, arg_printer_state, arg_printer_state_reasons, arg_printer_is_accepting_jobs);
2252
* cups_notifier_emit_printer_media_changed:
2253
* @object: A #CupsNotifier.
2254
* @arg_text: Argument to pass with the signal.
2255
* @arg_printer_uri: Argument to pass with the signal.
2256
* @arg_printer_name: Argument to pass with the signal.
2257
* @arg_printer_state: Argument to pass with the signal.
2258
* @arg_printer_state_reasons: Argument to pass with the signal.
2259
* @arg_printer_is_accepting_jobs: Argument to pass with the signal.
2261
* Emits the <link linkend="gdbus-signal-org-cups-cupsd-Notifier.PrinterMediaChanged">"PrinterMediaChanged"</link> D-Bus signal.
2264
cups_notifier_emit_printer_media_changed (
2265
CupsNotifier *object,
2266
const gchar *arg_text,
2267
const gchar *arg_printer_uri,
2268
const gchar *arg_printer_name,
2269
guint arg_printer_state,
2270
const gchar *arg_printer_state_reasons,
2271
gboolean arg_printer_is_accepting_jobs)
2273
g_signal_emit_by_name (object, "printer-media-changed", arg_text, arg_printer_uri, arg_printer_name, arg_printer_state, arg_printer_state_reasons, arg_printer_is_accepting_jobs);
2277
* cups_notifier_emit_job_created:
2278
* @object: A #CupsNotifier.
2279
* @arg_text: Argument to pass with the signal.
2280
* @arg_printer_uri: Argument to pass with the signal.
2281
* @arg_printer_name: Argument to pass with the signal.
2282
* @arg_printer_state: Argument to pass with the signal.
2283
* @arg_printer_state_reasons: Argument to pass with the signal.
2284
* @arg_printer_is_accepting_jobs: Argument to pass with the signal.
2285
* @arg_job_id: Argument to pass with the signal.
2286
* @arg_job_state: Argument to pass with the signal.
2287
* @arg_job_state_reasons: Argument to pass with the signal.
2288
* @arg_job_name: Argument to pass with the signal.
2289
* @arg_job_impressions_completed: Argument to pass with the signal.
2291
* Emits the <link linkend="gdbus-signal-org-cups-cupsd-Notifier.JobCreated">"JobCreated"</link> D-Bus signal.
2294
cups_notifier_emit_job_created (
2295
CupsNotifier *object,
2296
const gchar *arg_text,
2297
const gchar *arg_printer_uri,
2298
const gchar *arg_printer_name,
2299
guint arg_printer_state,
2300
const gchar *arg_printer_state_reasons,
2301
gboolean arg_printer_is_accepting_jobs,
2303
guint arg_job_state,
2304
const gchar *arg_job_state_reasons,
2305
const gchar *arg_job_name,
2306
guint arg_job_impressions_completed)
2308
g_signal_emit_by_name (object, "job-created", arg_text, arg_printer_uri, arg_printer_name, arg_printer_state, arg_printer_state_reasons, arg_printer_is_accepting_jobs, arg_job_id, arg_job_state, arg_job_state_reasons, arg_job_name, arg_job_impressions_completed);
2312
* cups_notifier_emit_job_completed:
2313
* @object: A #CupsNotifier.
2314
* @arg_text: Argument to pass with the signal.
2315
* @arg_printer_uri: Argument to pass with the signal.
2316
* @arg_printer_name: Argument to pass with the signal.
2317
* @arg_printer_state: Argument to pass with the signal.
2318
* @arg_printer_state_reasons: Argument to pass with the signal.
2319
* @arg_printer_is_accepting_jobs: Argument to pass with the signal.
2320
* @arg_job_id: Argument to pass with the signal.
2321
* @arg_job_state: Argument to pass with the signal.
2322
* @arg_job_state_reasons: Argument to pass with the signal.
2323
* @arg_job_name: Argument to pass with the signal.
2324
* @arg_job_impressions_completed: Argument to pass with the signal.
2326
* Emits the <link linkend="gdbus-signal-org-cups-cupsd-Notifier.JobCompleted">"JobCompleted"</link> D-Bus signal.
2329
cups_notifier_emit_job_completed (
2330
CupsNotifier *object,
2331
const gchar *arg_text,
2332
const gchar *arg_printer_uri,
2333
const gchar *arg_printer_name,
2334
guint arg_printer_state,
2335
const gchar *arg_printer_state_reasons,
2336
gboolean arg_printer_is_accepting_jobs,
2338
guint arg_job_state,
2339
const gchar *arg_job_state_reasons,
2340
const gchar *arg_job_name,
2341
guint arg_job_impressions_completed)
2343
g_signal_emit_by_name (object, "job-completed", arg_text, arg_printer_uri, arg_printer_name, arg_printer_state, arg_printer_state_reasons, arg_printer_is_accepting_jobs, arg_job_id, arg_job_state, arg_job_state_reasons, arg_job_name, arg_job_impressions_completed);
2347
* cups_notifier_emit_job_state:
2348
* @object: A #CupsNotifier.
2349
* @arg_text: Argument to pass with the signal.
2350
* @arg_printer_uri: Argument to pass with the signal.
2351
* @arg_printer_name: Argument to pass with the signal.
2352
* @arg_printer_state: Argument to pass with the signal.
2353
* @arg_printer_state_reasons: Argument to pass with the signal.
2354
* @arg_printer_is_accepting_jobs: Argument to pass with the signal.
2355
* @arg_job_id: Argument to pass with the signal.
2356
* @arg_job_state: Argument to pass with the signal.
2357
* @arg_job_state_reasons: Argument to pass with the signal.
2358
* @arg_job_name: Argument to pass with the signal.
2359
* @arg_job_impressions_completed: Argument to pass with the signal.
2361
* Emits the <link linkend="gdbus-signal-org-cups-cupsd-Notifier.JobState">"JobState"</link> D-Bus signal.
2364
cups_notifier_emit_job_state (
2365
CupsNotifier *object,
2366
const gchar *arg_text,
2367
const gchar *arg_printer_uri,
2368
const gchar *arg_printer_name,
2369
guint arg_printer_state,
2370
const gchar *arg_printer_state_reasons,
2371
gboolean arg_printer_is_accepting_jobs,
2373
guint arg_job_state,
2374
const gchar *arg_job_state_reasons,
2375
const gchar *arg_job_name,
2376
guint arg_job_impressions_completed)
2378
g_signal_emit_by_name (object, "job-state", arg_text, arg_printer_uri, arg_printer_name, arg_printer_state, arg_printer_state_reasons, arg_printer_is_accepting_jobs, arg_job_id, arg_job_state, arg_job_state_reasons, arg_job_name, arg_job_impressions_completed);
2381
/* ------------------------------------------------------------------------ */
2384
* CupsNotifierProxy:
2386
* The #CupsNotifierProxy structure contains only private data and should only be accessed using the provided API.
2390
* CupsNotifierProxyClass:
2391
* @parent_class: The parent class.
2393
* Class structure for #CupsNotifierProxy.
2396
struct _CupsNotifierProxyPrivate
2401
static void cups_notifier_proxy_iface_init (CupsNotifierIface *iface);
2403
G_DEFINE_TYPE_WITH_CODE (CupsNotifierProxy, cups_notifier_proxy, G_TYPE_DBUS_PROXY,
2404
G_IMPLEMENT_INTERFACE (CUPS_TYPE_NOTIFIER, cups_notifier_proxy_iface_init));
2407
cups_notifier_proxy_finalize (GObject *object)
2409
CupsNotifierProxy *proxy = CUPS_NOTIFIER_PROXY (object);
2410
g_datalist_clear (&proxy->priv->qdata);
2411
G_OBJECT_CLASS (cups_notifier_proxy_parent_class)->finalize (object);
2415
cups_notifier_proxy_get_property (GObject *object,
2423
cups_notifier_proxy_set_property (GObject *object,
2425
const GValue *value,
2431
cups_notifier_proxy_g_signal (GDBusProxy *proxy,
2432
const gchar *sender_name,
2433
const gchar *signal_name,
2434
GVariant *parameters)
2436
_ExtendedGDBusSignalInfo *info;
2443
info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_cups_notifier_interface_info, signal_name);
2446
num_params = g_variant_n_children (parameters);
2447
paramv = g_new0 (GValue, num_params + 1);
2448
g_value_init (¶mv[0], CUPS_TYPE_NOTIFIER);
2449
g_value_set_object (¶mv[0], proxy);
2450
g_variant_iter_init (&iter, parameters);
2452
while ((child = g_variant_iter_next_value (&iter)) != NULL)
2454
_ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1];
2455
if (arg_info->use_gvariant)
2457
g_value_init (¶mv[n], G_TYPE_VARIANT);
2458
g_value_set_variant (¶mv[n], child);
2462
g_dbus_gvariant_to_gvalue (child, ¶mv[n++]);
2463
g_variant_unref (child);
2465
signal_id = g_signal_lookup (info->signal_name, CUPS_TYPE_NOTIFIER);
2466
g_signal_emitv (paramv, signal_id, 0, NULL);
2467
for (n = 0; n < num_params + 1; n++)
2468
g_value_unset (¶mv[n]);
2473
cups_notifier_proxy_g_properties_changed (GDBusProxy *_proxy,
2474
GVariant *changed_properties,
2475
const gchar *const *invalidated_properties)
2477
CupsNotifierProxy *proxy = CUPS_NOTIFIER_PROXY (_proxy);
2481
_ExtendedGDBusPropertyInfo *info;
2482
g_variant_get (changed_properties, "a{sv}", &iter);
2483
while (g_variant_iter_next (iter, "{&sv}", &key, NULL))
2485
info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_cups_notifier_interface_info, key);
2486
g_datalist_remove_data (&proxy->priv->qdata, key);
2488
g_object_notify (G_OBJECT (proxy), info->hyphen_name);
2490
g_variant_iter_free (iter);
2491
for (n = 0; invalidated_properties[n] != NULL; n++)
2493
info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_cups_notifier_interface_info, invalidated_properties[n]);
2494
g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]);
2496
g_object_notify (G_OBJECT (proxy), info->hyphen_name);
2501
cups_notifier_proxy_init (CupsNotifierProxy *proxy)
2503
proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, CUPS_TYPE_NOTIFIER_PROXY, CupsNotifierProxyPrivate);
2504
g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), cups_notifier_interface_info ());
2508
cups_notifier_proxy_class_init (CupsNotifierProxyClass *klass)
2510
GObjectClass *gobject_class;
2511
GDBusProxyClass *proxy_class;
2513
g_type_class_add_private (klass, sizeof (CupsNotifierProxyPrivate));
2515
gobject_class = G_OBJECT_CLASS (klass);
2516
gobject_class->finalize = cups_notifier_proxy_finalize;
2517
gobject_class->get_property = cups_notifier_proxy_get_property;
2518
gobject_class->set_property = cups_notifier_proxy_set_property;
2520
proxy_class = G_DBUS_PROXY_CLASS (klass);
2521
proxy_class->g_signal = cups_notifier_proxy_g_signal;
2522
proxy_class->g_properties_changed = cups_notifier_proxy_g_properties_changed;
2527
cups_notifier_proxy_iface_init (CupsNotifierIface *iface)
2532
* cups_notifier_proxy_new:
2533
* @connection: A #GDBusConnection.
2534
* @flags: Flags from the #GDBusProxyFlags enumeration.
2535
* @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
2536
* @object_path: An object path.
2537
* @cancellable: (allow-none): A #GCancellable or %NULL.
2538
* @callback: A #GAsyncReadyCallback to call when the request is satisfied.
2539
* @user_data: User data to pass to @callback.
2541
* Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-cups-cupsd-Notifier.top_of_page">org.cups.cupsd.Notifier</link>. See g_dbus_proxy_new() for more details.
2543
* When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
2544
* You can then call cups_notifier_proxy_new_finish() to get the result of the operation.
2546
* See cups_notifier_proxy_new_sync() for the synchronous, blocking version of this constructor.
2549
cups_notifier_proxy_new (
2550
GDBusConnection *connection,
2551
GDBusProxyFlags flags,
2553
const gchar *object_path,
2554
GCancellable *cancellable,
2555
GAsyncReadyCallback callback,
2558
g_async_initable_new_async (CUPS_TYPE_NOTIFIER_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.cups.cupsd.Notifier", NULL);
2562
* cups_notifier_proxy_new_finish:
2563
* @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cups_notifier_proxy_new().
2564
* @error: Return location for error or %NULL
2566
* Finishes an operation started with cups_notifier_proxy_new().
2568
* Returns: (transfer full) (type CupsNotifierProxy): The constructed proxy object or %NULL if @error is set.
2571
cups_notifier_proxy_new_finish (
2576
GObject *source_object;
2577
source_object = g_async_result_get_source_object (res);
2578
ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
2579
g_object_unref (source_object);
2581
return CUPS_NOTIFIER (ret);
2587
* cups_notifier_proxy_new_sync:
2588
* @connection: A #GDBusConnection.
2589
* @flags: Flags from the #GDBusProxyFlags enumeration.
2590
* @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
2591
* @object_path: An object path.
2592
* @cancellable: (allow-none): A #GCancellable or %NULL.
2593
* @error: Return location for error or %NULL
2595
* Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-cups-cupsd-Notifier.top_of_page">org.cups.cupsd.Notifier</link>. See g_dbus_proxy_new_sync() for more details.
2597
* The calling thread is blocked until a reply is received.
2599
* See cups_notifier_proxy_new() for the asynchronous version of this constructor.
2601
* Returns: (transfer full) (type CupsNotifierProxy): The constructed proxy object or %NULL if @error is set.
2604
cups_notifier_proxy_new_sync (
2605
GDBusConnection *connection,
2606
GDBusProxyFlags flags,
2608
const gchar *object_path,
2609
GCancellable *cancellable,
2613
ret = g_initable_new (CUPS_TYPE_NOTIFIER_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.cups.cupsd.Notifier", NULL);
2615
return CUPS_NOTIFIER (ret);
2622
* cups_notifier_proxy_new_for_bus:
2623
* @bus_type: A #GBusType.
2624
* @flags: Flags from the #GDBusProxyFlags enumeration.
2625
* @name: A bus name (well-known or unique).
2626
* @object_path: An object path.
2627
* @cancellable: (allow-none): A #GCancellable or %NULL.
2628
* @callback: A #GAsyncReadyCallback to call when the request is satisfied.
2629
* @user_data: User data to pass to @callback.
2631
* Like cups_notifier_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
2633
* When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
2634
* You can then call cups_notifier_proxy_new_for_bus_finish() to get the result of the operation.
2636
* See cups_notifier_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
2639
cups_notifier_proxy_new_for_bus (
2641
GDBusProxyFlags flags,
2643
const gchar *object_path,
2644
GCancellable *cancellable,
2645
GAsyncReadyCallback callback,
2648
g_async_initable_new_async (CUPS_TYPE_NOTIFIER_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.cups.cupsd.Notifier", NULL);
2652
* cups_notifier_proxy_new_for_bus_finish:
2653
* @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cups_notifier_proxy_new_for_bus().
2654
* @error: Return location for error or %NULL
2656
* Finishes an operation started with cups_notifier_proxy_new_for_bus().
2658
* Returns: (transfer full) (type CupsNotifierProxy): The constructed proxy object or %NULL if @error is set.
2661
cups_notifier_proxy_new_for_bus_finish (
2666
GObject *source_object;
2667
source_object = g_async_result_get_source_object (res);
2668
ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
2669
g_object_unref (source_object);
2671
return CUPS_NOTIFIER (ret);
2677
* cups_notifier_proxy_new_for_bus_sync:
2678
* @bus_type: A #GBusType.
2679
* @flags: Flags from the #GDBusProxyFlags enumeration.
2680
* @name: A bus name (well-known or unique).
2681
* @object_path: An object path.
2682
* @cancellable: (allow-none): A #GCancellable or %NULL.
2683
* @error: Return location for error or %NULL
2685
* Like cups_notifier_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.
2687
* The calling thread is blocked until a reply is received.
2689
* See cups_notifier_proxy_new_for_bus() for the asynchronous version of this constructor.
2691
* Returns: (transfer full) (type CupsNotifierProxy): The constructed proxy object or %NULL if @error is set.
2694
cups_notifier_proxy_new_for_bus_sync (
2696
GDBusProxyFlags flags,
2698
const gchar *object_path,
2699
GCancellable *cancellable,
2703
ret = g_initable_new (CUPS_TYPE_NOTIFIER_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.cups.cupsd.Notifier", NULL);
2705
return CUPS_NOTIFIER (ret);
2711
/* ------------------------------------------------------------------------ */
2714
* CupsNotifierSkeleton:
2716
* The #CupsNotifierSkeleton structure contains only private data and should only be accessed using the provided API.
2720
* CupsNotifierSkeletonClass:
2721
* @parent_class: The parent class.
2723
* Class structure for #CupsNotifierSkeleton.
2726
struct _CupsNotifierSkeletonPrivate
2729
GList *changed_properties;
2730
GSource *changed_properties_idle_source;
2731
GMainContext *context;
2736
_cups_notifier_skeleton_handle_method_call (
2737
GDBusConnection *connection,
2738
const gchar *sender,
2739
const gchar *object_path,
2740
const gchar *interface_name,
2741
const gchar *method_name,
2742
GVariant *parameters,
2743
GDBusMethodInvocation *invocation,
2746
CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (user_data);
2747
_ExtendedGDBusMethodInfo *info;
2755
GValue return_value = G_VALUE_INIT;
2756
info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation);
2757
g_assert (info != NULL);
2758
num_params = g_variant_n_children (parameters);
2759
num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra);
2761
g_value_init (¶mv[n], CUPS_TYPE_NOTIFIER);
2762
g_value_set_object (¶mv[n++], skeleton);
2763
g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION);
2764
g_value_set_object (¶mv[n++], invocation);
2765
if (info->pass_fdlist)
2768
g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST);
2769
g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)));
2771
g_assert_not_reached ();
2774
g_variant_iter_init (&iter, parameters);
2775
while ((child = g_variant_iter_next_value (&iter)) != NULL)
2777
_ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra];
2778
if (arg_info->use_gvariant)
2780
g_value_init (¶mv[n], G_TYPE_VARIANT);
2781
g_value_set_variant (¶mv[n], child);
2785
g_dbus_gvariant_to_gvalue (child, ¶mv[n++]);
2786
g_variant_unref (child);
2788
signal_id = g_signal_lookup (info->signal_name, CUPS_TYPE_NOTIFIER);
2789
g_value_init (&return_value, G_TYPE_BOOLEAN);
2790
g_signal_emitv (paramv, signal_id, 0, &return_value);
2791
if (!g_value_get_boolean (&return_value))
2792
g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name);
2793
g_value_unset (&return_value);
2794
for (n = 0; n < num_params + num_extra; n++)
2795
g_value_unset (¶mv[n]);
2800
_cups_notifier_skeleton_handle_get_property (
2801
GDBusConnection *connection,
2802
const gchar *sender,
2803
const gchar *object_path,
2804
const gchar *interface_name,
2805
const gchar *property_name,
2809
CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (user_data);
2810
GValue value = G_VALUE_INIT;
2812
_ExtendedGDBusPropertyInfo *info;
2815
info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_cups_notifier_interface_info, property_name);
2816
g_assert (info != NULL);
2817
pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
2820
g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
2824
g_value_init (&value, pspec->value_type);
2825
g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value);
2826
ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature));
2827
g_value_unset (&value);
2833
_cups_notifier_skeleton_handle_set_property (
2834
GDBusConnection *connection,
2835
const gchar *sender,
2836
const gchar *object_path,
2837
const gchar *interface_name,
2838
const gchar *property_name,
2843
CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (user_data);
2844
GValue value = G_VALUE_INIT;
2846
_ExtendedGDBusPropertyInfo *info;
2849
info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_cups_notifier_interface_info, property_name);
2850
g_assert (info != NULL);
2851
pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
2854
g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
2858
if (info->use_gvariant)
2859
g_value_set_variant (&value, variant);
2861
g_dbus_gvariant_to_gvalue (variant, &value);
2862
g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value);
2863
g_value_unset (&value);
2869
static const GDBusInterfaceVTable _cups_notifier_skeleton_vtable =
2871
_cups_notifier_skeleton_handle_method_call,
2872
_cups_notifier_skeleton_handle_get_property,
2873
_cups_notifier_skeleton_handle_set_property
2876
static GDBusInterfaceInfo *
2877
cups_notifier_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton)
2879
return cups_notifier_interface_info ();
2882
static GDBusInterfaceVTable *
2883
cups_notifier_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton)
2885
return (GDBusInterfaceVTable *) &_cups_notifier_skeleton_vtable;
2889
cups_notifier_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
2891
CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (_skeleton);
2893
GVariantBuilder builder;
2895
g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
2896
if (_cups_notifier_interface_info.parent_struct.properties == NULL)
2898
for (n = 0; _cups_notifier_interface_info.parent_struct.properties[n] != NULL; n++)
2900
GDBusPropertyInfo *info = _cups_notifier_interface_info.parent_struct.properties[n];
2901
if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
2904
value = _cups_notifier_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.cups.cupsd.Notifier", info->name, NULL, skeleton);
2907
g_variant_take_ref (value);
2908
g_variant_builder_add (&builder, "{sv}", info->name, value);
2909
g_variant_unref (value);
2914
return g_variant_builder_end (&builder);
2918
cups_notifier_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton)
2923
_cups_notifier_on_signal_server_started (
2924
CupsNotifier *object,
2925
const gchar *arg_text)
2927
CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (object);
2929
GList *connections, *l;
2930
GVariant *signal_variant;
2931
connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
2933
signal_variant = g_variant_ref_sink (g_variant_new ("(s)",
2935
for (l = connections; l != NULL; l = l->next)
2937
GDBusConnection *connection = l->data;
2938
g_dbus_connection_emit_signal (connection,
2939
NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.cups.cupsd.Notifier", "ServerStarted",
2940
signal_variant, NULL);
2942
g_variant_unref (signal_variant);
2943
g_list_free_full (connections, g_object_unref);
2947
_cups_notifier_on_signal_server_restarted (
2948
CupsNotifier *object,
2949
const gchar *arg_text)
2951
CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (object);
2953
GList *connections, *l;
2954
GVariant *signal_variant;
2955
connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
2957
signal_variant = g_variant_ref_sink (g_variant_new ("(s)",
2959
for (l = connections; l != NULL; l = l->next)
2961
GDBusConnection *connection = l->data;
2962
g_dbus_connection_emit_signal (connection,
2963
NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.cups.cupsd.Notifier", "ServerRestarted",
2964
signal_variant, NULL);
2966
g_variant_unref (signal_variant);
2967
g_list_free_full (connections, g_object_unref);
2971
_cups_notifier_on_signal_server_stopped (
2972
CupsNotifier *object,
2973
const gchar *arg_text)
2975
CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (object);
2977
GList *connections, *l;
2978
GVariant *signal_variant;
2979
connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
2981
signal_variant = g_variant_ref_sink (g_variant_new ("(s)",
2983
for (l = connections; l != NULL; l = l->next)
2985
GDBusConnection *connection = l->data;
2986
g_dbus_connection_emit_signal (connection,
2987
NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.cups.cupsd.Notifier", "ServerStopped",
2988
signal_variant, NULL);
2990
g_variant_unref (signal_variant);
2991
g_list_free_full (connections, g_object_unref);
2995
_cups_notifier_on_signal_server_audit (
2996
CupsNotifier *object,
2997
const gchar *arg_text)
2999
CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (object);
3001
GList *connections, *l;
3002
GVariant *signal_variant;
3003
connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
3005
signal_variant = g_variant_ref_sink (g_variant_new ("(s)",
3007
for (l = connections; l != NULL; l = l->next)
3009
GDBusConnection *connection = l->data;
3010
g_dbus_connection_emit_signal (connection,
3011
NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.cups.cupsd.Notifier", "ServerAudit",
3012
signal_variant, NULL);
3014
g_variant_unref (signal_variant);
3015
g_list_free_full (connections, g_object_unref);
3019
_cups_notifier_on_signal_printer_added (
3020
CupsNotifier *object,
3021
const gchar *arg_text,
3022
const gchar *arg_printer_uri,
3023
const gchar *arg_printer_name,
3024
guint arg_printer_state,
3025
const gchar *arg_printer_state_reasons,
3026
gboolean arg_printer_is_accepting_jobs)
3028
CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (object);
3030
GList *connections, *l;
3031
GVariant *signal_variant;
3032
connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
3034
signal_variant = g_variant_ref_sink (g_variant_new ("(sssusb)",
3039
arg_printer_state_reasons,
3040
arg_printer_is_accepting_jobs));
3041
for (l = connections; l != NULL; l = l->next)
3043
GDBusConnection *connection = l->data;
3044
g_dbus_connection_emit_signal (connection,
3045
NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.cups.cupsd.Notifier", "PrinterAdded",
3046
signal_variant, NULL);
3048
g_variant_unref (signal_variant);
3049
g_list_free_full (connections, g_object_unref);
3053
_cups_notifier_on_signal_printer_deleted (
3054
CupsNotifier *object,
3055
const gchar *arg_text,
3056
const gchar *arg_printer_uri,
3057
const gchar *arg_printer_name,
3058
guint arg_printer_state,
3059
const gchar *arg_printer_state_reasons,
3060
gboolean arg_printer_is_accepting_jobs)
3062
CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (object);
3064
GList *connections, *l;
3065
GVariant *signal_variant;
3066
connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
3068
signal_variant = g_variant_ref_sink (g_variant_new ("(sssusb)",
3073
arg_printer_state_reasons,
3074
arg_printer_is_accepting_jobs));
3075
for (l = connections; l != NULL; l = l->next)
3077
GDBusConnection *connection = l->data;
3078
g_dbus_connection_emit_signal (connection,
3079
NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.cups.cupsd.Notifier", "PrinterDeleted",
3080
signal_variant, NULL);
3082
g_variant_unref (signal_variant);
3083
g_list_free_full (connections, g_object_unref);
3087
_cups_notifier_on_signal_printer_modified (
3088
CupsNotifier *object,
3089
const gchar *arg_text,
3090
const gchar *arg_printer_uri,
3091
const gchar *arg_printer_name,
3092
guint arg_printer_state,
3093
const gchar *arg_printer_state_reasons,
3094
gboolean arg_printer_is_accepting_jobs)
3096
CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (object);
3098
GList *connections, *l;
3099
GVariant *signal_variant;
3100
connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
3102
signal_variant = g_variant_ref_sink (g_variant_new ("(sssusb)",
3107
arg_printer_state_reasons,
3108
arg_printer_is_accepting_jobs));
3109
for (l = connections; l != NULL; l = l->next)
3111
GDBusConnection *connection = l->data;
3112
g_dbus_connection_emit_signal (connection,
3113
NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.cups.cupsd.Notifier", "PrinterModified",
3114
signal_variant, NULL);
3116
g_variant_unref (signal_variant);
3117
g_list_free_full (connections, g_object_unref);
3121
_cups_notifier_on_signal_printer_restarted (
3122
CupsNotifier *object,
3123
const gchar *arg_text,
3124
const gchar *arg_printer_uri,
3125
const gchar *arg_printer_name,
3126
guint arg_printer_state,
3127
const gchar *arg_printer_state_reasons,
3128
gboolean arg_printer_is_accepting_jobs)
3130
CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (object);
3132
GList *connections, *l;
3133
GVariant *signal_variant;
3134
connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
3136
signal_variant = g_variant_ref_sink (g_variant_new ("(sssusb)",
3141
arg_printer_state_reasons,
3142
arg_printer_is_accepting_jobs));
3143
for (l = connections; l != NULL; l = l->next)
3145
GDBusConnection *connection = l->data;
3146
g_dbus_connection_emit_signal (connection,
3147
NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.cups.cupsd.Notifier", "PrinterRestarted",
3148
signal_variant, NULL);
3150
g_variant_unref (signal_variant);
3151
g_list_free_full (connections, g_object_unref);
3155
_cups_notifier_on_signal_printer_stopped (
3156
CupsNotifier *object,
3157
const gchar *arg_text,
3158
const gchar *arg_printer_uri,
3159
const gchar *arg_printer_name,
3160
guint arg_printer_state,
3161
const gchar *arg_printer_state_reasons,
3162
gboolean arg_printer_is_accepting_jobs)
3164
CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (object);
3166
GList *connections, *l;
3167
GVariant *signal_variant;
3168
connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
3170
signal_variant = g_variant_ref_sink (g_variant_new ("(sssusb)",
3175
arg_printer_state_reasons,
3176
arg_printer_is_accepting_jobs));
3177
for (l = connections; l != NULL; l = l->next)
3179
GDBusConnection *connection = l->data;
3180
g_dbus_connection_emit_signal (connection,
3181
NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.cups.cupsd.Notifier", "PrinterStopped",
3182
signal_variant, NULL);
3184
g_variant_unref (signal_variant);
3185
g_list_free_full (connections, g_object_unref);
3189
_cups_notifier_on_signal_printer_shutdown (
3190
CupsNotifier *object,
3191
const gchar *arg_text,
3192
const gchar *arg_printer_uri,
3193
const gchar *arg_printer_name,
3194
guint arg_printer_state,
3195
const gchar *arg_printer_state_reasons,
3196
gboolean arg_printer_is_accepting_jobs)
3198
CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (object);
3200
GList *connections, *l;
3201
GVariant *signal_variant;
3202
connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
3204
signal_variant = g_variant_ref_sink (g_variant_new ("(sssusb)",
3209
arg_printer_state_reasons,
3210
arg_printer_is_accepting_jobs));
3211
for (l = connections; l != NULL; l = l->next)
3213
GDBusConnection *connection = l->data;
3214
g_dbus_connection_emit_signal (connection,
3215
NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.cups.cupsd.Notifier", "PrinterShutdown",
3216
signal_variant, NULL);
3218
g_variant_unref (signal_variant);
3219
g_list_free_full (connections, g_object_unref);
3223
_cups_notifier_on_signal_printer_state_changed (
3224
CupsNotifier *object,
3225
const gchar *arg_text,
3226
const gchar *arg_printer_uri,
3227
const gchar *arg_printer_name,
3228
guint arg_printer_state,
3229
const gchar *arg_printer_state_reasons,
3230
gboolean arg_printer_is_accepting_jobs)
3232
CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (object);
3234
GList *connections, *l;
3235
GVariant *signal_variant;
3236
connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
3238
signal_variant = g_variant_ref_sink (g_variant_new ("(sssusb)",
3243
arg_printer_state_reasons,
3244
arg_printer_is_accepting_jobs));
3245
for (l = connections; l != NULL; l = l->next)
3247
GDBusConnection *connection = l->data;
3248
g_dbus_connection_emit_signal (connection,
3249
NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.cups.cupsd.Notifier", "PrinterStateChanged",
3250
signal_variant, NULL);
3252
g_variant_unref (signal_variant);
3253
g_list_free_full (connections, g_object_unref);
3257
_cups_notifier_on_signal_printer_finishings_changed (
3258
CupsNotifier *object,
3259
const gchar *arg_text,
3260
const gchar *arg_printer_uri,
3261
const gchar *arg_printer_name,
3262
guint arg_printer_state,
3263
const gchar *arg_printer_state_reasons,
3264
gboolean arg_printer_is_accepting_jobs)
3266
CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (object);
3268
GList *connections, *l;
3269
GVariant *signal_variant;
3270
connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
3272
signal_variant = g_variant_ref_sink (g_variant_new ("(sssusb)",
3277
arg_printer_state_reasons,
3278
arg_printer_is_accepting_jobs));
3279
for (l = connections; l != NULL; l = l->next)
3281
GDBusConnection *connection = l->data;
3282
g_dbus_connection_emit_signal (connection,
3283
NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.cups.cupsd.Notifier", "PrinterFinishingsChanged",
3284
signal_variant, NULL);
3286
g_variant_unref (signal_variant);
3287
g_list_free_full (connections, g_object_unref);
3291
_cups_notifier_on_signal_printer_media_changed (
3292
CupsNotifier *object,
3293
const gchar *arg_text,
3294
const gchar *arg_printer_uri,
3295
const gchar *arg_printer_name,
3296
guint arg_printer_state,
3297
const gchar *arg_printer_state_reasons,
3298
gboolean arg_printer_is_accepting_jobs)
3300
CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (object);
3302
GList *connections, *l;
3303
GVariant *signal_variant;
3304
connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
3306
signal_variant = g_variant_ref_sink (g_variant_new ("(sssusb)",
3311
arg_printer_state_reasons,
3312
arg_printer_is_accepting_jobs));
3313
for (l = connections; l != NULL; l = l->next)
3315
GDBusConnection *connection = l->data;
3316
g_dbus_connection_emit_signal (connection,
3317
NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.cups.cupsd.Notifier", "PrinterMediaChanged",
3318
signal_variant, NULL);
3320
g_variant_unref (signal_variant);
3321
g_list_free_full (connections, g_object_unref);
3325
_cups_notifier_on_signal_job_created (
3326
CupsNotifier *object,
3327
const gchar *arg_text,
3328
const gchar *arg_printer_uri,
3329
const gchar *arg_printer_name,
3330
guint arg_printer_state,
3331
const gchar *arg_printer_state_reasons,
3332
gboolean arg_printer_is_accepting_jobs,
3334
guint arg_job_state,
3335
const gchar *arg_job_state_reasons,
3336
const gchar *arg_job_name,
3337
guint arg_job_impressions_completed)
3339
CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (object);
3341
GList *connections, *l;
3342
GVariant *signal_variant;
3343
connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
3345
signal_variant = g_variant_ref_sink (g_variant_new ("(sssusbuussu)",
3350
arg_printer_state_reasons,
3351
arg_printer_is_accepting_jobs,
3354
arg_job_state_reasons,
3356
arg_job_impressions_completed));
3357
for (l = connections; l != NULL; l = l->next)
3359
GDBusConnection *connection = l->data;
3360
g_dbus_connection_emit_signal (connection,
3361
NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.cups.cupsd.Notifier", "JobCreated",
3362
signal_variant, NULL);
3364
g_variant_unref (signal_variant);
3365
g_list_free_full (connections, g_object_unref);
3369
_cups_notifier_on_signal_job_completed (
3370
CupsNotifier *object,
3371
const gchar *arg_text,
3372
const gchar *arg_printer_uri,
3373
const gchar *arg_printer_name,
3374
guint arg_printer_state,
3375
const gchar *arg_printer_state_reasons,
3376
gboolean arg_printer_is_accepting_jobs,
3378
guint arg_job_state,
3379
const gchar *arg_job_state_reasons,
3380
const gchar *arg_job_name,
3381
guint arg_job_impressions_completed)
3383
CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (object);
3385
GList *connections, *l;
3386
GVariant *signal_variant;
3387
connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
3389
signal_variant = g_variant_ref_sink (g_variant_new ("(sssusbuussu)",
3394
arg_printer_state_reasons,
3395
arg_printer_is_accepting_jobs,
3398
arg_job_state_reasons,
3400
arg_job_impressions_completed));
3401
for (l = connections; l != NULL; l = l->next)
3403
GDBusConnection *connection = l->data;
3404
g_dbus_connection_emit_signal (connection,
3405
NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.cups.cupsd.Notifier", "JobCompleted",
3406
signal_variant, NULL);
3408
g_variant_unref (signal_variant);
3409
g_list_free_full (connections, g_object_unref);
3413
_cups_notifier_on_signal_job_state (
3414
CupsNotifier *object,
3415
const gchar *arg_text,
3416
const gchar *arg_printer_uri,
3417
const gchar *arg_printer_name,
3418
guint arg_printer_state,
3419
const gchar *arg_printer_state_reasons,
3420
gboolean arg_printer_is_accepting_jobs,
3422
guint arg_job_state,
3423
const gchar *arg_job_state_reasons,
3424
const gchar *arg_job_name,
3425
guint arg_job_impressions_completed)
3427
CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (object);
3429
GList *connections, *l;
3430
GVariant *signal_variant;
3431
connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
3433
signal_variant = g_variant_ref_sink (g_variant_new ("(sssusbuussu)",
3438
arg_printer_state_reasons,
3439
arg_printer_is_accepting_jobs,
3442
arg_job_state_reasons,
3444
arg_job_impressions_completed));
3445
for (l = connections; l != NULL; l = l->next)
3447
GDBusConnection *connection = l->data;
3448
g_dbus_connection_emit_signal (connection,
3449
NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.cups.cupsd.Notifier", "JobState",
3450
signal_variant, NULL);
3452
g_variant_unref (signal_variant);
3453
g_list_free_full (connections, g_object_unref);
3456
static void cups_notifier_skeleton_iface_init (CupsNotifierIface *iface);
3457
G_DEFINE_TYPE_WITH_CODE (CupsNotifierSkeleton, cups_notifier_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
3458
G_IMPLEMENT_INTERFACE (CUPS_TYPE_NOTIFIER, cups_notifier_skeleton_iface_init));
3461
cups_notifier_skeleton_finalize (GObject *object)
3463
CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (object);
3464
g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free);
3465
if (skeleton->priv->changed_properties_idle_source != NULL)
3466
g_source_destroy (skeleton->priv->changed_properties_idle_source);
3467
g_main_context_unref (skeleton->priv->context);
3468
g_mutex_clear (&skeleton->priv->lock);
3469
G_OBJECT_CLASS (cups_notifier_skeleton_parent_class)->finalize (object);
3473
cups_notifier_skeleton_init (CupsNotifierSkeleton *skeleton)
3475
skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, CUPS_TYPE_NOTIFIER_SKELETON, CupsNotifierSkeletonPrivate);
3476
g_mutex_init (&skeleton->priv->lock);
3477
skeleton->priv->context = g_main_context_ref_thread_default ();
3481
cups_notifier_skeleton_class_init (CupsNotifierSkeletonClass *klass)
3483
GObjectClass *gobject_class;
3484
GDBusInterfaceSkeletonClass *skeleton_class;
3486
g_type_class_add_private (klass, sizeof (CupsNotifierSkeletonPrivate));
3488
gobject_class = G_OBJECT_CLASS (klass);
3489
gobject_class->finalize = cups_notifier_skeleton_finalize;
3491
skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass);
3492
skeleton_class->get_info = cups_notifier_skeleton_dbus_interface_get_info;
3493
skeleton_class->get_properties = cups_notifier_skeleton_dbus_interface_get_properties;
3494
skeleton_class->flush = cups_notifier_skeleton_dbus_interface_flush;
3495
skeleton_class->get_vtable = cups_notifier_skeleton_dbus_interface_get_vtable;
3499
cups_notifier_skeleton_iface_init (CupsNotifierIface *iface)
3501
iface->server_started = _cups_notifier_on_signal_server_started;
3502
iface->server_restarted = _cups_notifier_on_signal_server_restarted;
3503
iface->server_stopped = _cups_notifier_on_signal_server_stopped;
3504
iface->server_audit = _cups_notifier_on_signal_server_audit;
3505
iface->printer_added = _cups_notifier_on_signal_printer_added;
3506
iface->printer_deleted = _cups_notifier_on_signal_printer_deleted;
3507
iface->printer_modified = _cups_notifier_on_signal_printer_modified;
3508
iface->printer_restarted = _cups_notifier_on_signal_printer_restarted;
3509
iface->printer_stopped = _cups_notifier_on_signal_printer_stopped;
3510
iface->printer_shutdown = _cups_notifier_on_signal_printer_shutdown;
3511
iface->printer_state_changed = _cups_notifier_on_signal_printer_state_changed;
3512
iface->printer_finishings_changed = _cups_notifier_on_signal_printer_finishings_changed;
3513
iface->printer_media_changed = _cups_notifier_on_signal_printer_media_changed;
3514
iface->job_created = _cups_notifier_on_signal_job_created;
3515
iface->job_completed = _cups_notifier_on_signal_job_completed;
3516
iface->job_state = _cups_notifier_on_signal_job_state;
3520
* cups_notifier_skeleton_new:
3522
* Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-cups-cupsd-Notifier.top_of_page">org.cups.cupsd.Notifier</link>.
3524
* Returns: (transfer full) (type CupsNotifierSkeleton): The skeleton object.
3527
cups_notifier_skeleton_new (void)
3529
return CUPS_NOTIFIER (g_object_new (CUPS_TYPE_NOTIFIER_SKELETON, NULL));