Creates a #ICalProperty of the target type.
The kind of #ICalProperty to be created
Whether free the native libical structure on #ICalObject's finalize even if the object has set an owner.
Whether the native libical structure is from a global shared memory. If TRUE, then it is not freed on #ICalObject's finalize.
The native libical structure for this ICalObject.
GDestroyNotify function to use to destroy the native libical pointer.
Owner of the native libical structure. If set, then it is responsible for a free of the native libical structure.
Adds a depender
into the list of objects which should not be destroyed before
this iobject
. It's usually used for cases where the iobject
uses native libical
structure from the depender
. The depender
is referenced. It's illegal to try
to add one depender
multiple times.
Converts a #ICalProperty to a string representation.
Creates a binding between source_property
on source
and target_property
on target
.
Whenever the source_property
is changed the target_property
is
updated using the same value. For instance:
g_object_bind_property (action, "active", widget, "sensitive", 0);
Will result in the "sensitive" property of the widget #GObject instance to be updated with the same value of the "active" property of the action #GObject instance.
If flags
contains %G_BINDING_BIDIRECTIONAL then the binding will be mutual:
if target_property
on target
changes then the source_property
on source
will be updated as well.
The binding will automatically be removed when either the source
or the
target
instances are finalized. To remove the binding without affecting the
source
and the target
you can just call g_object_unref() on the returned
#GBinding instance.
Removing the binding by calling g_object_unref() on it must only be done if
the binding, source
and target
are only used from a single thread and it
is clear that both source
and target
outlive the binding. Especially it
is not safe to rely on this if the binding, source
or target
can be
finalized from different threads. Keep another reference to the binding and
use g_binding_unbind() instead to be on the safe side.
A #GObject can have multiple bindings.
the property on source
to bind
the target #GObject
the property on target
to bind
flags to pass to #GBinding
Creates a binding between source_property
on source
and target_property
on target,
allowing you to set the transformation functions to be used by
the binding.
This function is the language bindings friendly version of g_object_bind_property_full(), using #GClosures instead of function pointers.
the property on source
to bind
the target #GObject
the property on target
to bind
flags to pass to #GBinding
a #GClosure wrapping the transformation function from the source
to the target,
or %NULL to use the default
a #GClosure wrapping the transformation function from the target
to the source,
or %NULL to use the default
Counts the parameters in the #ICalProperty.
This function is intended for #GObject implementations to re-enforce a [floating][floating-ref] object reference. Doing this is seldom required: all #GInitiallyUnowneds are created with a floating reference which usually just needs to be sunken by calling g_object_ref_sink().
Increases the freeze count on object
. If the freeze count is
non-zero, the emission of "notify" signals on object
is
stopped. The signals are queued until the freeze count is decreased
to zero. Duplicate notifications are squashed so that at most one
#GObject::notify signal is emitted for each property modified while the
object is frozen.
This is necessary for accessors that modify multiple properties to prevent premature notification while the object is still being modified.
Gets the acceptresponse of #ICalProperty.
Gets the action of #ICalProperty.
Gets the allowconflict of #ICalProperty.
Obtain the ICalObject:
:always-destroy property value.
Gets the attach of #ICalProperty.
Gets the attendee of #ICalProperty.
Gets the busytype of #ICalProperty.
Gets the calid of #ICalProperty.
Gets the calmaster of #ICalProperty.
Gets the calscale of #ICalProperty.
Gets the capversion of #ICalProperty.
Gets the carid of #ICalProperty.
Gets the carlevel of #ICalProperty.
Gets the categories of #ICalProperty.
Gets the class of #ICalProperty.
Gets the cmd of #ICalProperty.
Gets the color property of the prop
.
Gets the comment of #ICalProperty.
Gets the components of #ICalProperty.
Gets the contact of #ICalProperty.
Gets the csid of #ICalProperty.
Gets a named field from the objects table of associations (see g_object_set_data()).
name of the key for that association
If the property is a DATE-TIME with a TZID parameter and a corresponding VTIMEZONE is present in the component, the returned component will already be in the correct timezone; otherwise the caller is responsible for converting it.
The comp
can be NULL, in which case the parent of the prop
is used to find
the corresponding time zone.
Gets the decreed of #ICalProperty.
Gets the defaultcharset of #ICalProperty.
Gets the defaultlocale of #ICalProperty.
Gets the defaulttzid of #ICalProperty.
Gets the defaultvcars of #ICalProperty.
Gets the deny of #ICalProperty.
Gets the description of #ICalProperty.
Gets the duration of #ICalProperty.
Gets the estimatedduration of #ICalProperty.
Gets the expand of #ICalProperty.
Gets the exrule recurrence type of #ICalProperty.
Gets the first #ICalParameter from the parent #ICalProperty.
The target kind of #ICalParameter to be retrieved
Gets the freebusy period type of #ICalProperty.
Gets the geo type of #ICalProperty.
Gets the grant of #ICalProperty.
Obtains whether the native libical structure is a global shared memory, thus should not be destroyed. This can be set only during construction time.
Gets the itipversion of #ICalProperty.
Gets the location of #ICalProperty.
Gets the maxcomponentsize of #ICalProperty.
Gets the maxresults of #ICalProperty.
Gets the maxresultssize of #ICalProperty.
Gets the method of #ICalProperty.
Gets the multipart of #ICalProperty.
Gets the name of #ICalProperty.
Gets the next #ICalParameter from the parent #ICalProperty.
The target kind of #ICalParameter to be retrieved
Gets the organizer of #ICalProperty.
Gets the owner of #ICalProperty.
Gets the string representation of the target parameter in the #ICalProperty.
The name of the target parameter
Gets the parent component of the property. Use with caution. When icalproperty is deallocated, it won't deallocate its parent. However the #ICalComponent object created using this method will be deallocated (if no reference in other places). So You need to make sure there is another reference except the one in #ICalProperty.
Gets the percentcomplete of #ICalProperty.
Gets the permission of #ICalProperty.
Gets the pollcompletion of #ICalProperty.
Gets the pollitemid of #ICalProperty.
Gets the pollmode of #ICalProperty.
Gets the pollproperties of #ICalProperty.
Gets the pollwinner of #ICalProperty.
Gets the priority of #ICalProperty.
Gets the prodid of #ICalProperty.
Gets a property of an object.
The value
can be:
In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling g_value_unset().
Note that g_object_get_property() is really intended for language bindings, g_object_get() is much more convenient for C programming.
the name of the property to get
return location for the property value
Gets the property name of #ICalProperty.
This function gets back user data pointers stored via g_object_set_qdata().
A #GQuark, naming the user data pointer
Gets the query of #ICalProperty.
Gets the queryid of #ICalProperty.
Gets the querylevel of #ICalProperty.
Gets the queryname of #ICalProperty.
Gets the rdate of #ICalProperty.
Gets the recuraccepted of #ICalProperty.
Gets the recurexpand of #ICalProperty.
Gets the recurlimit of #ICalProperty.
Gets the relatedto of #ICalProperty.
Gets the relcalid of #ICalProperty.
Gets the repeat of #ICalProperty.
Gets the replyurl of #ICalProperty.
Gets the requeststatus of #ICalProperty.
Gets the resources of #ICalProperty.
Gets the response of #ICalProperty.
Gets the restriction of #ICalProperty.
Gets the rrule recurrence type of #ICalProperty.
Gets the scope of #ICalProperty.
Gets the sequence of #ICalProperty.
Gets the status of #ICalProperty.
Gets the storesexpanded of #ICalProperty.
Gets the summary of #ICalProperty.
Gets the target of #ICalProperty.
Gets the taskmode of #ICalProperty.
Gets the transp of #ICalProperty.
Gets the trigger period type of #ICalProperty.
Gets the tzid of #ICalProperty.
Gets the tzidaliasof of #ICalProperty.
Gets the tzname of #ICalProperty.
Gets the tzoffsetfrom of #ICalProperty.
Gets the tzoffsetto of #ICalProperty.
Gets the tzurl of #ICalProperty.
Gets the uid of #ICalProperty.
Gets the url of #ICalProperty.
Gets the string representation of the value in #ICalProperty.
Gets the version of #ICalProperty.
Gets the voter of #ICalProperty.
Gets the x of #ICalProperty.
Gets the name of x property.
Gets the xlicclass of #ICalProperty.
Gets the xlicclustercount of #ICalProperty.
Gets the xlicerror of #ICalProperty.
Gets the xlicmimecharset of #ICalProperty.
Gets the xlicmimecid of #ICalProperty.
Gets the xlicmimecontenttype of #ICalProperty.
Gets the xlicmimeencoding of #ICalProperty.
Gets the xlicmimefilename of #ICalProperty.
Gets the xlicmimeoptinfo of #ICalProperty.
Gets n_properties
properties for an object
.
Obtained properties will be set to values
. All properties must be valid.
Warnings will be emitted and undefined behaviour may result if invalid
properties are passed in.
the names of each property to get
the values of each property to get
Checks whether object
has a [floating][floating-ref] reference.
Gets the kind of #ICalProperty.
Checks whether the native part of #ICalProperty is of the type icalproperty.
Emits a "notify" signal for the property property_name
on object
.
When possible, eg. when signaling a property change from within the class that registered the property, you should use g_object_notify_by_pspec() instead.
Note that emission of the notify signal may be blocked with g_object_freeze_notify(). In this case, the signal emissions are queued and will be emitted (in reverse order) when g_object_thaw_notify() is called.
the name of a property installed on the class of object
.
Emits a "notify" signal for the property specified by pspec
on object
.
This function omits the property name lookup, hence it is faster than g_object_notify().
One way to avoid using g_object_notify() from within the class that registered the properties, and using g_object_notify_by_pspec() instead, is to store the GParamSpec used with g_object_class_install_property() inside a static array, e.g.:
enum
{
PROP_0,
PROP_FOO,
PROP_LAST
};
static GParamSpec *properties[PROP_LAST];
static void
my_object_class_init (MyObjectClass *klass)
{
properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
0, 100,
50,
G_PARAM_READWRITE);
g_object_class_install_property (gobject_class,
PROP_FOO,
properties[PROP_FOO]);
}
and then notify a change on the "foo" property with:
g_object_notify_by_pspec (self, properties[PROP_FOO]);
the #GParamSpec of a property installed on the class of object
.
Increase the reference count of object,
and possibly remove the
[floating][floating-ref] reference, if object
has a floating reference.
In other words, if the object is floating, then this call "assumes ownership" of the floating reference, converting it to a normal reference by clearing the floating flag while leaving the reference count unchanged. If the object is not floating, then this call adds a new normal reference increasing the reference count by one.
Since GLib 2.56, the type of object
will be propagated to the return type
under the same conditions as for g_object_ref().
Unref and remove the owner.
Removes the target kind of the parameters in the #ICalProperty.
The #ICalParameterKind to be removed
Removes parameter in the #ICalProperty by name.
The name of the parameter to be removed
Releases all references to other objects. This can be used to break reference cycles.
This function should only be called from object system implementations.
Sets the acceptresponse for the #ICalProperty.
The acceptresponse
Sets the action for the #ICalProperty.
The action
Sets the allowconflict for the #ICalProperty.
The allowconflict
Sets the ICalObject:
:always-destroy property value. When %TRUE, the native
libical structure is always freed, even when an owner of the iobject
is set.
value to set
Sets the attach for the #ICalProperty.
The attach
Sets the attendee for the #ICalProperty.
The attendee
Sets the busytype for the #ICalProperty.
The busytype
Sets the calid for the #ICalProperty.
The calid
Sets the calmaster for the #ICalProperty.
The calmaster
Sets the calscale for the #ICalProperty.
The calscale
Sets the capversion for the #ICalProperty.
The capversion
Sets the carid for the #ICalProperty.
The carid
Sets the carlevel for the #ICalProperty.
The carlevel
Sets the categories for the #ICalProperty.
The categories
Sets the class for the #ICalProperty.
The class
Sets the cmd for the #ICalProperty.
The cmd
Sets the color for the prop
.
The color
Sets the comment for the #ICalProperty.
The comment
Sets the components for the #ICalProperty.
The components
Sets the contact for the #ICalProperty.
The contact
Sets the csid for the #ICalProperty.
The csid
Each object carries around a table of associations from strings to pointers. This function lets you set an association.
If the object already had an association with that name, the old association will be destroyed.
Internally, the key
is converted to a #GQuark using g_quark_from_string().
This means a copy of key
is kept permanently (even after object
has been
finalized) — so it is recommended to only use a small, bounded set of values
for key
in your program, to avoid the #GQuark storage growing unbounded.
name of the key
data to associate with that key
Sets the decreed for the #ICalProperty.
The decreed
Sets the defaultcharset for the #ICalProperty.
The defaultcharset
Sets the defaultlocale for the #ICalProperty.
The defaultlocale
Sets the defaulttzid for the #ICalProperty.
The defaulttzid
Sets the defaultvcars for the #ICalProperty.
The defaultvcars
Sets the deny for the #ICalProperty.
The deny
Sets the description for the #ICalProperty.
The description
Sets the duration for the #ICalProperty.
The duration
Sets the estimatedduration for the #ICalProperty.
The estimatedduration
Sets the expand for the #ICalProperty.
The expand
Sets the exrule time for the #ICalProperty.
The exrule recurrence type
Sets the freebusy time for the #ICalProperty.
The freebusy period type
Sets the geo for the #ICalProperty.
The geo type
Sets the grant for the #ICalProperty.
The grant
Sets the itipversion for the #ICalProperty.
The itipversion
Sets the location for the #ICalProperty.
The location
Sets the maxcomponentsize for the #ICalProperty.
The maxcomponentsize
Sets the maxresults for the #ICalProperty.
The maxresults
Sets the maxresultssize for the #ICalProperty.
The maxresultssize
Sets the method for the #ICalProperty.
The method
Sets the multipart for the #ICalProperty.
The multipart
Sets the name for the #ICalProperty.
The name
Sets a function to be used to destroy the native libical structure.
Function to be used to destroy the native libical structure
Sets the organizer for the #ICalProperty.
The organizer
Sets the owner for the #ICalProperty.
The owner
Sets an owner of the native libical structure, that is an object responsible for a destroy of the native libical structure.
Sets the #ICalProperty with the parameter defined by the name and value.
The name of the parameter
The value of the parameter
Sets the percentcomplete for the #ICalProperty.
The percentcomplete
Sets the permission for the #ICalProperty.
The permission
Sets the pollcompletion for the #ICalProperty.
The pollcompletion
Sets the pollitemid for the #ICalProperty.
The pollitemid
Sets the pollmode for the #ICalProperty.
The pollmode
Sets the pollproperties for the #ICalProperty.
The pollproperties
Sets the pollwinner for the #ICalProperty.
The pollwinner
Sets the priority for the #ICalProperty.
The priority
Sets the prodid for the #ICalProperty.
The prodid
Sets a property on an object.
the name of the property to set
the value
Sets the query for the #ICalProperty.
The query
Sets the queryid for the #ICalProperty.
The queryid
Sets the querylevel for the #ICalProperty.
The querylevel
Sets the queryname for the #ICalProperty.
The queryname
Sets the rdate for the #ICalProperty.
The rdate
Sets the recuraccepted for the #ICalProperty.
The recuraccepted
Sets the recurexpand for the #ICalProperty.
The recurexpand
Sets the recurlimit for the #ICalProperty.
The recurlimit
Sets the relatedto for the #ICalProperty.
The relatedto
Sets the relcalid for the #ICalProperty.
The relcalid
Sets the repeat for the #ICalProperty.
The repeat
Sets the replyurl for the #ICalProperty.
The replyurl
Sets the requeststatus for the #ICalProperty.
The requeststatus
Sets the resources for the #ICalProperty.
The resources
Sets the response for the #ICalProperty.
The response
Sets the restriction for the #ICalProperty.
The restriction
Sets the rrule for the #ICalProperty.
The rrule recurrence type
Sets the scope for the #ICalProperty.
The scope
Sets the sequence for the #ICalProperty.
The sequence
Sets the status for the #ICalProperty.
The status
Sets the storesexpanded for the #ICalProperty.
The storesexpanded
Sets the summary for the #ICalProperty.
The summary
Sets the target for the #ICalProperty.
The target
Sets the taskmode for the #ICalProperty.
The taskmode
Sets the transp for the #ICalProperty.
The transp
Sets the trigger time for the #ICalProperty.
The trigger period type
Sets the tzid for the #ICalProperty.
The tzid
Sets the tzidaliasof for the #ICalProperty.
The tzidaliasof
Sets the tzname for the #ICalProperty.
The tzname
Sets the tzoffsetfrom for the #ICalProperty.
The tzoffsetfrom
Sets the tzoffsetto for the #ICalProperty.
The tzoffsetto
Sets the tzurl for the #ICalProperty.
The tzurl
Sets the uid for the #ICalProperty.
The uid
Sets the url for the #ICalProperty.
The url
Sets the #ICalProperty with the #ICalValue constructed from string.
The value used to construct the #ICalValue
The kind used to construct the #ICalValue
Sets the version for the #ICalProperty.
The version
Sets the voter for the #ICalProperty.
The voter
Sets the x for the #ICalProperty.
The x
Sets the name of x property for the #ICalProperty.
The name string
Sets the xlicclass for the #ICalProperty.
The xlicclass
Sets the xlicclustercount for the #ICalProperty.
The xlicclustercount
Sets the xlicerror for the #ICalProperty.
The xlicerror
Sets the xlicmimecharset for the #ICalProperty.
The xlicmimecharset
Sets the xlicmimecid for the #ICalProperty.
The xlicmimecid
Sets the xlicmimecontenttype for the #ICalProperty.
The xlicmimecontenttype
Sets the xlicmimeencoding for the #ICalProperty.
The xlicmimeencoding
Sets the xlicmimefilename for the #ICalProperty.
The xlicmimefilename
Sets the xlicmimeoptinfo for the #ICalProperty.
The xlicmimeoptinfo
Remove a specified datum from the object's data associations, without invoking the association's destroy handler.
name of the key
Obtain native libical structure pointer associated with this iobject
and sets the one
at iobject
to NULL, thus it's invalid since now on.
This function gets back user data pointers stored via
g_object_set_qdata() and removes the data
from object
without invoking its destroy() function (if any was
set).
Usually, calling this function is only required to update
user data pointers with a destroy notifier, for example:
void
object_add_to_user_list (GObject *object,
const gchar *new_string)
{
// the quark, naming the object data
GQuark quark_string_list = g_quark_from_static_string ("my-string-list");
// retrieve the old string list
GList *list = g_object_steal_qdata (object, quark_string_list);
// prepend new string
list = g_list_prepend (list, g_strdup (new_string));
// this changed 'list', so we need to set it again
g_object_set_qdata_full (object, quark_string_list, list, free_string_list);
}
static void
free_string_list (gpointer data)
{
GList *node, *list = data;
for (node = list; node; node = node->next)
g_free (node->data);
g_list_free (list);
}
Using g_object_get_qdata() in the above example, instead of g_object_steal_qdata() would have left the destroy function set, and thus the partial string list would have been freed upon g_object_set_qdata_full().
A #GQuark, naming the user data pointer
Reverts the effect of a previous call to
g_object_freeze_notify(). The freeze count is decreased on object
and when it reaches zero, queued "notify" signals are emitted.
Duplicate notifications for each property are squashed so that at most one #GObject::notify signal is emitted for each property, in the reverse order in which they have been queued.
It is an error to call this function when the freeze count is zero.
Decreases the reference count of object
. When its reference count
drops to 0, the object is finalized (i.e. its memory is freed).
If the pointer to the #GObject may be reused in future (for example, if it is an instance variable of another object), it is recommended to clear the pointer to %NULL rather than retain a dangling pointer to a potentially invalid #GObject instance. Use g_clear_object() for this.
Emits a "notify" signal for the property property_name
on object
.
When possible, eg. when signaling a property change from within the class that registered the property, you should use g_object_notify_by_pspec() instead.
Note that emission of the notify signal may be blocked with g_object_freeze_notify(). In this case, the signal emissions are queued and will be emitted (in reverse order) when g_object_thaw_notify() is called.
This function essentially limits the life time of the closure
to
the life time of the object. That is, when the object is finalized,
the closure
is invalidated by calling g_closure_invalidate() on
it, in order to prevent invocations of the closure with a finalized
(nonexisting) object. Also, g_object_ref() and g_object_unref() are
added as marshal guards to the closure,
to ensure that an extra
reference count is held on object
during invocation of the
closure
. Usually, this function will be called on closures that
use this object
as closure data.
#GClosure to watch
Converts the enum to string.
The enum to be converted
Frees all global objects. Any references to them are invalidated by this call, unless they had been g_object_ref()-ed manually.
Find the #GParamSpec with the given name for an
interface. Generally, the interface vtable passed in as g_iface
will be the default vtable from g_type_default_interface_ref(), or,
if you know the interface has already been loaded,
g_type_default_interface_peek().
any interface vtable for the interface, or the default vtable for the interface
name of a property to look up.
Add a property to an interface; this is only useful for interfaces that are added to GObject-derived types. Adding a property to an interface forces all objects classes with that interface to have a compatible property. The compatible property could be a newly created #GParamSpec, but normally g_object_class_override_property() will be used so that the object class only needs to provide an implementation and inherits the property description, default value, bounds, and so forth from the interface property.
This function is meant to be called from the interface's default
vtable initialization function (the class_init
member of
#GTypeInfo.) It must not be called after after class_init
has
been called for any object types implementing this interface.
If pspec
is a floating reference, it will be consumed.
any interface vtable for the interface, or the default vtable for the interface.
the #GParamSpec for the new property
Lists the properties of an interface.Generally, the interface
vtable passed in as g_iface
will be the default vtable from
g_type_default_interface_ref(), or, if you know the interface has
already been loaded, g_type_default_interface_peek().
any interface vtable for the interface, or the default vtable for the interface
Converts a integer and string into an enum.
The kind
A string
Converts the string to #ICalPropertyKind.
A string representing #ICalPropertyKind
Checks whether the enum belongs to the #ICalPropertyKind.
A #ICalPropertyKind
The enum to be checked
Checks whether #ICalPropertyKind is valid.
The #ICalPropertyKind
Converts the #ICalPropertyKind to a string.
A #ICalPropertyKind
Converts the #ICalPropertyKind to #ICalValueKind.
A #ICalPropertyKind
Converts the string to #ICalPropertyKind.
A string
Converts the #ICalPropertyMethod to string.
The #ICalPropertyMethod
Creates a #ICalProperty of the target type.
The kind of #ICalProperty to be created
Creates a new #ICalProperty.
The action
Creates a new #ICalProperty.
The busytype
Creates a new #ICalProperty.
The carlevel
Creates a new #ICalProperty.
The class
Creates a new #ICalProperty.
The cmd
Creates a new #ICalProperty.
The exrule recurrence type
Creates a new #ICalProperty.
The method
Creates a new #ICalProperty.
The pollcompletion
Creates a new #ICalProperty.
The pollmode
Creates a new #ICalProperty.
The querylevel
Creates a new #ICalProperty.
The rdate
Creates a new #ICalProperty.
The rrule recurrence type
Creates a new #ICalProperty.
The status
Creates a new #ICalProperty.
The taskmode
Creates a new #ICalProperty.
The transp
Creates a new #ICalProperty.
The xlicclass
Creates a new instance of a #GObject subtype and sets its properties.
Construction parameters (see %G_PARAM_CONSTRUCT, %G_PARAM_CONSTRUCT_ONLY) which are not explicitly specified are set to their default values.
the type id of the #GObject subtype to instantiate
an array of #GParameter
Decides if this recurrence is acceptable. This function decides if a specific recurrence value is excluded by EXRULE or EXDATE properties.
A #ICalComponent
The base dtstart value for this component
The time to test against
Converts the string to #ICalPropertyKind.
A string
Converts the #ICalPropertyStatus to string.
The #ICalPropertyStatus
This is the ICalProperty instance.