accounts-qt
1.13
|
00001 /* vi: set et sw=4 ts=4 cino=t0,(0: */ 00002 /* 00003 * This file is part of libaccounts-qt 00004 * 00005 * Copyright (C) 2012 Canonical Ltd. 00006 * 00007 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> 00008 * 00009 * This library is free software; you can redistribute it and/or 00010 * modify it under the terms of the GNU Lesser General Public License 00011 * version 2.1 as published by the Free Software Foundation. 00012 * 00013 * This library is distributed in the hope that it will be useful, but 00014 * WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 * Lesser General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU Lesser General Public 00019 * License along with this library; if not, write to the Free Software 00020 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 00021 * 02110-1301 USA 00022 */ 00028 #ifndef ACCOUNTS_AUTH_DATA_H 00029 #define ACCOUNTS_AUTH_DATA_H 00030 00031 #include "Accounts/accountscommon.h" 00032 00033 #include <QString> 00034 #include <QVariantMap> 00035 00036 extern "C" 00037 { 00038 typedef struct _AgAuthData AgAuthData; 00039 } 00040 00044 namespace Accounts 00045 { 00046 00047 class AccountService; 00048 00049 class ACCOUNTS_EXPORT AuthData 00050 { 00051 public: 00052 AuthData(const AuthData &other); 00053 virtual ~AuthData(); 00054 00055 uint credentialsId() const; 00056 00057 QString method() const; 00058 00059 QString mechanism() const; 00060 00061 QVariantMap parameters() const; 00062 00063 private: 00064 // Don't include private data in docs: \cond 00065 friend class AccountService; 00066 AuthData(AgAuthData *authData); 00067 00068 AgAuthData *m_authData; 00069 // \endcond 00070 }; 00071 00072 } // namespace 00073 00074 #endif // ACCOUNTS_AUTH_DATA_H