Class
PurplePresenceManager
unstable since: 3.0
Description [src]
final class Purple.PresenceManager : GObject.Object
implements Gio.ListModel {
/* No available fields */
}
A manager for PurpleSavedPresence
‘s.
Available since: 3.0
Functions
purple_presence_manager_get_default
Gets the default PurplePresenceManager
that should be used.
unstable since: 3.0
purple_presence_manager_get_default_as_model
Gets the default PurplePresenceManager
as a GListModel
.
unstable since: 3.0
Instance methods
purple_presence_manager_create
Creates a new PurpleSavedPresence
that is automatically added to manager
.
unstable since: 3.0
purple_presence_manager_get_active
Gets the active PurpleSavedPresence
from manager
.
unstable since: 3.0
purple_presence_manager_get_path
Gets the directory path that manager
is using for storage.
unstable since: 3.0
purple_presence_manager_remove
Attempts to remove the PurpleSavedPresence
identified by id
from
manager
.
unstable since: 3.0
Methods inherited from GListModel (5)
g_list_model_get_item
Get the item at position
.
g_list_model_get_item_type
Gets the type of the items in list
.
g_list_model_get_n_items
Gets the number of items in list
.
g_list_model_get_object
Get the item at position
.
g_list_model_items_changed
Emits the GListModel::items-changed
signal on list
.
Properties
Purple.PresenceManager:active-presence
The PurpleSavedPresence
that is currently active.
unstable since: 3.0
Purple.PresenceManager:item-type
The type of items. See Gio.ListModelInterface.get_item_type
.
unstable since: 3.0
Purple.PresenceManager:n-items
The number of items. See Gio.ListModelInterface.get_n_items
.
unstable since: 3.0
Purple.PresenceManager:path
The directory path where settings should be stored. If this is NULL
settings will not be saved to disk.
unstable since: 3.0
Signals
Purple.PresenceManager::added
Emitted when a PurpleSavedPresence
is successfully added to the manager.
unstable since: 3.0
Purple.PresenceManager::removed
Emitted when a PurpleSavedPresence
is successfully removed from the manager.
unstable since: 3.0
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Signals inherited from GListModel (1)
GListModel::items-changed
This signal is emitted whenever items were added to or removed
from list
. At position
, removed
items were removed and added
items were added in their place.