EDataCal.DataCalView¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
The backend being monitored |
||
r/w/co |
The |
||
r/w/co |
The object path at which to export the view interface |
||
r/w/co |
The query expression for this view |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class EDataCal.DataCalView(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(backend, sexp, connection, object_path)¶
- Parameters:
backend (
object
orNone
) – anEDataCal.CalBackend
sexp (
object
orNone
) – anEDataCal.CalBackendSExp
connection (
Gio.DBusConnection
) – aGio.DBusConnection
object_path (
str
) – an object path for the view
- Raises:
- Returns:
a new
EDataCal.DataCalView
, orNone
on error- Return type:
Creates a new
EDataCal.DataCalView
and exports its D-Bus interface on connection at object_path. If an error occurs while exporting, the function sets error and returnsNone
.
- component_matches(component)¶
- Parameters:
component (
ECal.Component
) – theECal.Component
object to match.- Returns:
- Return type:
Compares the given component to the regular expression used for the given view.
New in version 3.4.
- get_component_string(component)¶
- Parameters:
component (
ECal.Component
) – TheECal.Component
to get the string for.- Returns:
A newly allocated string representation of component suitable for self.
- Return type:
This function is similar to
ECal.Component.get_as_string
() except that it takes into account the fields-of-interest that self is configured with and filters out any unneeded fields.New in version 3.4.
- get_connection()¶
- Returns:
- Return type:
Returns the
Gio.DBusConnection
on which the CalendarView D-Bus interface is exported.New in version 3.8.
- get_fields_of_interest()¶
- Returns:
Hash table of field names which the listener is interested in. Backends can return fully populated objects, but the listener advertised that it will use only these. Returns
None
for all available fields.Note: The data pointer in the hash table has no special meaning, it’s only GINT_TO_POINTER(1) for easier checking. Also, field names are compared case insensitively.
- Return type:
New in version 3.2.
- get_flags()¶
- Returns:
the flags for self.
- Return type:
Gets the
ECal.ClientViewFlags
that control the behaviour of self.New in version 3.6.
- get_object_path()¶
- Returns:
the object path
- Return type:
Return the object path at which the CalendarView D-Bus inteface is exported.
New in version 3.8.
- get_sexp()¶
-
Get the
EDataCal.CalBackendSExp
object used for the given view.New in version 3.8.
- is_completed()¶
-
Checks whether the given view is already completed. Being completed means the initial matching of objects have been finished, not that no more notifications about changes will be sent. In fact, even after completed, notifications will still be sent if there are changes in the objects matching the view search expression.
New in version 3.2.
- is_started()¶
-
Checks whether the given view has already been started.
- is_stopped()¶
-
Checks whether the given view has been stopped.
New in version 2.32.
- notify_complete(error)¶
- Parameters:
error (
GLib.Error
) – View completion error, if any.
Notifies all view listeners of the completion of the view, including a status code.
New in version 3.2.
- notify_components_added(ecalcomponents)¶
- Parameters:
ecalcomponents ([
ECal.Component
]) – List ofECal.Component
-s that have been added.
Notifies all view listeners of the addition of a list of components.
Uses the
EDataCal.DataCalView
's fields-of-interest to filter out unwanted information from iCalendar strings sent over the bus.New in version 3.4.
- notify_components_added_1(component)¶
- Parameters:
component (
ECal.Component
) – TheECal.Component
that has been added.
Notifies all the view listeners of the addition of a single object.
Uses the
EDataCal.DataCalView
's fields-of-interest to filter out unwanted information from iCalendar strings sent over the bus.New in version 3.4.
- notify_components_modified(ecalcomponents)¶
- Parameters:
ecalcomponents ([
ECal.Component
]) – List of modifiedECal.Component
-s.
Notifies all view listeners of the modification of a list of components.
Uses the
EDataCal.DataCalView
's fields-of-interest to filter out unwanted information from iCalendar strings sent over the bus.New in version 3.4.
- notify_components_modified_1(component)¶
- Parameters:
component (
ECal.Component
) – The modifiedECal.Component
.
Notifies all view listeners of the modification of component.
Uses the
EDataCal.DataCalView
's fields-of-interest to filter out unwanted information from iCalendar strings sent over the bus.New in version 3.4.
- notify_objects_removed(ids)¶
- Parameters:
ids ([
ECal.ComponentId
]) – List of IDs for the objects that have been removed.
Notifies all view listener of the removal of a list of objects.
- notify_objects_removed_1(id)¶
- Parameters:
id (
ECal.ComponentId
) – ID of the removed object.
Notifies all view listener of the removal of a single object.
- notify_progress(percent, message)¶
- Parameters:
Notifies all view listeners of progress messages.
- object_matches(object)¶
- Parameters:
object (
str
) – Object to match.- Returns:
- Return type:
Compares the given object to the regular expression used for the given view.
- ref_backend()¶
- Returns:
The associated
EDataCal.CalBackend
.- Return type:
Refs the backend that self is querying. Unref the returned backend, if not
None
, withGObject.Object.unref
(), when no longer needed.New in version 3.34.
Property Details¶
- EDataCal.DataCalView.props.backend¶
- Name:
backend
- Type:
- Default Value:
- Flags:
The backend being monitored
- EDataCal.DataCalView.props.connection¶
- Name:
connection
- Type:
- Default Value:
- Flags:
The
Gio.DBusConnection
on which to export the view interface
- EDataCal.DataCalView.props.object_path¶
- Name:
object-path
- Type:
- Default Value:
- Flags:
The object path at which to export the view interface
- EDataCal.DataCalView.props.sexp¶
- Name:
sexp
- Type:
- Default Value:
- Flags:
The query expression for this view