libpurple/purpleprotocolconversation.h

changeset 43235
42e7b89033fe
parent 43136
36eba703e2b9
child 43301
0e43dc8462e8
equal deleted inserted replaced
43234:85be702275e6 43235:42e7b89033fe
86 void (*set_topic_async)(PurpleProtocolConversation *protocol, PurpleConversation *conversation, const char *topic, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer data); 86 void (*set_topic_async)(PurpleProtocolConversation *protocol, PurpleConversation *conversation, const char *topic, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer data);
87 gboolean (*set_topic_finish)(PurpleProtocolConversation *protocol, GAsyncResult *result, GError **error); 87 gboolean (*set_topic_finish)(PurpleProtocolConversation *protocol, GAsyncResult *result, GError **error);
88 88
89 PurpleChannelJoinDetails *(*get_channel_join_details)(PurpleProtocolConversation *protocol, PurpleAccount *account); 89 PurpleChannelJoinDetails *(*get_channel_join_details)(PurpleProtocolConversation *protocol, PurpleAccount *account);
90 void (*join_channel_async)(PurpleProtocolConversation *protocol, PurpleAccount *account, PurpleChannelJoinDetails *details, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer data); 90 void (*join_channel_async)(PurpleProtocolConversation *protocol, PurpleAccount *account, PurpleChannelJoinDetails *details, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer data);
91 gboolean (*join_channel_finish)(PurpleProtocolConversation *protocol, GAsyncResult *result, GError **error); 91 PurpleConversation *(*join_channel_finish)(PurpleProtocolConversation *protocol, GAsyncResult *result, GError **error);
92 92
93 void (*set_avatar_async)(PurpleProtocolConversation *protocol, PurpleConversation *conversation, PurpleAvatar *avatar, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer data); 93 void (*set_avatar_async)(PurpleProtocolConversation *protocol, PurpleConversation *conversation, PurpleAvatar *avatar, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer data);
94 gboolean (*set_avatar_finish)(PurpleProtocolConversation *protocol, GAsyncResult *result, GError **error); 94 gboolean (*set_avatar_finish)(PurpleProtocolConversation *protocol, GAsyncResult *result, GError **error);
95 95
96 void (*send_typing)(PurpleProtocolConversation *protocol, PurpleConversation *conversation, PurpleTypingState state); 96 void (*send_typing)(PurpleProtocolConversation *protocol, PurpleConversation *conversation, PurpleTypingState state);
394 * Finishes a previous call to 394 * Finishes a previous call to
395 * [method@ProtocolConversation.join_channel_async]. This should be called from 395 * [method@ProtocolConversation.join_channel_async]. This should be called from
396 * the callback of that function to get the result of whether or not the 396 * the callback of that function to get the result of whether or not the
397 * channel was joined successfully. 397 * channel was joined successfully.
398 * 398 *
399 * Returns: %TRUE if the channel was joined successfully, otherwise %FALSE with 399 * Returns: (transfer full) (nullable): The conversation if one was joined,
400 * @error possibly set. 400 * otherwise %NULL with @error possibly set.
401 * 401 *
402 * Since: 3.0 402 * Since: 3.0
403 */ 403 */
404 PURPLE_AVAILABLE_IN_3_0 404 PURPLE_AVAILABLE_IN_3_0
405 gboolean purple_protocol_conversation_join_channel_finish(PurpleProtocolConversation *protocol, GAsyncResult *result, GError **error); 405 PurpleConversation *purple_protocol_conversation_join_channel_finish(PurpleProtocolConversation *protocol, GAsyncResult *result, GError **error);
406 406
407 /** 407 /**
408 * purple_protocol_conversation_implements_set_avatar: 408 * purple_protocol_conversation_implements_set_avatar:
409 * @protocol: the instance 409 * @protocol: the instance
410 * 410 *

mercurial