Class
PurpleConversationManager
unstable since: 3.0
Description [src]
final class Purple.ConversationManager : GObject.Object
implements Gio.ListModel {
/* No available fields */
}
PurpleConversationManager
keeps track of all PurpleConversation
‘s inside
of libpurple and allows searching of them.
Available since: 3.0
Constructors
purple_conversation_manager_new
Creates a new conversation manager that will be backed by filename
.
unstable since: 3.0
Functions
purple_conversation_manager_get_default
Gets the default instance of PurpleConversationManager
. This instance
can be used for any of the API including connecting to signals.
unstable since: 3.0
purple_conversation_manager_get_default_as_model
Gets the default instance of PurpleConversationManager
but cast to a
GListModel
.
unstable since: 3.0
Instance methods
purple_conversation_manager_find_dm
Looks for a direct message with contact
and returns it if found.
unstable since: 3.0
purple_conversation_manager_find_with_id
Looks for a conversation belonging to account
with an id of id
.
unstable since: 3.0
purple_conversation_manager_get_all
Gets a list of all conversations that manager
knows about.
unstable since: 3.0
purple_conversation_manager_get_filename
Gets the filename the manager
should be serializing itself to.
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.ConversationManager:filename
The filename that the manager should save its contents to.
unstable since: 3.0
Purple.ConversationManager:item-type
The type of items. See Gio.ListModelInterface.get_item_type
.
unstable since: 3.0
Purple.ConversationManager:n-items
The number of items. See Gio.ListModelInterface.get_n_items
.
unstable since: 3.0
Signals
Purple.ConversationManager::added
Emitted after conversation
has been added to manager
.
unstable since: 3.0
Purple.ConversationManager::conversation-changed
This is a propagation of the notify signal from conversation
. This
means that your callback will be called for any conversation that
manager
knows about.
unstable since: 3.0
Purple.ConversationManager::present-conversation
This is a propagation of PurpleConversation::present
. This means that
your callback will be called for any conversation that manager
knows about.
unstable since: 3.0
Purple.ConversationManager::removed
Emitted after conversation
has been removed from 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.