24 #include "auth-data.h"
28 #include <libaccounts-glib/ag-auth-data.h>
33 using namespace Accounts;
49 m_authData(ag_auth_data_ref(authData))
58 m_authData(ag_auth_data_ref(other.m_authData))
67 ag_auth_data_unref(m_authData);
76 return ag_auth_data_get_credentials_id(m_authData);
86 return UTF8(ag_auth_data_get_method(m_authData));
96 return UTF8(ag_auth_data_get_mechanism(m_authData));
106 GVariant *glibParameters;
108 glibParameters = ag_auth_data_get_login_parameters(m_authData, NULL);
109 if (glibParameters ==
nullptr)
return QVariantMap();
111 QVariant variant = gVariantToQVariant(glibParameters);
112 g_variant_unref(glibParameters);
113 if (!variant.isValid())
return QVariantMap();
115 return variant.toMap();