Interface
PurpleProtocolConversation
Prerequisite
In order to implement ProtocolConversation, your type must inherit fromPurpleProtocol
.
Instance methods
purple_protocol_conversation_send_message_async
Starts the process of sending message
to conversation
.
since: 3.0.0
purple_protocol_conversation_send_message_finish
Finishes a previous call to
purple_protocol_conversation_send_message_async()
. This should be called from
the callback of that function to get the result of whether or not the
message was sent successfully.
since: 3.0.0
purple_protocol_conversation_set_topic_async
Starts the process of setting the topic of conversation
to topic
.
since: 3.0.0
purple_protocol_conversation_set_topic_finish
Finishes a previous call to
purple_protocol_conversation_set_topic_async()
. This should be called from
the callback of that function to get the result of whether or not the
message was sent successfully.
since: 3.0.0
Interface structure
struct PurpleProtocolConversationInterface {
void (* send_message_async) (
PurpleProtocolConversation* protocol,
PurpleConversation* conversation,
PurpleMessage* message,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer data
);
gboolean (* send_message_finish) (
PurpleProtocolConversation* protocol,
GAsyncResult* result,
GError** error
);
void (* set_topic_async) (
PurpleProtocolConversation* protocol,
PurpleConversation* conversation,
const char* topic,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer data
);
gboolean (* set_topic_finish) (
PurpleProtocolConversation* protocol,
GAsyncResult* result,
GError** error
);
}
This interface defines the behavior for interacting with conversations at the protocol layer. These methods will primarily be called by the user interface.
Interface members
send_message_async |
|
No description available. | |
send_message_finish |
|
No description available. | |
set_topic_async |
|
No description available. | |
set_topic_finish |
|
No description available. |
Virtual methods
Purple.ProtocolConversation.send_message_async
Starts the process of sending message
to conversation
.
since: 3.0.0
Purple.ProtocolConversation.send_message_finish
Finishes a previous call to
purple_protocol_conversation_send_message_async()
. This should be called from
the callback of that function to get the result of whether or not the
message was sent successfully.
since: 3.0.0
Purple.ProtocolConversation.set_topic_async
Starts the process of setting the topic of conversation
to topic
.
since: 3.0.0
Purple.ProtocolConversation.set_topic_finish
Finishes a previous call to
purple_protocol_conversation_set_topic_async()
. This should be called from
the callback of that function to get the result of whether or not the
message was sent successfully.
since: 3.0.0