~canonical-platform-qa/ubuntu-system-settings-online-accounts/launch_fixture

« back to all changes in this revision

Viewing changes to src/reauthenticator.h

  • Committer: CI bot
  • Author(s): Alberto Mardegan
  • Date: 2014-05-30 13:30:01 UTC
  • mfrom: (107.1.13 master)
  • Revision ID: ps-jenkins@lists.canonical.com-20140530133001-an9lfy1dc1pfkifd
Release development branch

Features landing with this branch:
- Updating the ACL when applications are enabled/disabled in System Settings
- Write profile information in the XML files installed by click hooks
- Run tests with Python 3 autopilot.
- Merge signon-ui into online-accounts-ui 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * This file is part of online-accounts-ui
 
3
 *
 
4
 * Copyright (C) 2012 Canonical Ltd.
 
5
 *
 
6
 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
 
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