| 1 | /* |
| 2 | * This file is part of lomiri-online-accounts-service |
| 3 | * |
| 4 | * Copyright (C) 2012 Canonical Ltd. |
| 5 | * |
| 6 | * Contact: Alberto Mardegan <[email protected]> |
| 7 | * |
| 8 | * This program is free software: you can redistribute it and/or modify it |
| 9 | * under the terms of the GNU General Public License version 3, as published |
| 10 | * by the Free Software Foundation. |
| 11 | * |
| 12 | * This program is distributed in the hope that it will be useful, but |
| 13 | * WITHOUT ANY WARRANTY; without even the implied warranties of |
| 14 | * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR |
| 15 | * PURPOSE. See the GNU General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU General Public License along |
| 18 | * with this program. If not, see <http://www.gnu.org/licenses/>. |
| 19 | */ |
| 20 | |
| 21 | #ifndef SIGNON_UI_REAUTHENTICATOR_H |
| 22 | #define SIGNON_UI_REAUTHENTICATOR_H |
| 23 | |
| 24 | #include <QList> |
| 25 | #include <QObject> |
| 26 | #include <QVariantMap> |
| 27 | |
| 28 | namespace SignOnUi { |
| 29 | |
| 30 | struct AuthData { |
| 31 | quint32 identity; |
| 32 | QString method; |
| 33 | QString mechanism; |
| 34 | QVariantMap sessionData; |
| 35 | }; |
| 36 | |
| 37 | class ReauthenticatorPrivate; |
| 38 | class Reauthenticator: public QObject |
| 39 | { |
| 40 | Q_OBJECT |
| 41 | |
| 42 | public: |
| 43 | Reauthenticator(const QList<AuthData> &clientData, |
| 44 | const QVariantMap &extraParameters, |
| 45 | QObject *parent = 0); |
| 46 | ~Reauthenticator(); |
| 47 | |
| 48 | public Q_SLOTS: |
| 49 | void start(); |
| 50 | |
| 51 | Q_SIGNALS: |
| 52 | void finished(bool success); |
| 53 | |
| 54 | private: |
| 55 | ReauthenticatorPrivate *d_ptr; |
| 56 | Q_DECLARE_PRIVATE(Reauthenticator) |
| 57 | }; |
| 58 | |
| 59 | } // namespace |
| 60 | |
| 61 | #endif // SIGNON_UI_REAUTHENTICATOR_H |
| 62 |