#include <glib-object.h>
#include <gio/gio.h>
-
-#include <telepathy-glib/channel.h>
+#include <telepathy-glib/telepathy-glib.h>
G_BEGIN_DECLS
(G_TYPE_INSTANCE_GET_CLASS ((obj), EMPATHY_TYPE_SERVER_SASL_HANDLER, \
EmpathyServerSASLHandlerClass))
-EmpathyServerSASLHandler * empathy_server_sasl_handler_new (
- TpChannel *channel);
+void empathy_server_sasl_handler_new_async (
+ TpAccount *account, TpChannel *channel,
+ GAsyncReadyCallback callback, gpointer user_data);
+
+EmpathyServerSASLHandler * empathy_server_sasl_handler_new_finish (
+ GAsyncResult *result, GError **error);
void empathy_server_sasl_handler_provide_password (
- EmpathyServerSASLHandler *handler, const gchar *password);
+ EmpathyServerSASLHandler *handler, const gchar *password,
+ gboolean remember);
void empathy_server_sasl_handler_cancel (EmpathyServerSASLHandler *handler);
+TpAccount * empathy_server_sasl_handler_get_account (
+ EmpathyServerSASLHandler *handler);
+
+TpChannel * empathy_server_sasl_handler_get_channel (
+ EmpathyServerSASLHandler *handler);
+
+gboolean empathy_server_sasl_handler_has_password (
+ EmpathyServerSASLHandler *handler);
+
+gboolean empathy_server_sasl_handler_can_save_response_somewhere (
+ EmpathyServerSASLHandler *self);
G_END_DECLS