Channel
Object Hierarchy:
Description:
[
CCode ( type_id =
"xfconf_channel_get_type ()" ) ]
public class Channel :
Object
An opaque structure that holds state about a channel.
Content:
Properties:
- public string channel_name { owned get; construct; }
The string identifier used for this channel.
- public bool is_singleton { get; construct; }
Identifies the instance of the class as a singleton instance or not.
- public string property_base { owned get; construct; }
The string identifier used for the property base inside a channel.
Creation methods:
- public Channel (string channel_name)
Creates a new channel using name as the channel's
identifier.
- public Channel.get (string channel_name)
Either creates a new channel, or fetches a singleton object for
channel_name.
- public Channel.with_property_base (string channel_name, string property_base)
Creates a new channel using name as the channel's
identifier, restricting the accessible properties to be rooted at property_base.
Methods:
- public GenericArray<Value?>? get_arrayv (string property)
Gets an array property on this and
returns it as a GenericArray, which can be freed with
array_free when no longer needed.
- public bool get_bool (string property, bool default_value)
Retrieves the boolean value associated with property on
this.
- public double get_double (string property, double default_value)
Retrieves the double value associated with property on
this.
- public int32 get_int (string property, int32 default_value)
Retrieves the int value associated with property on
this.
- public bool get_named_struct (string property, string struct_name, void* value_struct)
Gets a property from this and fills
in value_struct using the retrieved values.
- public HashTable<unowned string,unowned Value?> get_properties (string? property_base)
Retrieves multiple properties from this
and stores them in a GenericSet in which the keys correspond to
the string (gchar *) property names, and the values correspond to variant (GValue *) values.
- public bool get_property (string property, Value value)
Gets a property on this and stores
it in value.
- public string? get_string (string property, string? default_value)
Retrieves the string value associated with property on
this.
- public string[]? get_string_list (string property)
Retrieves the string list value associated with property
on this.
- public bool get_structv (string property, void* value_struct, uint n_members, Type member_types)
Gets a property on this and stores
it as members of the value_struct struct.
- public uint32 get_uint (string property, uint32 default_value)
Retrieves the unsigned int value associated with property
on this.
- public uint64 get_uint64 (string property, uint64 default_value)
Retrieves the 64-bit int value associated with property
on this.
- public bool has_property (string property)
Checks to see if property exists on
this.
- public bool is_property_locked (string property)
Queries whether or not property on
this is locked by system policy.
- public void reset_property (string property_base, bool recursive)
Resets properties starting at (and including) property_base
.
- public bool set_arrayv (string property, GenericArray<Value?> values)
Sets an array property on this,
using the values in the provided values array.
- public bool set_bool (string property, bool value)
Sets value for property on
this in the configuration store.
- public bool set_double (string property, double value)
Sets value for property on
this in the configuration store.
- public bool set_int (string property, int32 value)
Sets value for property on
this in the configuration store.
- public bool set_named_struct (string property, string struct_name, void* value_struct)
Sets a property on this using the
members of value_struct as the array of values.
- public bool set_property (string property, Value value)
Sets the value stored in value to a property on
this.
- public bool set_string (string property, string value)
Sets value for property on
this in the configuration store.
- public bool set_string_list (string property, string values)
Sets values for property on
this in the configuration store.
- public bool set_structv (string property, void* value_struct, uint n_members, Type member_types)
Sets a property on this using the
members of value_struct as a value array.
- public bool set_uint (string property, uint32 value)
Sets value for property on
this in the configuration store.
- public bool set_uint64 (string property, uint64 value)
Sets value for property on
this in the configuration store.
Signals:
Inherited Members:
All known members inherited from class GLib.Object