Interface

PurpleProtocolFactory

Description [src]

interface Purple.ProtocolFactory : Purple.Protocol

An interface where protocols can expose subclasses of libpurple objects.

Available since:3.0.0

Prerequisite

In order to implement ProtocolFactory, your type must inherit from PurpleProtocol.

Instance methods

purple_protocol_factory_connection_new

Creates a new protocol-specific PurpleConnection subclass.

Available since: 3.0.0

purple_protocol_factory_whiteboard_new

Creates a new protocol-specific PurpleWhiteboard subclass.

Available since: 3.0.0

Interface structure

struct PurpleProtocolFactoryInterface {
  PurpleConnection* (* connection_new) (
    PurpleProtocolFactory* factory,
    PurpleAccount* account,
    const gchar* password
  );
  PurpleWhiteboard* (* whiteboard_new) (
    PurpleProtocolFactory* factory,
    PurpleAccount* account,
    const gchar* who,
    gint state
  );
  
}

The protocol factory interface.

This interface provides callbacks for construction of protocol-specific subclasses of some purple objects.

Interface members
connection_new
PurpleConnection* (* connection_new) (
    PurpleProtocolFactory* factory,
    PurpleAccount* account,
    const gchar* password
  )
 No description available.
whiteboard_new
PurpleWhiteboard* (* whiteboard_new) (
    PurpleProtocolFactory* factory,
    PurpleAccount* account,
    const gchar* who,
    gint state
  )
 No description available.

Virtual methods

Purple.ProtocolFactory.connection_new

Creates a new protocol-specific PurpleConnection subclass.

Purple.ProtocolFactory.whiteboard_new

Creates a new protocol-specific PurpleWhiteboard subclass.