Class

PurpleHistoryAdapter

unstable since: 3.0

Description [src]

abstract class Purple.HistoryAdapter : GObject.Object
{
  /* No available fields */
}

PurpleHistoryAdapter is a base class that should be sub classed by history adapters. It defines the behavior of all history adapters and implements some shared properties.

Available since: 3.0

Ancestors

Instance methods

purple_history_adapter_get_id

Gets the identifier of adapter.

unstable since: 3.0

purple_history_adapter_get_name

Gets the name of adapter.

unstable since: 3.0

purple_history_adapter_query

Runs query against adapter.

unstable since: 3.0

purple_history_adapter_remove

Tells adapter to remove messages that match query.

unstable since: 3.0

purple_history_adapter_write

Writes a message to the adapter.

unstable since: 3.0

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Purple.HistoryAdapter:id

The ID of the adapter. Used for preferences and other things that need to address it.

unstable since: 3.0

Purple.HistoryAdapter:name

The name of the adapter.

unstable since: 3.0

Signals

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.

Class structure

struct PurpleHistoryAdapterClass {
  gboolean (* activate) (
    PurpleHistoryAdapter* adapter,
    GError** error
  );
  gboolean (* deactivate) (
    PurpleHistoryAdapter* adapter,
    GError** error
  );
  GList* (* query) (
    PurpleHistoryAdapter* adapter,
    const gchar* query,
    GError** error
  );
  gboolean (* remove) (
    PurpleHistoryAdapter* adapter,
    const gchar* query,
    GError** error
  );
  gboolean (* write) (
    PurpleHistoryAdapter* adapter,
    PurpleConversation* conversation,
    PurpleMessage* message,
    GError** error
  );
  
}

PurpleHistoryAdapterClass defines the interface for interacting with history adapters like sqlite, and so on.

Class members
activate: gboolean (* activate) ( PurpleHistoryAdapter* adapter, GError** error )

No description available.

deactivate: gboolean (* deactivate) ( PurpleHistoryAdapter* adapter, GError** error )

No description available.

query: GList* (* query) ( PurpleHistoryAdapter* adapter, const gchar* query, GError** error )

No description available.

remove: gboolean (* remove) ( PurpleHistoryAdapter* adapter, const gchar* query, GError** error )

No description available.

write: gboolean (* write) ( PurpleHistoryAdapter* adapter, PurpleConversation* conversation, PurpleMessage* message, GError** error )

No description available.

Virtual methods

Purple.HistoryAdapterClass.activate
No description available.

Purple.HistoryAdapterClass.deactivate
No description available.

Purple.HistoryAdapterClass.query

Runs query against adapter.

unstable since: 3.0

Purple.HistoryAdapterClass.remove

Tells adapter to remove messages that match query.

unstable since: 3.0

Purple.HistoryAdapterClass.write

Writes a message to the adapter.

unstable since: 3.0