static void mm_plugin_class_init (MMPluginClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); g_type_class_add_private (object_class, sizeof (MMPluginPrivate)); /* Virtual methods */ object_class->get_property = get_property; object_class->set_property = set_property; object_class->finalize = finalize; g_object_class_install_property (object_class, PROP_NAME, g_param_spec_string (MM_PLUGIN_NAME, "Name", "Name", NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_ALLOWED_SUBSYSTEMS, g_param_spec_boxed (MM_PLUGIN_ALLOWED_SUBSYSTEMS, "Allowed subsystems", "List of subsystems this plugin can support, " "should be an array of strings finished with 'NULL'", G_TYPE_STRV, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_ALLOWED_DRIVERS, g_param_spec_boxed (MM_PLUGIN_ALLOWED_DRIVERS, "Allowed drivers", "List of drivers this plugin can support, " "should be an array of strings finished with 'NULL'", G_TYPE_STRV, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_FORBIDDEN_DRIVERS, g_param_spec_boxed (MM_PLUGIN_FORBIDDEN_DRIVERS, "Forbidden drivers", "List of drivers this plugin cannot support, " "should be an array of strings finished with 'NULL'", G_TYPE_STRV, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_ALLOWED_VENDOR_IDS, g_param_spec_boxed (MM_PLUGIN_ALLOWED_VENDOR_IDS, "Allowed vendor IDs", "List of vendor IDs this plugin can support, " "should be an array of guint16 finished with '0'", MM_TYPE_UINT16_ARRAY, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_ALLOWED_PRODUCT_IDS, g_param_spec_boxed (MM_PLUGIN_ALLOWED_PRODUCT_IDS, "Allowed product IDs", "List of vendor+product ID pairs this plugin can support, " "should be an array of mm_uint16_pair finished with '0,0'", MM_TYPE_UINT16_PAIR_ARRAY, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_FORBIDDEN_PRODUCT_IDS, g_param_spec_boxed (MM_PLUGIN_FORBIDDEN_PRODUCT_IDS, "Forbidden product IDs", "List of vendor+product ID pairs this plugin cannot support, " "should be an array of mm_uint16_pair finished with '0,0'", MM_TYPE_UINT16_PAIR_ARRAY, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_ALLOWED_VENDOR_STRINGS, g_param_spec_boxed (MM_PLUGIN_ALLOWED_VENDOR_STRINGS, "Allowed vendor strings", "List of vendor strings this plugin can support, " "should be an array of strings finished with 'NULL'", G_TYPE_STRV, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_ALLOWED_PRODUCT_STRINGS, g_param_spec_boxed (MM_PLUGIN_ALLOWED_PRODUCT_STRINGS, "Allowed product strings", "List of vendor+product string pairs this plugin can support, " "should be an array of mm_str_pair finished with 'NULL,NULL'", MM_TYPE_STR_PAIR_ARRAY, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_FORBIDDEN_PRODUCT_STRINGS, g_param_spec_boxed (MM_PLUGIN_FORBIDDEN_PRODUCT_STRINGS, "Forbidden product strings", "List of vendor+product string pairs this plugin cannot support, " "should be an array of mm_str_pair finished with 'NULL,NULL'", MM_TYPE_STR_PAIR_ARRAY, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_ALLOWED_UDEV_TAGS, g_param_spec_boxed (MM_PLUGIN_ALLOWED_UDEV_TAGS, "Allowed Udev tags", "List of udev tags this plugin may expect, " "should be an array of strings finished with 'NULL'", G_TYPE_STRV, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_ALLOWED_AT, g_param_spec_boolean (MM_PLUGIN_ALLOWED_AT, "Allowed AT", "Whether AT ports are allowed in this plugin", FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_ALLOWED_SINGLE_AT, g_param_spec_boolean (MM_PLUGIN_ALLOWED_SINGLE_AT, "Allowed single AT", "Whether just a single AT port is allowed in this plugin. ", FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_ALLOWED_QCDM, g_param_spec_boolean (MM_PLUGIN_ALLOWED_QCDM, "Allowed QCDM", "Whether QCDM ports are allowed in this plugin", FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_ICERA_PROBE, g_param_spec_boolean (MM_PLUGIN_ICERA_PROBE, "Icera probe", "Request to probe for Icera support.", FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_ALLOWED_ICERA, g_param_spec_boolean (MM_PLUGIN_ALLOWED_ICERA, "Allowed Icera", "Whether Icera support is allowed in this plugin.", FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_FORBIDDEN_ICERA, g_param_spec_boolean (MM_PLUGIN_FORBIDDEN_ICERA, "Allowed Icera", "Whether Icera support is forbidden in this plugin.", FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_CUSTOM_AT_PROBE, g_param_spec_boxed (MM_PLUGIN_CUSTOM_AT_PROBE, "Custom AT Probe", "Custom set of commands to probe for AT support, " "should be an array of MMPortProbeAtCommand structs " "finished with 'NULL'", MM_TYPE_POINTER_ARRAY, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_CUSTOM_INIT, g_param_spec_boxed (MM_PLUGIN_CUSTOM_INIT, "Custom initialization", "Asynchronous method setup which contains the " "custom initializations this plugin needs.", MM_TYPE_ASYNC_METHOD, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_SEND_DELAY, g_param_spec_uint64 (MM_PLUGIN_SEND_DELAY, "Send delay", "Send delay for characters in the AT port, " "in microseconds", 0, G_MAXUINT64, 100000, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_REMOVE_ECHO, g_param_spec_boolean (MM_PLUGIN_REMOVE_ECHO, "Remove echo", "Remove echo out of the AT responses", TRUE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); }
static void odccm_device_manager_class_init (OdccmDeviceManagerClass *dev_mgr_class) { GObjectClass *obj_class = G_OBJECT_CLASS (dev_mgr_class); GParamSpec *param_spec; g_type_class_add_private (dev_mgr_class, sizeof (OdccmDeviceManagerPrivate)); obj_class->constructor = odccm_device_manager_constructor; obj_class->get_property = odccm_device_manager_get_property; obj_class->set_property = odccm_device_manager_set_property; obj_class->dispose = odccm_device_manager_dispose; obj_class->finalize = odccm_device_manager_finalize; param_spec = g_param_spec_string ("device-ip", "Device IP", "The device's IP address.", NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB); g_object_class_install_property (obj_class, PROP_DEVICE_IP_ADDRESS, param_spec); param_spec = g_param_spec_string ("local-ip", "Local IP", "The local IP address.", NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB); g_object_class_install_property (obj_class, PROP_LOCAL_IP_ADDRESS, param_spec); param_spec = g_param_spec_string ("local-netmask", "Local netmask", "The local netmask.", NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB); g_object_class_install_property (obj_class, PROP_LOCAL_NETMASK, param_spec); param_spec = g_param_spec_string ("local-broadcast", "Local broadcast", "The local broadcast address.", NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB); g_object_class_install_property (obj_class, PROP_LOCAL_BROADCAST, param_spec); signals[DEVICE_ATTACHED] = g_signal_new ("device-attached", G_OBJECT_CLASS_TYPE (dev_mgr_class), G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); signals[DEVICE_DETACHED] = g_signal_new ("device-detached", G_OBJECT_CLASS_TYPE (dev_mgr_class), G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); signals[DEVICE_CONNECTED] = g_signal_new ("device-connected", G_OBJECT_CLASS_TYPE (dev_mgr_class), G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, 0, NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); signals[DEVICE_DISCONNECTED] = g_signal_new ("device-disconnected", G_OBJECT_CLASS_TYPE (dev_mgr_class), G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, 0, NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); dbus_g_object_type_install_info (G_TYPE_FROM_CLASS (dev_mgr_class), &dbus_glib_odccm_device_manager_object_info); }
static void mate_druid_class_init (MateDruidClass *klass) { GtkObjectClass *object_class; GObjectClass *gobject_class; GtkWidgetClass *widget_class; GtkContainerClass *container_class; object_class = (GtkObjectClass*) klass; gobject_class = (GObjectClass*) klass; widget_class = (GtkWidgetClass*) klass; container_class = (GtkContainerClass*) klass; druid_signals[CANCEL] = g_signal_new ("cancel", G_TYPE_FROM_CLASS (gobject_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (MateDruidClass, cancel), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); druid_signals[HELP] = g_signal_new ("help", G_TYPE_FROM_CLASS (gobject_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (MateDruidClass, help), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); object_class->destroy = mate_druid_destroy; gobject_class->set_property = mate_druid_set_property; gobject_class->get_property = mate_druid_get_property; gobject_class->finalize = mate_druid_finalize; widget_class->size_request = mate_druid_size_request; widget_class->size_allocate = mate_druid_size_allocate; widget_class->map = mate_druid_map; widget_class->unmap = mate_druid_unmap; widget_class->expose_event = mate_druid_expose; widget_class->get_accessible = mate_druid_get_accessible; container_class->forall = mate_druid_forall; container_class->add = mate_druid_add; container_class->remove = mate_druid_remove; container_class->child_type = mate_druid_child_type; g_object_class_install_property (gobject_class, PROP_SHOW_FINISH, g_param_spec_boolean ("show_finish", _("Show Finish"), _("Show the 'Finish' button instead of the 'Next' button"), FALSE, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_SHOW_HELP, g_param_spec_boolean ("show_help", _("Show Help"), _("Show the 'Help' button"), FALSE, G_PARAM_READWRITE)); }
static void fs_stream_transmitter_class_init (FsStreamTransmitterClass *klass) { GObjectClass *gobject_class; gobject_class = (GObjectClass *) klass; gobject_class->set_property = fs_stream_transmitter_set_property; gobject_class->get_property = fs_stream_transmitter_get_property; /** * FsStreamTransmitter:sending: * * A network source #GstElement to be used by the #FsSession * */ g_object_class_install_property (gobject_class, PROP_SENDING, g_param_spec_boolean ("sending", "Whether to send from this transmitter", "If set to FALSE, the transmitter will stop sending to this person", TRUE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** * FsStreamTransmitter:preferred-local-candidate: * * The list of preferred local candidates for this stream * It is a #GList of #FsCandidates * */ g_object_class_install_property (gobject_class, PROP_PREFERRED_LOCAL_CANDIDATES, g_param_spec_boxed ("preferred-local-candidates", "The preferred candidates", "A GList of FsCandidates", FS_TYPE_CANDIDATE_LIST, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** * FsStreamTransmitter:associate-on-source * * This tells the stream transmitter to associate incoming data with this * based on the source without looking at the content if possible. * */ g_object_class_install_property (gobject_class, PROP_ASSOCIATE_ON_SOURCE, g_param_spec_boolean ("associate-on-source", "Associate incoming data based on the source address", "Whether to associate incoming data stream based on the source address", TRUE, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** * FsStreamTransmitter::error: * @self: #FsStreamTransmitter that emitted the signal * @errorno: The number of the error * @error_msg: Error message to be displayed to user * @debug_msg: Debugging error message * * This signal is emitted in any error condition * */ signals[ERROR_SIGNAL] = g_signal_new ("error", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL, _fs_marshal_VOID__ENUM_STRING_STRING, G_TYPE_NONE, 3, FS_TYPE_ERROR, G_TYPE_STRING, G_TYPE_STRING); /** * FsStreamTransmitter::new-active-candidate-pair: * @self: #FsStreamTransmitter that emitted the signal * @local_candidate: #FsCandidate of the local candidate being used * @remote_candidate: #FsCandidate of the remote candidate being used * * This signal is emitted when there is a new active chandidate pair that has * been established. This is specially useful for ICE where the active * candidate pair can change automatically due to network conditions. The user * must not modify the candidates and must copy them if he wants to use them * outside the callback scope. * */ signals[NEW_ACTIVE_CANDIDATE_PAIR] = g_signal_new ("new-active-candidate-pair", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL, _fs_marshal_VOID__BOXED_BOXED, G_TYPE_NONE, 2, FS_TYPE_CANDIDATE, FS_TYPE_CANDIDATE); /** * FsStreamTransmitter::new-local-candidate: * @self: #FsStream that emitted the signal * @local_candidate: #FsCandidate of the local candidate * * This signal is emitted when a new local candidate is discovered. * */ signals[NEW_LOCAL_CANDIDATE] = g_signal_new ("new-local-candidate", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__BOXED, G_TYPE_NONE, 1, FS_TYPE_CANDIDATE); /** * FsStreamTransmitter::local-candidates-prepared: * @self: #FsStreamTransmitter that emitted the signal * * This signal is emitted when all local candidates have been * prepared, an ICE implementation would send its SDP offer or answer. * */ signals[LOCAL_CANDIDATES_PREPARED] = g_signal_new ("local-candidates-prepared", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); /** * FsStreamTransmitter::known-source-packet-received: * @self: #FsStreamTransmitter that emitted the signal * @component: The Component on which this buffer was received * @buffer: the #GstBuffer coming from the known source * * This signal is emitted when a buffer coming from a confirmed known source * is received. */ signals[KNOWN_SOURCE_PACKET_RECEIVED] = g_signal_new ("known-source-packet-received", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL, _fs_marshal_VOID__UINT_POINTER, G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_POINTER); /** * FsStreamTransmitter::state-changed * @self: #FsStreamTransmitter that emitted the signal * @component: the id of the component which state has changed * @state: the new state of the component * * This signal is emitted when the ICE state (or equivalent) of the component * changes */ signals[STATE_CHANGED] = g_signal_new ("state-changed", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL, _fs_marshal_VOID__UINT_ENUM, G_TYPE_NONE, 2, G_TYPE_UINT, FS_TYPE_STREAM_STATE); g_type_class_add_private (klass, sizeof (FsStreamTransmitterPrivate)); }
static void inf_text_gtk_viewport_class_init(gpointer g_class, gpointer class_data) { GObjectClass* object_class; object_class = G_OBJECT_CLASS(g_class); parent_class = G_OBJECT_CLASS(g_type_class_peek_parent(g_class)); g_type_class_add_private(g_class, sizeof(InfTextGtkViewportPrivate)); object_class->dispose = inf_text_gtk_viewport_dispose; object_class->set_property = inf_text_gtk_viewport_set_property; object_class->get_property = inf_text_gtk_viewport_get_property; g_object_class_install_property( object_class, PROP_SCROLLED_WINDOW, g_param_spec_object( "scrolled-window", "Scrolled Window", "The underlying GtkScrolledWindow", GTK_TYPE_SCROLLED_WINDOW, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY ) ); g_object_class_install_property( object_class, PROP_USER_TABLE, g_param_spec_object( "user-table", "User table", "The user table containing the users of the session shown in the " "viewport", INF_TYPE_USER_TABLE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY ) ); g_object_class_install_property( object_class, PROP_ACTIVE_USER, g_param_spec_object( "active-user", "Active user", "The user for which to show the viewport", INF_TEXT_TYPE_USER, G_PARAM_READWRITE ) ); g_object_class_install_property( object_class, PROP_SHOW_USER_MARKERS, g_param_spec_boolean( "show-user-markers", "Show user markers", "Whether to indicate the position of non-local user's cursors in the " "scrollbar", TRUE, G_PARAM_READWRITE ) ); }
static void gnc_schedxaction_class_init (SchedXactionClass *klass) { GObjectClass *gobject_class = G_OBJECT_CLASS (klass); gobject_class->dispose = gnc_schedxaction_dispose; gobject_class->finalize = gnc_schedxaction_finalize; gobject_class->set_property = gnc_schedxaction_set_property; gobject_class->get_property = gnc_schedxaction_get_property; g_object_class_install_property (gobject_class, PROP_NAME, g_param_spec_string ("name", "Scheduled Transaction Name", "The name is an arbitrary string " "assigned by the user. It is intended to " "a short, 5 to 30 character long string " "that is displayed by the GUI.", NULL, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_ENABLED, g_param_spec_boolean ("enabled", "Enabled", "TRUE if the scheduled transaction is enabled.", TRUE, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_NUM_OCCURANCE, g_param_spec_int ("num-occurance", "Number of occurances", "Total number of occurances for this scheduled transaction.", 0, G_MAXINT16, 1, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_REM_OCCURANCE, g_param_spec_int ("rem-occurance", "Number of occurances remaining", "Remaining number of occurances for this scheduled transaction.", 0, G_MAXINT16, 1, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_AUTO_CREATE, g_param_spec_boolean ("auto-create", "Auto-create", "TRUE if the transaction will be automatically " "created when its time comes.", FALSE, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_AUTO_CREATE_NOTIFY, g_param_spec_boolean ("auto-create-notify", "Auto-create-notify", "TRUE if the the user will be notified when the transaction " "is automatically created.", FALSE, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_ADVANCE_CREATION_DAYS, g_param_spec_int ("advance-creation-days", "Days in advance to create", "Number of days in advance to create this scheduled transaction.", 0, G_MAXINT16, 0, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_ADVANCE_REMINDER_DAYS, g_param_spec_int ("advance-reminder-days", "Days in advance to remind", "Number of days in advance to remind about this scheduled transaction.", 0, G_MAXINT16, 0, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_START_DATE, g_param_spec_boxed("start-date", "Start Date", "Date for the first occurence for the scheduled transaction.", G_TYPE_DATE, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_END_DATE, g_param_spec_boxed("end-date", "End Date", "Date for the scheduled transaction to end.", G_TYPE_DATE, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_LAST_OCCURANCE_DATE, g_param_spec_boxed("last-occurance-date", "Last Occurance Date", "Date for the last occurance of the scheduled transaction.", G_TYPE_DATE, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_INSTANCE_COUNT, g_param_spec_int ("instance-count", "Instance count", "Number of instances of this scheduled transaction.", 0, G_MAXINT16, 0, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_TEMPLATE_ACCOUNT, g_param_spec_object("template-account", "Template account", "Account which holds the template transactions.", GNC_TYPE_ACCOUNT, G_PARAM_READWRITE)); }
static void nm_dhcp_client_class_init (NMDHCPClientClass *client_class) { GObjectClass *object_class = G_OBJECT_CLASS (client_class); g_type_class_add_private (client_class, sizeof (NMDHCPClientPrivate)); /* virtual methods */ object_class->dispose = dispose; object_class->get_property = get_property; object_class->set_property = set_property; client_class->stop = stop; client_class->get_duid = get_duid; g_object_class_install_property (object_class, PROP_IFACE, g_param_spec_string (NM_DHCP_CLIENT_INTERFACE, "iface", "Interface", NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_HWADDR, g_param_spec_boxed (NM_DHCP_CLIENT_HWADDR, "hwaddr", "hardware address", G_TYPE_BYTE_ARRAY, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_IPV6, g_param_spec_boolean (NM_DHCP_CLIENT_IPV6, "ipv6", "IPv6", FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_UUID, g_param_spec_string (NM_DHCP_CLIENT_UUID, "uuid", "UUID", NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_TIMEOUT, g_param_spec_uint (NM_DHCP_CLIENT_TIMEOUT, "timeout", "Timeout", 0, G_MAXUINT, 45, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); /* signals */ signals[STATE_CHANGED] = g_signal_new ("state-changed", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (NMDHCPClientClass, state_changed), NULL, NULL, g_cclosure_marshal_VOID__UINT, G_TYPE_NONE, 1, G_TYPE_UINT); signals[TIMEOUT] = g_signal_new ("timeout", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (NMDHCPClientClass, timeout), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); signals[REMOVE] = g_signal_new ("remove", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (NMDHCPClientClass, remove), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); }
static void gst_hls_demux_class_init (GstHLSDemuxClass * klass) { GObjectClass *gobject_class; GstElementClass *element_class; GstAdaptiveDemuxClass *adaptivedemux_class; gobject_class = (GObjectClass *) klass; element_class = (GstElementClass *) klass; adaptivedemux_class = (GstAdaptiveDemuxClass *) klass; gobject_class->set_property = gst_hls_demux_set_property; gobject_class->get_property = gst_hls_demux_get_property; gobject_class->dispose = gst_hls_demux_dispose; #ifndef GST_REMOVE_DEPRECATED g_object_class_install_property (gobject_class, PROP_FRAGMENTS_CACHE, g_param_spec_uint ("fragments-cache", "Fragments cache", "Number of fragments needed to be cached to start playing " "(DEPRECATED: Has no effect since 1.3.1)", 1, G_MAXUINT, DEFAULT_FRAGMENTS_CACHE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_DEPRECATED)); #endif element_class->change_state = GST_DEBUG_FUNCPTR (gst_hls_demux_change_state); gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&srctemplate)); gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&sinktemplate)); gst_element_class_set_static_metadata (element_class, "HLS Demuxer", "Codec/Demuxer/Adaptive", "HTTP Live Streaming demuxer", "Marc-Andre Lureau <*****@*****.**>\n" "Andoni Morales Alastruey <*****@*****.**>"); adaptivedemux_class->is_live = gst_hls_demux_is_live; adaptivedemux_class->get_live_seek_range = gst_hls_demux_get_live_seek_range; adaptivedemux_class->get_duration = gst_hls_demux_get_duration; adaptivedemux_class->get_manifest_update_interval = gst_hls_demux_get_manifest_update_interval; adaptivedemux_class->process_manifest = gst_hls_demux_process_manifest; adaptivedemux_class->update_manifest = gst_hls_demux_update_manifest; adaptivedemux_class->reset = gst_hls_demux_reset; adaptivedemux_class->seek = gst_hls_demux_seek; adaptivedemux_class->stream_has_next_fragment = gst_hls_demux_stream_has_next_fragment; adaptivedemux_class->stream_advance_fragment = gst_hls_demux_advance_fragment; adaptivedemux_class->stream_update_fragment_info = gst_hls_demux_update_fragment_info; adaptivedemux_class->stream_select_bitrate = gst_hls_demux_select_bitrate; adaptivedemux_class->start_fragment = gst_hls_demux_start_fragment; adaptivedemux_class->finish_fragment = gst_hls_demux_finish_fragment; adaptivedemux_class->data_received = gst_hls_demux_data_received; GST_DEBUG_CATEGORY_INIT (gst_hls_demux_debug, "hlsdemux", 0, "hlsdemux element"); }
static void gst_fake_src_class_init (GstFakeSrcClass * klass) { GObjectClass *gobject_class; GstBaseSrcClass *gstbase_src_class; gobject_class = G_OBJECT_CLASS (klass); gstbase_src_class = GST_BASE_SRC_CLASS (klass); gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_fake_src_finalize); gobject_class->set_property = GST_DEBUG_FUNCPTR (gst_fake_src_set_property); gobject_class->get_property = GST_DEBUG_FUNCPTR (gst_fake_src_get_property); /* FIXME: this is not implemented; would make sense once basesrc and fakesrc support multiple pads g_object_class_install_property (gobject_class, PROP_OUTPUT, g_param_spec_enum ("output", "output", "Output method (currently unused)", GST_TYPE_FAKE_SRC_OUTPUT, DEFAULT_OUTPUT, G_PARAM_READWRITE)); */ g_object_class_install_property (gobject_class, PROP_DATA, g_param_spec_enum ("data", "data", "Data allocation method", GST_TYPE_FAKE_SRC_DATA, DEFAULT_DATA, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_SIZETYPE, g_param_spec_enum ("sizetype", "sizetype", "How to determine buffer sizes", GST_TYPE_FAKE_SRC_SIZETYPE, DEFAULT_SIZETYPE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_SIZEMIN, g_param_spec_int ("sizemin", "sizemin", "Minimum buffer size", 0, G_MAXINT, DEFAULT_SIZEMIN, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_SIZEMAX, g_param_spec_int ("sizemax", "sizemax", "Maximum buffer size", 0, G_MAXINT, DEFAULT_SIZEMAX, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_PARENTSIZE, g_param_spec_int ("parentsize", "parentsize", "Size of parent buffer for sub-buffered allocation", 0, G_MAXINT, DEFAULT_PARENTSIZE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_FILLTYPE, g_param_spec_enum ("filltype", "filltype", "How to fill the buffer, if at all", GST_TYPE_FAKE_SRC_FILLTYPE, DEFAULT_FILLTYPE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_DATARATE, g_param_spec_int ("datarate", "Datarate", "Timestamps buffers with number of bytes per second (0 = none)", 0, G_MAXINT, DEFAULT_DATARATE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_SYNC, g_param_spec_boolean ("sync", "Sync", "Sync to the clock to the datarate", DEFAULT_SYNC, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_PATTERN, g_param_spec_string ("pattern", "pattern", "pattern", DEFAULT_PATTERN, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_LAST_MESSAGE, g_param_spec_string ("last-message", "last-message", "The last status message", NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_SILENT, g_param_spec_boolean ("silent", "Silent", "Don't produce last_message events", DEFAULT_SILENT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_SIGNAL_HANDOFFS, g_param_spec_boolean ("signal-handoffs", "Signal handoffs", "Send a signal before pushing the buffer", DEFAULT_SIGNAL_HANDOFFS, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_DUMP, g_param_spec_boolean ("dump", "Dump", "Dump buffer contents to stdout", DEFAULT_DUMP, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_CAN_ACTIVATE_PUSH, g_param_spec_boolean ("can-activate-push", "Can activate push", "Can activate in push mode", DEFAULT_CAN_ACTIVATE_PUSH, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_CAN_ACTIVATE_PULL, g_param_spec_boolean ("can-activate-pull", "Can activate pull", "Can activate in pull mode", DEFAULT_CAN_ACTIVATE_PULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_IS_LIVE, g_param_spec_boolean ("is-live", "Is this a live source", "True if the element cannot produce data in PAUSED", FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); /** * GstFakeSrc:format * * Set the format of the newsegment events to produce. * * Since: 0.10.20 */ g_object_class_install_property (gobject_class, PROP_FORMAT, g_param_spec_enum ("format", "Format", "The format of the segment events", GST_TYPE_FORMAT, DEFAULT_FORMAT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** * GstFakeSrc::handoff: * @fakesrc: the fakesrc instance * @buffer: the buffer that will be pushed * @pad: the pad that will sent it * * This signal gets emitted before sending the buffer. */ gst_fake_src_signals[SIGNAL_HANDOFF] = g_signal_new ("handoff", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstFakeSrcClass, handoff), NULL, NULL, marshal_VOID__MINIOBJECT_OBJECT, G_TYPE_NONE, 2, GST_TYPE_BUFFER, GST_TYPE_PAD); gstbase_src_class->is_seekable = GST_DEBUG_FUNCPTR (gst_fake_src_is_seekable); gstbase_src_class->start = GST_DEBUG_FUNCPTR (gst_fake_src_start); gstbase_src_class->stop = GST_DEBUG_FUNCPTR (gst_fake_src_stop); gstbase_src_class->event = GST_DEBUG_FUNCPTR (gst_fake_src_event_handler); gstbase_src_class->get_times = GST_DEBUG_FUNCPTR (gst_fake_src_get_times); gstbase_src_class->create = GST_DEBUG_FUNCPTR (gst_fake_src_create); }
static void tpaw_irc_server_class_init (TpawIrcServerClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); GParamSpec *param_spec; object_class->get_property = tpaw_irc_server_get_property; object_class->set_property = tpaw_irc_server_set_property; g_type_class_add_private (object_class, sizeof (TpawIrcServerPriv)); object_class->finalize = tpaw_irc_server_finalize; param_spec = g_param_spec_string ( "address", "Server address", "The address of this server", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB); g_object_class_install_property (object_class, PROP_ADDRESS, param_spec); param_spec = g_param_spec_uint ( "port", "Server port", "The port to use to connect on this server", 1, G_MAXUINT16, 6667, G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB); g_object_class_install_property (object_class, PROP_PORT, param_spec); param_spec = g_param_spec_boolean ( "ssl", "SSL", "If this server needs SSL connection", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB); g_object_class_install_property (object_class, PROP_SSL, param_spec); /** * TpawIrcServer::modified: * @server: the object that received the signal * * Emitted when a property of the server is modified. * */ signals[MODIFIED] = g_signal_new ( "modified", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, 0, NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 0); }
static void rb_generic_player_source_class_init (RBGenericPlayerSourceClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); RBDisplayPageClass *page_class = RB_DISPLAY_PAGE_CLASS (klass); RBSourceClass *source_class = RB_SOURCE_CLASS (klass); RBMediaPlayerSourceClass *mps_class = RB_MEDIA_PLAYER_SOURCE_CLASS (klass); object_class->set_property = impl_set_property; object_class->get_property = impl_get_property; object_class->constructed = impl_constructed; object_class->dispose = impl_dispose; page_class->delete_thyself = impl_delete_thyself; page_class->selected = impl_selected; source_class->can_delete = impl_can_delete; source_class->delete_selected = impl_delete_selected; source_class->can_move_to_trash = (RBSourceFeatureFunc) rb_false_function; source_class->can_paste = impl_can_paste; source_class->paste = impl_paste; source_class->want_uri = rb_device_source_want_uri; source_class->uri_is_source = rb_device_source_uri_is_source; mps_class->get_entries = impl_get_entries; mps_class->get_capacity = impl_get_capacity; mps_class->get_free_space = impl_get_free_space; mps_class->delete_entries = impl_delete_entries; mps_class->show_properties = impl_show_properties; mps_class->add_playlist = impl_add_playlist; mps_class->remove_playlists = impl_remove_playlists; klass->get_mount_path = default_get_mount_path; klass->load_playlists = default_load_playlists; klass->uri_from_playlist_uri = default_uri_from_playlist_uri; klass->uri_to_playlist_uri = default_uri_to_playlist_uri; g_object_class_install_property (object_class, PROP_ERROR_ENTRY_TYPE, g_param_spec_object ("error-entry-type", "Error entry type", "Entry type to use for import error entries added by this source", RHYTHMDB_TYPE_ENTRY_TYPE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_IGNORE_ENTRY_TYPE, g_param_spec_object ("ignore-entry-type", "Ignore entry type", "Entry type to use for ignore entries added by this source", RHYTHMDB_TYPE_ENTRY_TYPE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_DEVICE_INFO, g_param_spec_object ("device-info", "device info", "device information object", MPID_TYPE_DEVICE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_MOUNT, g_param_spec_object ("mount", "mount", "GMount object", G_TYPE_MOUNT, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_type_class_add_private (klass, sizeof (RBGenericPlayerSourcePrivate)); }
static void gedit_multi_notebook_class_init (GeditMultiNotebookClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->dispose = gedit_multi_notebook_dispose; object_class->finalize = gedit_multi_notebook_finalize; object_class->get_property = gedit_multi_notebook_get_property; object_class->set_property = gedit_multi_notebook_set_property; signals[NOTEBOOK_ADDED] = g_signal_new ("notebook-added", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GeditMultiNotebookClass, notebook_added), NULL, NULL, NULL, G_TYPE_NONE, 1, GEDIT_TYPE_NOTEBOOK); signals[NOTEBOOK_REMOVED] = g_signal_new ("notebook-removed", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GeditMultiNotebookClass, notebook_removed), NULL, NULL, NULL, G_TYPE_NONE, 1, GEDIT_TYPE_NOTEBOOK); signals[TAB_ADDED] = g_signal_new ("tab-added", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GeditMultiNotebookClass, tab_added), NULL, NULL, NULL, G_TYPE_NONE, 2, GEDIT_TYPE_NOTEBOOK, GEDIT_TYPE_TAB); signals[TAB_REMOVED] = g_signal_new ("tab-removed", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GeditMultiNotebookClass, tab_removed), NULL, NULL, NULL, G_TYPE_NONE, 2, GEDIT_TYPE_NOTEBOOK, GEDIT_TYPE_TAB); signals[SWITCH_TAB] = g_signal_new ("switch-tab", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GeditMultiNotebookClass, switch_tab), NULL, NULL, NULL, G_TYPE_NONE, 4, GEDIT_TYPE_NOTEBOOK, GEDIT_TYPE_TAB, GEDIT_TYPE_NOTEBOOK, GEDIT_TYPE_TAB); signals[TAB_CLOSE_REQUEST] = g_signal_new ("tab-close-request", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GeditMultiNotebookClass, tab_close_request), NULL, NULL, NULL, G_TYPE_NONE, 2, GEDIT_TYPE_NOTEBOOK, GEDIT_TYPE_TAB); signals[CREATE_WINDOW] = g_signal_new ("create-window", G_TYPE_FROM_CLASS (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GeditMultiNotebookClass, create_window), NULL, NULL, NULL, GTK_TYPE_NOTEBOOK, 4, GEDIT_TYPE_NOTEBOOK, GTK_TYPE_WIDGET, G_TYPE_INT, G_TYPE_INT); signals[PAGE_REORDERED] = g_signal_new ("page-reordered", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GeditMultiNotebookClass, page_reordered), NULL, NULL, NULL, G_TYPE_NONE, 3, GEDIT_TYPE_NOTEBOOK, GTK_TYPE_WIDGET, G_TYPE_INT); signals[SHOW_POPUP_MENU] = g_signal_new ("show-popup-menu", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GeditMultiNotebookClass, show_popup_menu), NULL, NULL, NULL, G_TYPE_NONE, 2, GDK_TYPE_EVENT | G_SIGNAL_TYPE_STATIC_SCOPE, GEDIT_TYPE_TAB); g_object_class_install_property (object_class, PROP_ACTIVE_NOTEBOOK, g_param_spec_object ("active-notebook", "Active Notebook", "The Active Notebook", GEDIT_TYPE_NOTEBOOK, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_ACTIVE_TAB, g_param_spec_object ("active-tab", "Active Tab", "The Active Tab", GEDIT_TYPE_TAB, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_SHOW_TABS_MODE, g_param_spec_enum ("show-tabs-mode", "Show Tabs Mode", "When tabs should be shown", GEDIT_TYPE_NOTEBOOK_SHOW_TABS_MODE_TYPE, GEDIT_NOTEBOOK_SHOW_TABS_ALWAYS, G_PARAM_READWRITE)); }
/* MudSubwindow class functions */ static void mud_subwindow_class_init (MudSubwindowClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); /* Override base object constructor */ object_class->constructor = mud_subwindow_constructor; object_class->constructed = mud_subwindow_constructed; /* Override base object's finalize */ object_class->finalize = mud_subwindow_finalize; /* Override base object property methods */ object_class->set_property = mud_subwindow_set_property; object_class->get_property = mud_subwindow_get_property; /* Add private data to class */ g_type_class_add_private(klass, sizeof(MudSubwindowPrivate)); /* Install Properties */ g_object_class_install_property(object_class, PROP_PARENT, g_param_spec_object("parent-view", "Parent View", "The parent MudSubwindow", MUD_TYPE_CONNECTION_VIEW, G_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property(object_class, PROP_TITLE, g_param_spec_string("title", "Title", "The visible Title of the subwindow.", NULL, G_PARAM_READWRITE|G_PARAM_CONSTRUCT)); g_object_class_install_property(object_class, PROP_IDENT, g_param_spec_string("identifier", "Ident", "The identifier of the subwindow.", NULL, G_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property(object_class, PROP_WIDTH, g_param_spec_uint("width", "Width", "The width of the terminal in columns.", 1, 1024, 40, G_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property(object_class, PROP_HEIGHT, g_param_spec_uint("height", "Height", "The height of the terminal in rows.", 1, 1024, 40, G_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property(object_class, PROP_OLD_HEIGHT, g_param_spec_uint("old-height", "Old Height", "The old height of the terminal in rows.", 0, 1024, 0, G_PARAM_READWRITE)); g_object_class_install_property(object_class, PROP_OLD_WIDTH, g_param_spec_uint("old-width", "Old Width", "The old width of the terminal in rows.", 0, 1024, 0, G_PARAM_READWRITE)); g_object_class_install_property(object_class, PROP_VISIBLE, g_param_spec_boolean("visible", "Visible", "True if subwindow is visible.", TRUE, G_PARAM_READWRITE)); g_object_class_install_property(object_class, PROP_VIEW_HIDDEN, g_param_spec_boolean("view-hidden", "View Hidden", "True if subwindow is hidden by the view.", FALSE, G_PARAM_READWRITE)); g_object_class_install_property(object_class, PROP_INPUT, g_param_spec_boolean("input-enabled", "Input Enabled", "True if subwindow accepts input.", FALSE, G_PARAM_READWRITE)); g_object_class_install_property(object_class, PROP_SCROLL, g_param_spec_boolean("scroll-enabled", "Scroll Enabled", "True if subwindow scrolls.", TRUE, G_PARAM_READWRITE|G_PARAM_CONSTRUCT)); /* Register Signals */ mud_subwindow_signal[RESIZED] = g_signal_new("resized", G_TYPE_FROM_CLASS(object_class), G_SIGNAL_RUN_LAST | G_SIGNAL_NO_HOOKS, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); mud_subwindow_signal[INPUT] = g_signal_new("input-received", G_TYPE_FROM_CLASS(object_class), G_SIGNAL_RUN_LAST | G_SIGNAL_NO_HOOKS, 0, NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); }
static void gst_udpsrc_class_init (GstUDPSrcClass * klass) { GObjectClass *gobject_class; GstElementClass *gstelement_class; GstBaseSrcClass *gstbasesrc_class; GstPushSrcClass *gstpushsrc_class; gobject_class = (GObjectClass *) klass; gstelement_class = (GstElementClass *) klass; gstbasesrc_class = (GstBaseSrcClass *) klass; gstpushsrc_class = (GstPushSrcClass *) klass; GST_DEBUG_CATEGORY_INIT (udpsrc_debug, "udpsrc", 0, "UDP src"); gobject_class->set_property = gst_udpsrc_set_property; gobject_class->get_property = gst_udpsrc_get_property; gobject_class->finalize = gst_udpsrc_finalize; g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_PORT, g_param_spec_int ("port", "Port", "The port to receive the packets from, 0=allocate", 0, G_MAXUINT16, UDP_DEFAULT_PORT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /* FIXME 2.0: Remove multicast-group property */ #ifndef GST_REMOVE_DEPRECATED g_object_class_install_property (gobject_class, PROP_MULTICAST_GROUP, g_param_spec_string ("multicast-group", "Multicast Group", "The Address of multicast group to join. (DEPRECATED: " "Use address property instead)", UDP_DEFAULT_MULTICAST_GROUP, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_DEPRECATED)); #endif g_object_class_install_property (gobject_class, PROP_MULTICAST_IFACE, g_param_spec_string ("multicast-iface", "Multicast Interface", "The network interface on which to join the multicast group", UDP_DEFAULT_MULTICAST_IFACE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_URI, g_param_spec_string ("uri", "URI", "URI in the form of udp://multicast_group:port", UDP_DEFAULT_URI, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_CAPS, g_param_spec_boxed ("caps", "Caps", "The caps of the source pad", GST_TYPE_CAPS, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_SOCKET, g_param_spec_object ("socket", "Socket", "Socket to use for UDP reception. (NULL == allocate)", G_TYPE_SOCKET, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_BUFFER_SIZE, g_param_spec_int ("buffer-size", "Buffer Size", "Size of the kernel receive buffer in bytes, 0=default", 0, G_MAXINT, UDP_DEFAULT_BUFFER_SIZE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_TIMEOUT, g_param_spec_uint64 ("timeout", "Timeout", "Post a message after timeout nanoseconds (0 = disabled)", 0, G_MAXUINT64, UDP_DEFAULT_TIMEOUT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_SKIP_FIRST_BYTES, g_param_spec_int ("skip-first-bytes", "Skip first bytes", "number of bytes to skip for each udp packet", 0, G_MAXINT, UDP_DEFAULT_SKIP_FIRST_BYTES, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_CLOSE_SOCKET, g_param_spec_boolean ("close-socket", "Close socket", "Close socket if passed as property on state change", UDP_DEFAULT_CLOSE_SOCKET, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_USED_SOCKET, g_param_spec_object ("used-socket", "Socket Handle", "Socket currently in use for UDP reception. (NULL = no socket)", G_TYPE_SOCKET, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_AUTO_MULTICAST, g_param_spec_boolean ("auto-multicast", "Auto Multicast", "Automatically join/leave multicast groups", UDP_DEFAULT_AUTO_MULTICAST, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_REUSE, g_param_spec_boolean ("reuse", "Reuse", "Enable reuse of the port", UDP_DEFAULT_REUSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_ADDRESS, g_param_spec_string ("address", "Address", "Address to receive packets for. This is equivalent to the " "multicast-group property for now", UDP_DEFAULT_MULTICAST_GROUP, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_LOOP, g_param_spec_boolean ("loop", "Multicast Loopback", "Used for setting the multicast loop parameter. TRUE = enable," " FALSE = disable", UDP_DEFAULT_LOOP, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** * GstUDPSrc::retrieve-sender-address: * * Whether to retrieve the sender address and add it to the buffers as * meta. Disabling this might result in minor performance improvements * in certain scenarios. * * Since: 1.10 */ g_object_class_install_property (gobject_class, PROP_RETRIEVE_SENDER_ADDRESS, g_param_spec_boolean ("retrieve-sender-address", "Retrieve Sender Address", "Whether to retrieve the sender address and add it to buffers as " "meta. Disabling this might result in minor performance improvements " "in certain scenarios", UDP_DEFAULT_RETRIEVE_SENDER_ADDRESS, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gst_element_class_add_static_pad_template (gstelement_class, &src_template); gst_element_class_set_static_metadata (gstelement_class, "UDP packet receiver", "Source/Network", "Receive data over the network via UDP", "Wim Taymans <*****@*****.**>, " "Thijs Vermeir <*****@*****.**>"); gstelement_class->change_state = gst_udpsrc_change_state; gstbasesrc_class->unlock = gst_udpsrc_unlock; gstbasesrc_class->unlock_stop = gst_udpsrc_unlock_stop; gstbasesrc_class->get_caps = gst_udpsrc_getcaps; gstbasesrc_class->negotiate = gst_udpsrc_negotiate; gstpushsrc_class->create = gst_udpsrc_create; }
static void e_minicard_label_class_init (EMinicardLabelClass *klass) { GObjectClass *object_class; GnomeCanvasItemClass *item_class; object_class = G_OBJECT_CLASS (klass); item_class = (GnomeCanvasItemClass *) klass; klass->style_set = e_minicard_label_style_set; parent_class = g_type_class_peek_parent (klass); object_class->set_property = e_minicard_label_set_property; object_class->get_property = e_minicard_label_get_property; /* object_class->destroy = e_minicard_label_destroy; */ g_object_class_install_property (object_class, PROP_WIDTH, g_param_spec_double ("width", "Width", NULL, 0.0, G_MAXDOUBLE, 10.0, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_HEIGHT, g_param_spec_double ("height", "Height", NULL, 0.0, G_MAXDOUBLE, 10.0, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_HAS_FOCUS, g_param_spec_boolean ("has_focus", "Has Focus", NULL, FALSE, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_FIELD, g_param_spec_string ("field", "Field", NULL, NULL, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_FIELDNAME, g_param_spec_string ("fieldname", "Field Name", NULL, NULL, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_TEXT_MODEL, g_param_spec_object ("text_model", "Text Model", NULL, E_TYPE_TEXT_MODEL, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_MAX_FIELD_NAME_WIDTH, g_param_spec_double ("max_field_name_length", "Max field name length", NULL, -1.0, G_MAXDOUBLE, -1.0, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_EDITABLE, g_param_spec_boolean ("editable", "Editable", NULL, FALSE, G_PARAM_READWRITE)); e_minicard_label_signals[STYLE_SET] = g_signal_new ("style_set", G_TYPE_FROM_CLASS (object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (EMinicardLabelClass, style_set), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GTK_TYPE_STYLE); /* GnomeCanvasItem method overrides */ item_class->realize = e_minicard_label_realize; item_class->unrealize = e_minicard_label_unrealize; item_class->event = e_minicard_label_event; }
static void qof_book_class_init (QofBookClass *klass) { GObjectClass *gobject_class = G_OBJECT_CLASS (klass); gobject_class->dispose = qof_book_dispose; gobject_class->finalize = qof_book_finalize; gobject_class->get_property = qof_book_get_property; gobject_class->set_property = qof_book_set_property; g_object_class_install_property (gobject_class, PROP_OPT_TRADING_ACCOUNTS, g_param_spec_string("trading-accts", "Use Trading Accounts", "Scheme true ('t') or NULL. If 't', then the book " "uses trading accounts for managing multiple-currency " "transactions.", NULL, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_OPT_BOOK_CURRENCY, g_param_spec_string("book-currency", "Select Book Currency", "The reference currency used to manage multiple-currency " "transactions when 'book-currency' currency accounting method " "selected; requires valid default gains/loss policy.", NULL, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_OPT_DEFAULT_GAINS_POLICY, g_param_spec_string("default-gains-policy", "Select Default Gains Policy", "The default policy to be used to calculate gains/losses on " "dispositions of currencies/commodities other than " "'book-currency' when 'book-currency' currency accounting " "method selected; requires valid book-currency.", NULL, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_OPT_NUM_FIELD_SOURCE, g_param_spec_string("split-action-num-field", "Use Split-Action in the Num Field", "Scheme true ('t') or NULL. If 't', then the book " "will put the split action value in the Num field.", NULL, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_OPT_AUTO_READONLY_DAYS, g_param_spec_double("autoreadonly-days", "Transaction Auto-read-only Days", "Prevent editing of transactions posted more than " "this many days ago.", 0, G_MAXDOUBLE, 0, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_OPT_DEFAULT_BUDGET, g_param_spec_boxed("default-budget", "Book Default Budget", "The default Budget for this book.", GNC_TYPE_GUID, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_OPT_FY_END, g_param_spec_boxed("fy-end", "Book Fiscal Year End", "A GDate with a bogus year having the last Month and " "Day of the Fiscal year for the book.", G_TYPE_DATE, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_AB_TEMPLATES, g_param_spec_boxed("ab-templates", "AQBanking Template List", "A GList of AQBanking Templates", GNC_TYPE_VALUE_LIST, G_PARAM_READWRITE)); }
/** * gom_command_builder_class_init: * @klass: (in): A #GomCommandBuilderClass. * * Initializes the #GomCommandBuilderClass and prepares the vtable. */ static void gom_command_builder_class_init (GomCommandBuilderClass *klass) { GObjectClass *object_class; object_class = G_OBJECT_CLASS(klass); object_class->finalize = gom_command_builder_finalize; object_class->get_property = gom_command_builder_get_property; object_class->set_property = gom_command_builder_set_property; g_type_class_add_private(object_class, sizeof(GomCommandBuilderPrivate)); gParamSpecs[PROP_ADAPTER] = g_param_spec_object("adapter", _("Adapter"), _("The GomAdapter."), GOM_TYPE_ADAPTER, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); g_object_class_install_property(object_class, PROP_ADAPTER, gParamSpecs[PROP_ADAPTER]); gParamSpecs[PROP_FILTER] = g_param_spec_object("filter", _("Filter"), _("The filter for the command."), GOM_TYPE_FILTER, G_PARAM_READWRITE); g_object_class_install_property(object_class, PROP_FILTER, gParamSpecs[PROP_FILTER]); gParamSpecs[PROP_LIMIT] = g_param_spec_uint("limit", _("Limit"), _("The maximum number of results."), 0, G_MAXUINT, 0, G_PARAM_READWRITE); g_object_class_install_property(object_class, PROP_LIMIT, gParamSpecs[PROP_LIMIT]); gParamSpecs[PROP_M2M_TABLE] = g_param_spec_string("m2m-table", _("Many-to-many table"), _("The table to use for many-to-many queries."), NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); g_object_class_install_property(object_class, PROP_M2M_TABLE, gParamSpecs[PROP_M2M_TABLE]); gParamSpecs[PROP_M2M_TYPE] = g_param_spec_gtype("m2m-type", _("Many-to-many type"), _("The type for the join within m2m-table."), GOM_TYPE_RESOURCE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); g_object_class_install_property(object_class, PROP_M2M_TYPE, gParamSpecs[PROP_M2M_TYPE]); gParamSpecs[PROP_OFFSET] = g_param_spec_uint("offset", _("Offset"), _("The number of results to skip."), 0, G_MAXUINT, 0, G_PARAM_READWRITE); g_object_class_install_property(object_class, PROP_OFFSET, gParamSpecs[PROP_OFFSET]); gParamSpecs[PROP_RESOURCE_TYPE] = g_param_spec_gtype("resource-type", _("Resource Type"), _("The resource type to query for."), GOM_TYPE_RESOURCE, G_PARAM_READWRITE); g_object_class_install_property(object_class, PROP_RESOURCE_TYPE, gParamSpecs[PROP_RESOURCE_TYPE]); }
static void hildon_color_chooser_class_init (HildonColorChooserClass *klass) { GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); GObjectClass *object_class = G_OBJECT_CLASS (klass); parent_class = g_type_class_peek_parent (klass); object_class->dispose = (gpointer) hildon_color_chooser_dispose; object_class->get_property = hildon_color_chooser_get_property; object_class->set_property = hildon_color_chooser_set_property; widget_class->size_request = hildon_color_chooser_size_request; widget_class->size_allocate = hildon_color_chooser_size_allocate; widget_class->realize = hildon_color_chooser_realize; widget_class->unrealize = hildon_color_chooser_unrealize; widget_class->map = hildon_color_chooser_map; widget_class->unmap = hildon_color_chooser_unmap; widget_class->expose_event = hildon_color_chooser_expose; widget_class->button_press_event = hildon_color_chooser_button_press; widget_class->button_release_event = hildon_color_chooser_button_release; widget_class->motion_notify_event = hildon_color_chooser_pointer_motion; gtk_widget_class_install_style_property (widget_class, g_param_spec_boxed ("inner_size", "Inner sizes", "Sizes of SV plane, H bar and spacing", GTK_TYPE_BORDER, G_PARAM_READABLE)); gtk_widget_class_install_style_property (widget_class, g_param_spec_boxed ("outer_border", "Outer border", "The outer border for the chooser", GTK_TYPE_BORDER, G_PARAM_READABLE)); gtk_widget_class_install_style_property (widget_class, g_param_spec_boxed ("graphic_border", "Graphical borders", "Size of graphical border", GTK_TYPE_BORDER, G_PARAM_READABLE)); /** * HildonColorChooser:color: * * The currently selected color. */ g_object_class_install_property (object_class, PROP_COLOR, g_param_spec_boxed ("color", "Current Color", "The selected color", GDK_TYPE_COLOR, G_PARAM_READWRITE)); color_chooser_signals[COLOR_CHANGED] = g_signal_new("color-changed", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (HildonColorChooserClass, color_changed), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); g_type_class_add_private (klass, sizeof (HildonColorChooserPrivate)); }
static void shell_button_box_class_init (ShellButtonBoxClass *klass) { GObjectClass *gobject_class = G_OBJECT_CLASS (klass); ClutterActorClass *actor_class = CLUTTER_ACTOR_CLASS (klass); gobject_class->get_property = shell_button_box_get_property; gobject_class->set_property = shell_button_box_set_property; actor_class->enter_event = shell_button_box_enter_event; actor_class->leave_event = shell_button_box_leave_event; actor_class->button_press_event = shell_button_box_button_press_event; actor_class->button_release_event = shell_button_box_button_release_event; /** * ShellButtonBox::activate * @box: The #ShellButtonBox * @event: Release event which triggered the activation * * This signal is emitted when the button should take the action * associated with button click+release. */ shell_button_box_signals[ACTIVATE] = g_signal_new ("activate", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 1, CLUTTER_TYPE_EVENT); /** * ShellButtonBox:active * * The property allows the button to be used as a "toggle button"; it's up to the * application to update the active property in response to the activate signal; * it doesn't happen automatically. */ g_object_class_install_property (gobject_class, PROP_ACTIVE, g_param_spec_boolean ("active", "Active", "Whether the button persistently active", FALSE, G_PARAM_READWRITE)); /** * ShellButtonBox:hover * * This property tracks whether the mouse is over the button; note this * state is independent of whether the button is pressed. */ g_object_class_install_property (gobject_class, PROP_HOVER, g_param_spec_boolean ("hover", "Hovering state", "Whether the mouse is over the button", FALSE, G_PARAM_READABLE)); /** * ShellButtonBox:pressed * * This property tracks whether the button should have a "pressed in" * effect. */ g_object_class_install_property (gobject_class, PROP_PRESSED, g_param_spec_boolean ("pressed", "Pressed state", "Whether the button is currently pressed", FALSE, G_PARAM_READABLE)); g_type_class_add_private (gobject_class, sizeof (ShellButtonBoxPrivate)); }
static void gst_app_src_class_init (GstAppSrcClass * klass) { GObjectClass *gobject_class = (GObjectClass *) klass; GstBaseSrcClass *basesrc_class = (GstBaseSrcClass *) klass; gobject_class->dispose = gst_app_src_dispose; gobject_class->finalize = gst_app_src_finalize; gobject_class->set_property = gst_app_src_set_property; gobject_class->get_property = gst_app_src_get_property; /** * GstAppSrc::caps * * The GstCaps that will negotiated downstream and will be put * on outgoing buffers. */ g_object_class_install_property (gobject_class, PROP_CAPS, g_param_spec_boxed ("caps", "Caps", "The allowed caps for the src pad", GST_TYPE_CAPS, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** * GstAppSrc::format * * The format to use for segment events. When the source is producing * timestamped buffers this property should be set to GST_FORMAT_TIME. */ g_object_class_install_property (gobject_class, PROP_FORMAT, g_param_spec_enum ("format", "Format", "The format of the segment events and seek", GST_TYPE_FORMAT, DEFAULT_PROP_FORMAT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** * GstAppSrc::size * * The total size in bytes of the data stream. If the total size is known, it * is recommended to configure it with this property. */ g_object_class_install_property (gobject_class, PROP_SIZE, g_param_spec_int64 ("size", "Size", "The size of the data stream in bytes (-1 if unknown)", -1, G_MAXINT64, DEFAULT_PROP_SIZE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** * GstAppSrc::stream-type * * The type of stream that this source is producing. For seekable streams the * application should connect to the seek-data signal. */ g_object_class_install_property (gobject_class, PROP_STREAM_TYPE, g_param_spec_enum ("stream-type", "Stream Type", "the type of the stream", GST_TYPE_APP_STREAM_TYPE, DEFAULT_PROP_STREAM_TYPE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** * GstAppSrc::max-bytes * * The maximum amount of bytes that can be queued internally. * After the maximum amount of bytes are queued, appsrc will emit the * "enough-data" signal. */ g_object_class_install_property (gobject_class, PROP_MAX_BYTES, g_param_spec_uint64 ("max-bytes", "Max bytes", "The maximum number of bytes to queue internally (0 = unlimited)", 0, G_MAXUINT64, DEFAULT_PROP_MAX_BYTES, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** * GstAppSrc::block * * When max-bytes are queued and after the enough-data signal has been emited, * block any further push-buffer calls until the amount of queued bytes drops * below the max-bytes limit. */ g_object_class_install_property (gobject_class, PROP_BLOCK, g_param_spec_boolean ("block", "Block", "Block push-buffer when max-bytes are queued", DEFAULT_PROP_BLOCK, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** * GstAppSrc::is-live * * Instruct the source to behave like a live source. This includes that it * will only push out buffers in the PLAYING state. */ g_object_class_install_property (gobject_class, PROP_IS_LIVE, g_param_spec_boolean ("is-live", "Is Live", "Whether to act as a live source", DEFAULT_PROP_IS_LIVE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** * GstAppSrc::min-latency * * The minimum latency of the source. A value of -1 will use the default * latency calculations of #GstBaseSrc. */ g_object_class_install_property (gobject_class, PROP_MIN_LATENCY, g_param_spec_int64 ("min-latency", "Min Latency", "The minimum latency (-1 = default)", -1, G_MAXINT64, DEFAULT_PROP_MIN_LATENCY, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** * GstAppSrc::max-latency * * The maximum latency of the source. A value of -1 means an unlimited amout * of latency. */ g_object_class_install_property (gobject_class, PROP_MAX_LATENCY, g_param_spec_int64 ("max-latency", "Max Latency", "The maximum latency (-1 = unlimited)", -1, G_MAXINT64, DEFAULT_PROP_MAX_LATENCY, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** * GstAppSrc::emit-signals * * Make appsrc emit the "need-data", "enough-data" and "seek-data" signals. * This option is by default enabled for backwards compatibility reasons but * can disabled when needed because signal emission is expensive. * * Since: 0.10.23 */ g_object_class_install_property (gobject_class, PROP_EMIT_SIGNALS, g_param_spec_boolean ("emit-signals", "Emit signals", "Emit new-preroll and new-buffer signals", DEFAULT_PROP_EMIT_SIGNALS, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** * GstAppSrc::need-data: * @appsrc: the appsrc element that emited the signal * @length: the amount of bytes needed. * * Signal that the source needs more data. In the callback or from another * thread you should call push-buffer or end-of-stream. * * @length is just a hint and when it is set to -1, any number of bytes can be * pushed into @appsrc. * * You can call push-buffer multiple times until the enough-data signal is * fired. */ gst_app_src_signals[SIGNAL_NEED_DATA] = g_signal_new ("need-data", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstAppSrcClass, need_data), NULL, NULL, __gst_app_marshal_VOID__UINT, G_TYPE_NONE, 1, G_TYPE_UINT); /** * GstAppSrc::enough-data: * @appsrc: the appsrc element that emited the signal * * Signal that the source has enough data. It is recommended that the * application stops calling push-buffer until the need-data signal is * emited again to avoid excessive buffer queueing. */ gst_app_src_signals[SIGNAL_ENOUGH_DATA] = g_signal_new ("enough-data", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstAppSrcClass, enough_data), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0, G_TYPE_NONE); /** * GstAppSrc::seek-data: * @appsrc: the appsrc element that emited the signal * @offset: the offset to seek to * * Seek to the given offset. The next push-buffer should produce buffers from * the new @offset. * This callback is only called for seekable stream types. * * Returns: %TRUE if the seek succeeded. */ gst_app_src_signals[SIGNAL_SEEK_DATA] = g_signal_new ("seek-data", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstAppSrcClass, seek_data), NULL, NULL, __gst_app_marshal_BOOLEAN__UINT64, G_TYPE_BOOLEAN, 1, G_TYPE_UINT64); /** * GstAppSrc::push-buffer: * @appsrc: the appsrc * @buffer: a buffer to push * * Adds a buffer to the queue of buffers that the appsrc element will * push to its source pad. This function does not take ownership of the * buffer so the buffer needs to be unreffed after calling this function. * * When the block property is TRUE, this function can block until free space * becomes available in the queue. */ gst_app_src_signals[SIGNAL_PUSH_BUFFER] = g_signal_new ("push-buffer", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_STRUCT_OFFSET (GstAppSrcClass, push_buffer), NULL, NULL, __gst_app_marshal_ENUM__OBJECT, GST_TYPE_FLOW_RETURN, 1, GST_TYPE_BUFFER); /** * GstAppSrc::end-of-stream: * @appsrc: the appsrc * * Notify @appsrc that no more buffer are available. */ gst_app_src_signals[SIGNAL_END_OF_STREAM] = g_signal_new ("end-of-stream", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_STRUCT_OFFSET (GstAppSrcClass, end_of_stream), NULL, NULL, __gst_app_marshal_ENUM__VOID, GST_TYPE_FLOW_RETURN, 0, G_TYPE_NONE); basesrc_class->create = gst_app_src_create; basesrc_class->start = gst_app_src_start; basesrc_class->stop = gst_app_src_stop; basesrc_class->unlock = gst_app_src_unlock; basesrc_class->unlock_stop = gst_app_src_unlock_stop; basesrc_class->do_seek = gst_app_src_do_seek; basesrc_class->is_seekable = gst_app_src_is_seekable; basesrc_class->check_get_range = gst_app_src_check_get_range; basesrc_class->get_size = gst_app_src_do_get_size; basesrc_class->get_size = gst_app_src_do_get_size; basesrc_class->query = gst_app_src_query; klass->push_buffer = gst_app_src_push_buffer_action; klass->end_of_stream = gst_app_src_end_of_stream; g_type_class_add_private (klass, sizeof (GstAppSrcPrivate)); }
static void gst_imx_v4l2src_class_init(GstImxV4l2SrcClass *klass) { GObjectClass *gobject_class; GstElementClass *element_class; GstBaseSrcClass *basesrc_class; GstPushSrcClass *pushsrc_class; gobject_class = G_OBJECT_CLASS(klass); element_class = GST_ELEMENT_CLASS(klass); basesrc_class = GST_BASE_SRC_CLASS(klass); pushsrc_class = GST_PUSH_SRC_CLASS(klass); gobject_class->set_property = gst_imx_v4l2src_set_property; gobject_class->get_property = gst_imx_v4l2src_get_property; g_object_class_install_property(gobject_class, IMX_V4L2SRC_CAPTURE_MODE, g_param_spec_int("capture-mode", "Capture mode", "Capture mode of camera, varies with each v4l2 driver,\n" "\t\t\t\tfor example ov5460:\n " "\t\t\t\tov5640_mode_VGA_640_480 = 0,\n" "\t\t\t\tov5640_mode_QVGA_320_240 = 1,\n" "\t\t\t\tov5640_mode_NTSC_720_480 = 2,\n" "\t\t\t\tov5640_mode_PAL_720_576 = 3,\n" "\t\t\t\tov5640_mode_720P_1280_720 = 4,\n" "\t\t\t\tov5640_mode_1080P_1920_1080 = 5", 0, G_MAXINT, DEFAULT_CAPTURE_MODE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property(gobject_class, IMX_V4L2SRC_FRAMERATE_NUM, g_param_spec_int("fps-n", "FPS numerator", "Numerator of the framerate at which" "the input stream is to be captured", 0, G_MAXINT, DEFAULT_FRAMERATE_NUM, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property(gobject_class, IMX_V4L2SRC_INPUT, g_param_spec_int("input", "Input", "Video input selected with VIDIOC_S_INPUT", 0, G_MAXINT, DEFAULT_INPUT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property(gobject_class, IMX_V4L2SRC_DEVICE, g_param_spec_string("device", "Device", "Device location", DEFAULT_DEVICE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property(gobject_class, IMX_V4L2SRC_QUEUE_SIZE, g_param_spec_int("queue-size", "Queue size", "Number of V4L2 buffers to request", 0, G_MAXINT, DEFAULT_QUEUE_SIZE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); basesrc_class->negotiate = gst_imx_v4l2src_negotiate; basesrc_class->get_caps = gst_imx_v4l2src_get_caps; basesrc_class->set_caps = gst_imx_v4l2src_set_caps; basesrc_class->start = gst_imx_v4l2src_start; basesrc_class->stop = gst_imx_v4l2src_stop; basesrc_class->decide_allocation = gst_imx_v4l2src_decide_allocation; pushsrc_class->fill = gst_imx_v4l2src_fill; gst_element_class_set_static_metadata(element_class, "V4L2 CSI Video Source", "Source/Video", "Capture video streams using V4L2 CSI interface", "Philip Craig <*****@*****.**>"); gst_element_class_add_pad_template(element_class, gst_static_pad_template_get(&src_template)); return; }
static void nm_act_request_class_init (NMActRequestClass *req_class) { GObjectClass *object_class = G_OBJECT_CLASS (req_class); g_type_class_add_private (req_class, sizeof (NMActRequestPrivate)); /* virtual methods */ object_class->get_property = get_property; object_class->dispose = dispose; object_class->finalize = finalize; /* properties */ g_object_class_install_property (object_class, PROP_SERVICE_NAME, g_param_spec_string (NM_ACTIVE_CONNECTION_SERVICE_NAME, "Service name", "Service name", NULL, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_CONNECTION, g_param_spec_boxed (NM_ACTIVE_CONNECTION_CONNECTION, "Connection", "Connection", DBUS_TYPE_G_OBJECT_PATH, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_SPECIFIC_OBJECT, g_param_spec_boxed (NM_ACTIVE_CONNECTION_SPECIFIC_OBJECT, "Specific object", "Specific object", DBUS_TYPE_G_OBJECT_PATH, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_DEVICES, g_param_spec_boxed (NM_ACTIVE_CONNECTION_DEVICES, "Devices", "Devices", DBUS_TYPE_G_ARRAY_OF_OBJECT_PATH, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_STATE, g_param_spec_uint (NM_ACTIVE_CONNECTION_STATE, "State", "State", NM_ACTIVE_CONNECTION_STATE_UNKNOWN, NM_ACTIVE_CONNECTION_STATE_ACTIVATED, NM_ACTIVE_CONNECTION_STATE_UNKNOWN, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_DEFAULT, g_param_spec_boolean (NM_ACTIVE_CONNECTION_DEFAULT, "Default", "Is the default active connection", FALSE, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_VPN, g_param_spec_boolean (NM_ACTIVE_CONNECTION_VPN, "VPN", "Is a VPN connection", FALSE, G_PARAM_READABLE)); /* Signals */ signals[CONNECTION_SECRETS_UPDATED] = g_signal_new ("connection-secrets-updated", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (NMActRequestClass, secrets_updated), NULL, NULL, _nm_marshal_VOID__OBJECT_POINTER_UINT, G_TYPE_NONE, 3, G_TYPE_OBJECT, G_TYPE_POINTER, G_TYPE_UINT); signals[CONNECTION_SECRETS_FAILED] = g_signal_new ("connection-secrets-failed", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (NMActRequestClass, secrets_failed), NULL, NULL, _nm_marshal_VOID__OBJECT_STRING_UINT, G_TYPE_NONE, 3, G_TYPE_OBJECT, G_TYPE_STRING, G_TYPE_UINT); signals[PROPERTIES_CHANGED] = nm_properties_changed_signal_new (object_class, G_STRUCT_OFFSET (NMActRequestClass, properties_changed)); nm_active_connection_install_type_info (object_class); }
static void rb_player_gst_class_init (RBPlayerGstClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->dispose = impl_dispose; object_class->get_property = impl_get_property; object_class->set_property = impl_set_property; g_object_class_install_property (object_class, PROP_PLAYBIN, g_param_spec_object ("playbin", "playbin", "playbin element", GST_TYPE_ELEMENT, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_BUS, g_param_spec_object ("bus", "bus", "GStreamer message bus", GST_TYPE_BUS, G_PARAM_READABLE)); signals[PREPARE_SOURCE] = g_signal_new ("prepare-source", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (RBPlayerGstClass, prepare_source), NULL, NULL, NULL, G_TYPE_NONE, 2, G_TYPE_STRING, GST_TYPE_ELEMENT); signals[CAN_REUSE_STREAM] = g_signal_new ("can-reuse-stream", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (RBPlayerGstClass, can_reuse_stream), NULL, NULL, NULL, G_TYPE_BOOLEAN, 3, G_TYPE_STRING, G_TYPE_STRING, GST_TYPE_ELEMENT); signals[REUSE_STREAM] = g_signal_new ("reuse-stream", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (RBPlayerGstClass, reuse_stream), NULL, NULL, NULL, G_TYPE_NONE, 3, G_TYPE_STRING, G_TYPE_STRING, GST_TYPE_ELEMENT); signals[MISSING_PLUGINS] = g_signal_new ("missing-plugins", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST, 0, /* no point handling this internally */ NULL, NULL, NULL, G_TYPE_NONE, 3, G_TYPE_POINTER, G_TYPE_STRV, G_TYPE_STRV); g_type_class_add_private (klass, sizeof (RBPlayerGstPrivate)); }
static void nm_active_connection_class_init (NMActiveConnectionClass *vpn_class) { GObjectClass *object_class = G_OBJECT_CLASS (vpn_class); g_type_class_add_private (vpn_class, sizeof (NMActiveConnectionPrivate)); /* virtual methods */ object_class->get_property = get_property; object_class->set_property = set_property; object_class->dispose = dispose; /* properties */ g_object_class_install_property (object_class, PROP_CONNECTION, g_param_spec_boxed (NM_ACTIVE_CONNECTION_CONNECTION, "Connection", "Connection", DBUS_TYPE_G_OBJECT_PATH, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_UUID, g_param_spec_string (NM_ACTIVE_CONNECTION_UUID, "Connection UUID", "Connection UUID", NULL, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_SPECIFIC_OBJECT, g_param_spec_boxed (NM_ACTIVE_CONNECTION_SPECIFIC_OBJECT, "Specific object", "Specific object", DBUS_TYPE_G_OBJECT_PATH, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_DEVICES, g_param_spec_boxed (NM_ACTIVE_CONNECTION_DEVICES, "Devices", "Devices", DBUS_TYPE_G_ARRAY_OF_OBJECT_PATH, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_STATE, g_param_spec_uint (NM_ACTIVE_CONNECTION_STATE, "State", "State", NM_ACTIVE_CONNECTION_STATE_UNKNOWN, NM_ACTIVE_CONNECTION_STATE_DEACTIVATING, NM_ACTIVE_CONNECTION_STATE_UNKNOWN, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_DEFAULT, g_param_spec_boolean (NM_ACTIVE_CONNECTION_DEFAULT, "Default", "Is the default IPv4 active connection", FALSE, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_DEFAULT6, g_param_spec_boolean (NM_ACTIVE_CONNECTION_DEFAULT6, "Default6", "Is the default IPv6 active connection", FALSE, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_VPN, g_param_spec_boolean (NM_ACTIVE_CONNECTION_VPN, "VPN", "Is a VPN connection", FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_MASTER, g_param_spec_boxed (NM_ACTIVE_CONNECTION_MASTER, "Master", "Path of master device", DBUS_TYPE_G_OBJECT_PATH, G_PARAM_READABLE)); /* Signals */ signals[PROPERTIES_CHANGED] = nm_properties_changed_signal_new (object_class, G_STRUCT_OFFSET (NMActiveConnectionClass, properties_changed)); dbus_g_object_type_install_info (G_TYPE_FROM_CLASS (vpn_class), &dbus_glib_nm_active_connection_object_info); }
static void nm_device_macvlan_class_init (NMDeviceMacvlanClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); NMDeviceClass *device_class = NM_DEVICE_CLASS (klass); g_type_class_add_private (klass, sizeof (NMDeviceMacvlanPrivate)); NM_DEVICE_CLASS_DECLARE_TYPES (klass, NULL, NM_LINK_TYPE_MACVLAN, NM_LINK_TYPE_MACVTAP) object_class->dispose = dispose; object_class->get_property = get_property; object_class->set_property = set_property; device_class->act_stage1_prepare = act_stage1_prepare; device_class->bring_up = bring_up; device_class->check_connection_compatible = check_connection_compatible; device_class->complete_connection = complete_connection; device_class->connection_type = NM_SETTING_MACVLAN_SETTING_NAME; device_class->create_and_realize = create_and_realize; device_class->deactivate = deactivate; device_class->get_generic_capabilities = get_generic_capabilities; device_class->ip4_config_pre_commit = ip4_config_pre_commit; device_class->is_available = is_available; device_class->link_changed = link_changed; device_class->notify_new_device_added = notify_new_device_added; device_class->realize_start_notify = realize_start_notify; device_class->update_connection = update_connection; /* properties */ g_object_class_install_property (object_class, PROP_PARENT, g_param_spec_string (NM_DEVICE_MACVLAN_PARENT, "", "", NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_MODE, g_param_spec_string (NM_DEVICE_MACVLAN_MODE, "", "", NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_NO_PROMISC, g_param_spec_boolean (NM_DEVICE_MACVLAN_NO_PROMISC, "", "", FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_TAP, g_param_spec_boolean (NM_DEVICE_MACVLAN_TAP, "", "", FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); nm_exported_object_class_add_interface (NM_EXPORTED_OBJECT_CLASS (klass), NMDBUS_TYPE_DEVICE_MACVLAN_SKELETON, NULL); }
static void empathy_account_class_init (EmpathyAccountClass *empathy_account_class) { GObjectClass *object_class = G_OBJECT_CLASS (empathy_account_class); g_type_class_add_private (empathy_account_class, sizeof (EmpathyAccountPriv)); object_class->set_property = empathy_account_set_property; object_class->get_property = empathy_account_get_property; object_class->dispose = empathy_account_dispose; object_class->finalize = empathy_account_finalize; object_class->constructed = empathy_account_constructed; g_object_class_install_property (object_class, PROP_ENABLED, g_param_spec_boolean ("enabled", "Enabled", "Whether this account is enabled or not", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_READY, g_param_spec_boolean ("ready", "Ready", "Whether this account is ready to be used", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_PRESENCE, g_param_spec_uint ("presence", "Presence", "The account connections presence type", 0, NUM_TP_CONNECTION_PRESENCE_TYPES, TP_CONNECTION_PRESENCE_TYPE_UNSET, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_STATUS, g_param_spec_string ("status", "Status", "The Status string of the account", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_STATUS_MESSAGE, g_param_spec_string ("status-message", "status-message", "The Status message string of the account", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_CONNECTION_STATUS, g_param_spec_uint ("connection-status", "ConnectionStatus", "The accounts connections status type", 0, NUM_TP_CONNECTION_STATUSES, TP_CONNECTION_STATUS_DISCONNECTED, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_CONNECTION_STATUS_REASON, g_param_spec_uint ("connection-status-reason", "ConnectionStatusReason", "The account connections status reason", 0, NUM_TP_CONNECTION_STATUS_REASONS, TP_CONNECTION_STATUS_REASON_NONE_SPECIFIED, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_CONNECTION, g_param_spec_object ("connection", "Connection", "The accounts connection", TP_TYPE_CONNECTION, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_UNIQUE_NAME, g_param_spec_string ("unique-name", "UniqueName", "The accounts unique name", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_DBUS_DAEMON, g_param_spec_object ("dbus-daemon", "dbus-daemon", "The Tp Dbus daemon on which this account exists", TP_TYPE_DBUS_DAEMON, G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_DISPLAY_NAME, g_param_spec_string ("display-name", "DisplayName", "The accounts display name", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); signals[STATUS_CHANGED] = g_signal_new ("status-changed", G_TYPE_FROM_CLASS (object_class), G_SIGNAL_RUN_LAST, 0, NULL, NULL, _empathy_marshal_VOID__UINT_UINT_UINT, G_TYPE_NONE, 3, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_UINT); signals[PRESENCE_CHANGED] = g_signal_new ("presence-changed", G_TYPE_FROM_CLASS (object_class), G_SIGNAL_RUN_LAST, 0, NULL, NULL, _empathy_marshal_VOID__UINT_STRING_STRING, G_TYPE_NONE, 3, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_STRING); signals[REMOVED] = g_signal_new ("removed", G_TYPE_FROM_CLASS (object_class), G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); }
static void nm_setting_ip4_config_class_init (NMSettingIP4ConfigClass *setting_class) { GObjectClass *object_class = G_OBJECT_CLASS (setting_class); NMSettingClass *parent_class = NM_SETTING_CLASS (setting_class); g_type_class_add_private (setting_class, sizeof (NMSettingIP4ConfigPrivate)); /* virtual methods */ object_class->set_property = set_property; object_class->get_property = get_property; object_class->finalize = finalize; parent_class->verify = verify; /* Properties */ /** * NMSettingIP4Config:method: * * IPv4 configuration method. If 'auto' is specified then the appropriate * automatic method (DHCP, PPP, etc) is used for the interface and most * other properties can be left unset. If 'link-local' is specified, then a * link-local address in the 169.254/16 range will be assigned to the * interface. If 'manual' is specified, static IP addressing is used and at * least one IP address must be given in the 'addresses' property. If * 'shared' is specified (indicating that this connection will provide * network access to other computers) then the interface is assigned an * address in the 10.42.x.1/24 range and a DHCP and forwarding DNS server * are started, and the interface is NAT-ed to the current default network * connection. 'disabled' means IPv4 will not be used on this connection. * This property must be set. **/ g_object_class_install_property (object_class, PROP_METHOD, g_param_spec_string (NM_SETTING_IP4_CONFIG_METHOD, "Method", "IPv4 configuration method. If 'auto' is specified " "then the appropriate automatic method (DHCP, PPP, " "etc) is used for the interface and most other " "properties can be left unset. If 'link-local' " "is specified, then a link-local address in the " "169.254/16 range will be assigned to the " "interface. If 'manual' is specified, static IP " "addressing is used and at least one IP address " "must be given in the 'addresses' property. If " "'shared' is specified (indicating that this " "connection will provide network access to other " "computers) then the interface is assigned an " "address in the 10.42.x.1/24 range and a DHCP and " "forwarding DNS server are started, and the " "interface is NAT-ed to the current default network " "connection. 'disabled' means IPv4 will not be " "used on this connection. This property must be set.", NULL, G_PARAM_READWRITE | NM_SETTING_PARAM_SERIALIZE)); /** * NMSettingIP4Config:dns: * * List of DNS servers (network byte order). For the 'auto' method, these * DNS servers are appended to those (if any) returned by automatic * configuration. DNS servers cannot be used with the 'shared', 'link-local', * or 'disabled' methods as there is no usptream network. In all other * methods, these DNS servers are used as the only DNS servers for this * connection. **/ g_object_class_install_property (object_class, PROP_DNS, _nm_param_spec_specialized (NM_SETTING_IP4_CONFIG_DNS, "DNS", "List of DNS servers (network byte order). For " "the 'auto' method, these DNS servers are " "appended to those (if any) returned by automatic " "configuration. DNS servers cannot be used with " "the 'shared', 'link-local', or 'disabled' " "methods as there is no usptream network. In all " "other methods, these DNS servers are used as the " "only DNS servers for this connection.", DBUS_TYPE_G_UINT_ARRAY, G_PARAM_READWRITE | NM_SETTING_PARAM_SERIALIZE)); /** * NMSettingIP4Config:dns-search: * * List of DNS search domains. For the 'auto' method, these search domains * are appended to those returned by automatic configuration. Search domains * cannot be used with the 'shared', 'link-local', or 'disabled' methods as * there is no upstream network. In all other methods, these search domains * are used as the only search domains for this connection. **/ g_object_class_install_property (object_class, PROP_DNS_SEARCH, _nm_param_spec_specialized (NM_SETTING_IP4_CONFIG_DNS_SEARCH, "DNS search", "List of DNS search domains. For the 'auto' " "method, these search domains are appended to " "those returned by automatic configuration. " "Search domains cannot be used with the 'shared', " "'link-local', or 'disabled' methods as there is " "no upstream network. In all other methods, these " "search domains are used as the only search domains " "for this connection.", DBUS_TYPE_G_LIST_OF_STRING, G_PARAM_READWRITE | NM_SETTING_PARAM_SERIALIZE)); /** * NMSettingIP4Config:addresses: * * Array of IPv4 address structures. Each IPv4 address structure is * composed of 3 32-bit values; the first being the IPv4 address (network * byte order), the second the prefix (1 - 32), and last the IPv4 gateway * (network byte order). The gateway may be left as 0 if no gateway exists * for that subnet. For the 'auto' method, given IP addresses are appended * to those returned by automatic configuration. Addresses cannot be used * with the 'shared', 'link-local', or 'disabled' methods as addressing is * either automatic or disabled with these methods. **/ g_object_class_install_property (object_class, PROP_ADDRESSES, _nm_param_spec_specialized (NM_SETTING_IP4_CONFIG_ADDRESSES, "Addresses", "Array of IPv4 address structures. Each IPv4 " "address structure is composed of 3 32-bit values; " "the first being the IPv4 address (network byte " "order), the second the prefix (1 - 32), and " "last the IPv4 gateway (network byte order). The " "gateway may be left as 0 if no gateway exists " "for that subnet. For the 'auto' method, given " "IP addresses are appended to those returned by " "automatic configuration. Addresses cannot be " "used with the 'shared', 'link-local', or " "'disabled' methods as addressing is either " "automatic or disabled with these methods.", DBUS_TYPE_G_ARRAY_OF_ARRAY_OF_UINT, G_PARAM_READWRITE | NM_SETTING_PARAM_SERIALIZE)); /** * NMSettingIP4Config:routes: * * Array of IPv4 route structures. Each IPv4 route structure is composed * of 4 32-bit values; the first being the destination IPv4 network or * address (network byte order), the second the destination network or * address prefix (1 - 32), the third being the next-hop (network byte * order) if any, and the fourth being the route metric. For the 'auto' * method, given IP routes are appended to those returned by automatic * configuration. Routes cannot be used with the 'shared', 'link-local', * or 'disabled' methods because there is no upstream network. **/ g_object_class_install_property (object_class, PROP_ROUTES, _nm_param_spec_specialized (NM_SETTING_IP4_CONFIG_ROUTES, "Routes", "Array of IPv4 route structures. Each IPv4 route " "structure is composed of 4 32-bit values; the " "first being the destination IPv4 network or " "address (network byte order), the second the " "destination network or address prefix (1 - 32), " "the third being the next-hop (network byte order) " "if any, and the fourth being the route metric. " "For the 'auto' method, given IP routes are " "appended to those returned by automatic " "configuration. Routes cannot be used with the " "'shared', 'link-local', or 'disabled', methods " "as there is no upstream network.", DBUS_TYPE_G_ARRAY_OF_ARRAY_OF_UINT, G_PARAM_READWRITE | NM_SETTING_PARAM_SERIALIZE)); /** * NMSettingIP4Config:ignore-auto-routes: * * When the method is set to 'auto' and this property to TRUE, automatically * configured routes are ignored and only routes specified in * #NMSettingIP4Config:routes, if any, are used. **/ g_object_class_install_property (object_class, PROP_IGNORE_AUTO_ROUTES, g_param_spec_boolean (NM_SETTING_IP4_CONFIG_IGNORE_AUTO_ROUTES, "Ignore automatic routes", "When the method is set to 'auto' and this property " "to TRUE, automatically configured routes are " "ignored and only routes specified in the 'routes' " "property, if any, are used.", FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | NM_SETTING_PARAM_SERIALIZE)); /** * NMSettingIP4Config:ignore-auto-dns: * * When the method is set to 'auto' and this property to TRUE, automatically * configured nameservers and search domains are ignored and only nameservers * and search domains specified in #NMSettingIP4Config:dns and * #NMSettingIP4Config:dns-search, if any, are used. **/ g_object_class_install_property (object_class, PROP_IGNORE_AUTO_DNS, g_param_spec_boolean (NM_SETTING_IP4_CONFIG_IGNORE_AUTO_DNS, "Ignore automatic DNS", "When the method is set to 'auto' and this property " "to TRUE, automatically configured nameservers and " "search domains are ignored and only nameservers and " "search domains specified in the 'dns' and 'dns-search' " "properties, if any, are used.", FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | NM_SETTING_PARAM_SERIALIZE)); /** * NMSettingIP4Config:dhcp-client-id: * * A string sent to the DHCP server to identify the local machine which the * DHCP server may use to cusomize the DHCP lease and options. **/ g_object_class_install_property (object_class, PROP_DHCP_CLIENT_ID, g_param_spec_string (NM_SETTING_IP4_CONFIG_DHCP_CLIENT_ID, "DHCP Client ID", "A string sent to the DHCP server to identify the " "local machine which the DHCP server may use to " "cusomize the DHCP lease and options.", NULL, G_PARAM_READWRITE | NM_SETTING_PARAM_SERIALIZE)); /** * NMSettingIP4Config:dhcp-send-hostname: * * If TRUE, a hostname is sent to the DHCP server when acquiring a lease. * Some DHCP servers use this hostname to update DNS databases, essentially * providing a static hostname for the computer. If * #NMSettingIP4Config:dhcp-hostname is empty and this property is TRUE, * the current persistent hostname of the computer is sent. **/ g_object_class_install_property (object_class, PROP_DHCP_SEND_HOSTNAME, g_param_spec_boolean (NM_SETTING_IP4_CONFIG_DHCP_SEND_HOSTNAME, "Send DHCP hostname", "If TRUE, a hostname is sent to the DHCP server when " "acquiring a lease. Some DHCP servers use this " "hostname to update DNS databases, essentially " "providing a static hostname for the computer. If " "the 'dhcp-hostname' property is empty and this " "property is TRUE, the current persistent hostname " "of the computer is sent.", FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | NM_SETTING_PARAM_SERIALIZE)); /** * NMSettingIP4Config:dhcp-hostname: * * If the #NMSettingIP4Config:dhcp-send-hostname property is TRUE, then the * specified name will be sent to the DHCP server when acquiring a lease. **/ g_object_class_install_property (object_class, PROP_DHCP_HOSTNAME, g_param_spec_string (NM_SETTING_IP4_CONFIG_DHCP_HOSTNAME, "DHCP Hostname", "If the 'dhcp-send-hostname' property is TRUE, then " "the specified name will be sent to the DHCP server " "when acquiring a lease.", NULL, G_PARAM_READWRITE | NM_SETTING_PARAM_SERIALIZE)); /** * NMSettingIP4Config:never-default: * * If TRUE, this connection will never be the default IPv4 connection, * meaning it will never be assigned the default route by NetworkManager. **/ g_object_class_install_property (object_class, PROP_NEVER_DEFAULT, g_param_spec_boolean (NM_SETTING_IP4_CONFIG_NEVER_DEFAULT, "Never default", "If TRUE, this connection will never be the default " "IPv4 connection, meaning it will never be assigned " "the default route by NetworkManager.", FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | NM_SETTING_PARAM_SERIALIZE)); /** * NMSettingIP4Config:may-fail: * * If TRUE, allow overall network configuration to proceed even if IPv4 * configuration times out. Note that at least one IP configuration * must succeed or overall network configuration will still fail. For * example, in IPv6-only networks, setting this property to TRUE allows * the overall network configuration to succeed if IPv4 configuration fails * but IPv6 configuration completes successfully. **/ g_object_class_install_property (object_class, PROP_MAY_FAIL, g_param_spec_boolean (NM_SETTING_IP4_CONFIG_MAY_FAIL, "May Fail", "If TRUE, allow overall network configuration to " "proceed even if IPv4 configuration times out. " "Note that at least one IP configuration must " "succeed or overall network configuration will still " "fail. For example, in IPv6-only networks, setting " "this property to TRUE allows the overall network " "configuration to succeed if IPv4 configuration " "fails but IPv6 configuration completes successfully.", FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | NM_SETTING_PARAM_SERIALIZE)); }
static void nm_ip4_config_class_init (NMIP4ConfigClass *config_class) { GObjectClass *object_class = G_OBJECT_CLASS (config_class); g_type_class_add_private (config_class, sizeof (NMIP4ConfigPrivate)); /* virtual methods */ object_class->constructed = constructed; object_class->get_property = get_property; object_class->finalize = finalize; /* properties */ /** * NMIP4Config:addresses: * * The #GPtrArray containing #NMSettingIP4Address<!-- -->es of the configuration. **/ g_object_class_install_property (object_class, PROP_ADDRESSES, g_param_spec_pointer (NM_IP4_CONFIG_ADDRESSES, "Addresses", "Addresses", G_PARAM_READABLE)); /** * NMIP4Config:nameservers: * * The #GArray containing name servers (%guint32<!-- -->es) of the configuration. **/ g_object_class_install_property (object_class, PROP_NAMESERVERS, g_param_spec_boxed (NM_IP4_CONFIG_NAMESERVERS, "Nameservers", "Nameservers", NM_TYPE_UINT_ARRAY, G_PARAM_READABLE)); /** * NMIP4Config:domains: * * The #GPtrArray containing domain strings of the configuration. **/ g_object_class_install_property (object_class, PROP_DOMAINS, g_param_spec_boxed (NM_IP4_CONFIG_DOMAINS, "Domains", "Domains", NM_TYPE_STRING_ARRAY, G_PARAM_READABLE)); /** * NMIP4Config:routes: * * The #GPtrArray containing #NMSettingIP4Route<!-- -->s of the configuration. **/ g_object_class_install_property (object_class, PROP_ROUTES, g_param_spec_pointer (NM_IP4_CONFIG_ROUTES, "Routes", "Routes", G_PARAM_READABLE)); /** * NMIP4Config:wins-servers: * * The #GArray containing WINS servers (%guint32<!-- -->es) of the configuration. **/ g_object_class_install_property (object_class, PROP_WINS_SERVERS, g_param_spec_boxed (NM_IP4_CONFIG_WINS_SERVERS, "WINS Servers", "WINS Servers", NM_TYPE_UINT_ARRAY, G_PARAM_READABLE)); }
static void rb_source_class_init (RBSourceClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->dispose = rb_source_dispose; object_class->finalize = rb_source_finalize; object_class->set_property = rb_source_set_property; object_class->get_property = rb_source_get_property; klass->impl_can_browse = (RBSourceFeatureFunc) rb_false_function; klass->impl_get_browser_key = default_get_browser_key; klass->impl_browser_toggled = NULL; klass->impl_get_property_views = default_get_property_views; klass->impl_can_rename = default_can_rename; klass->impl_can_cut = (RBSourceFeatureFunc) rb_false_function; klass->impl_can_paste = (RBSourceFeatureFunc) rb_false_function; klass->impl_can_delete = (RBSourceFeatureFunc) rb_false_function; klass->impl_can_copy = (RBSourceFeatureFunc) rb_false_function; klass->impl_can_add_to_queue = (RBSourceFeatureFunc) rb_false_function; klass->impl_can_move_to_trash = (RBSourceFeatureFunc) rb_false_function; klass->impl_get_entry_view = default_get_entry_view; klass->impl_copy = default_copy; klass->impl_reset_filters = default_reset_filters; klass->impl_handle_eos = default_handle_eos; klass->impl_get_config_widget = NULL; klass->impl_receive_drag = NULL; klass->impl_show_popup = default_show_popup; klass->impl_delete_thyself = default_delete_thyself; klass->impl_activate = default_activate; klass->impl_deactivate = default_deactivate; klass->impl_try_playlist = default_try_playlist; klass->impl_add_to_queue = default_add_to_queue; klass->impl_get_status = default_get_status; klass->impl_get_ui_actions = default_get_ui_actions; klass->impl_get_search_actions = default_get_search_actions; klass->impl_get_delete_action = default_get_delete_action; klass->impl_move_to_trash = default_move_to_trash; /** * RBSource:name: * * Source name as displayed in the source list */ g_object_class_install_property (object_class, PROP_NAME, g_param_spec_string ("name", "UI name", "Interface name", NULL, G_PARAM_READWRITE)); /** * RBSource:icon: * * Icon to display in the source list */ g_object_class_install_property (object_class, PROP_ICON, g_param_spec_object ("icon", "Icon", "Source Icon", GDK_TYPE_PIXBUF, G_PARAM_READWRITE)); /** * RBSource:shell: * * The rhythmbox shell object */ g_object_class_install_property (object_class, PROP_SHELL, g_param_spec_object ("shell", "RBShell", "RBShell object", RB_TYPE_SHELL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); /** * RBSource:ui-manager: * * The Gtk UIManager object */ g_object_class_install_property (object_class, PROP_UI_MANAGER, g_param_spec_object ("ui-manager", "GtkUIManager", "GtkUIManager object", GTK_TYPE_UI_MANAGER, G_PARAM_READABLE)); /** * RBSource:visibility: * * If FALSE, the source will not be displayed in the source list */ g_object_class_install_property (object_class, PROP_VISIBLE, /* FIXME: This property could probably * be named better, there's already * a GtkWidget 'visible' property, * since RBSource derives from * GtkWidget, this can be confusing */ g_param_spec_boolean ("visibility", "visibility", "Whether the source should be displayed in the source list", TRUE, G_PARAM_READWRITE)); /** * RBSource:hidden-when-empty: * * If TRUE, the source will not be displayed in the source list * when it contains no entries. */ g_object_class_install_property (object_class, PROP_HIDDEN_WHEN_EMPTY, g_param_spec_boolean ("hidden-when-empty", "hidden-when-empty", "Whether the source should be displayed in the source list when it is empty", FALSE, G_PARAM_READWRITE)); /** * RBSource:query-model: * * The current query model for the source. This is used in * various places, including the play order, to find the * set of entries within the source. */ g_object_class_install_property (object_class, PROP_QUERY_MODEL, g_param_spec_object ("query-model", "RhythmDBQueryModel", "RhythmDBQueryModel object", RHYTHMDB_TYPE_QUERY_MODEL, G_PARAM_READWRITE)); /** * RBSource:source-group: * * Source group in which to display the source */ g_object_class_install_property (object_class, PROP_SOURCE_GROUP, g_param_spec_boxed ("source-group", "Source group", "Source group", RB_TYPE_SOURCE_GROUP, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); /** * RBSource:entry-type: * * Entry type for entries in this source. */ g_object_class_install_property (object_class, PROP_ENTRY_TYPE, g_param_spec_boxed ("entry-type", "Entry type", "Type of the entries which should be displayed by this source", RHYTHMDB_TYPE_ENTRY_TYPE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); /** * RBSource:plugin: * * The plugin that created this source. */ g_object_class_install_property (object_class, PROP_PLUGIN, g_param_spec_object ("plugin", "RBPlugin", "RBPlugin instance for the plugin that created the source", RB_TYPE_PLUGIN, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); /** * RBSource:base-query-model: * * The unfiltered query model for the source, containing all entries in the source. * Source classes should override this if they perform filtering based on the search * box or a browser. */ g_object_class_install_property (object_class, PROP_BASE_QUERY_MODEL, g_param_spec_object ("base-query-model", "RhythmDBQueryModel", "RhythmDBQueryModel object (unfiltered)", RHYTHMDB_TYPE_QUERY_MODEL, G_PARAM_READABLE)); /** * RBSource:play-order: * * If the source provides its own play order, it can override this property. */ g_object_class_install_property (object_class, PROP_PLAY_ORDER, g_param_spec_object ("play-order", "play order", "optional play order specific to the source", RB_TYPE_PLAY_ORDER, G_PARAM_READABLE)); /** * RBSource:search-type: * * The type of searching this source provides, as a RBSourceSearchType value. * This is used by the RBSourceHeader to modify the search box widget. */ g_object_class_install_property (object_class, PROP_SEARCH_TYPE, g_param_spec_enum ("search-type", "search-type", "search type", RB_TYPE_SOURCE_SEARCH_TYPE, RB_SOURCE_SEARCH_NONE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); /** * RBSource::deleted: * @source: the #RBSource * * Emitted when the source is being deleted. */ rb_source_signals[DELETED] = g_signal_new ("deleted", RB_TYPE_SOURCE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (RBSourceClass, deleted), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); /** * RBSource::status-changed: * @source: the #RBSource * * Emitted when the source's status changes. */ rb_source_signals[STATUS_CHANGED] = g_signal_new ("status_changed", RB_TYPE_SOURCE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (RBSourceClass, status_changed), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); /** * RBSource::filter-changed: * @source: the #RBSource * * Fires when the user changes the filter, either by changing the * contents of the search box or by selecting a different browser * entry. */ rb_source_signals[FILTER_CHANGED] = g_signal_new ("filter_changed", RB_TYPE_SOURCE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (RBSourceClass, filter_changed), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); g_type_class_add_private (object_class, sizeof (RBSourcePrivate)); }
static void gst_decklink_audio_src_class_init (GstDecklinkAudioSrcClass * klass) { GObjectClass *gobject_class = G_OBJECT_CLASS (klass); GstElementClass *element_class = GST_ELEMENT_CLASS (klass); GstBaseSrcClass *basesrc_class = GST_BASE_SRC_CLASS (klass); GstPushSrcClass *pushsrc_class = GST_PUSH_SRC_CLASS (klass); gobject_class->set_property = gst_decklink_audio_src_set_property; gobject_class->get_property = gst_decklink_audio_src_get_property; gobject_class->finalize = gst_decklink_audio_src_finalize; element_class->change_state = GST_DEBUG_FUNCPTR (gst_decklink_audio_src_change_state); basesrc_class->get_caps = GST_DEBUG_FUNCPTR (gst_decklink_audio_src_get_caps); basesrc_class->set_caps = GST_DEBUG_FUNCPTR (gst_decklink_audio_src_set_caps); basesrc_class->query = GST_DEBUG_FUNCPTR (gst_decklink_audio_src_query); basesrc_class->unlock = GST_DEBUG_FUNCPTR (gst_decklink_audio_src_unlock); basesrc_class->unlock_stop = GST_DEBUG_FUNCPTR (gst_decklink_audio_src_unlock_stop); pushsrc_class->create = GST_DEBUG_FUNCPTR (gst_decklink_audio_src_create); g_object_class_install_property (gobject_class, PROP_CONNECTION, g_param_spec_enum ("connection", "Connection", "Audio input connection to use", GST_TYPE_DECKLINK_AUDIO_CONNECTION, DEFAULT_CONNECTION, (GParamFlags) (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT))); g_object_class_install_property (gobject_class, PROP_DEVICE_NUMBER, g_param_spec_int ("device-number", "Device number", "Output device instance to use", 0, G_MAXINT, 0, (GParamFlags) (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT))); g_object_class_install_property (gobject_class, PROP_ALIGNMENT_THRESHOLD, g_param_spec_uint64 ("alignment-threshold", "Alignment Threshold", "Timestamp alignment threshold in nanoseconds", 0, G_MAXUINT64 - 1, DEFAULT_ALIGNMENT_THRESHOLD, (GParamFlags) (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS))); g_object_class_install_property (gobject_class, PROP_DISCONT_WAIT, g_param_spec_uint64 ("discont-wait", "Discont Wait", "Window of time in nanoseconds to wait before " "creating a discontinuity", 0, G_MAXUINT64 - 1, DEFAULT_DISCONT_WAIT, (GParamFlags) (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS))); g_object_class_install_property (gobject_class, PROP_BUFFER_SIZE, g_param_spec_uint ("buffer-size", "Buffer Size", "Size of internal buffer in number of video frames", 1, G_MAXINT, DEFAULT_BUFFER_SIZE, (GParamFlags) (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS))); gst_element_class_add_static_pad_template (element_class, &sink_template); gst_element_class_set_static_metadata (element_class, "Decklink Audio Source", "Audio/Src", "Decklink Source", "David Schleef <*****@*****.**>, " "Sebastian Dröge <*****@*****.**>"); GST_DEBUG_CATEGORY_INIT (gst_decklink_audio_src_debug, "decklinkaudiosrc", 0, "debug category for decklinkaudiosrc element"); }