~mardy/ubuntuone-credentials/lp1376445-migration

« back to all changes in this revision

Viewing changes to acl-updater/acl-updater.h

  • Committer: Alberto Mardegan
  • Date: 2015-03-06 12:56:54 UTC
  • mfrom: (163.1.2 lp1376445-migration)
  • Revision ID: alberto.mardegan@canonical.com-20150306125654-bvgbsdos1afsngcn
Use a script

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright 2015 Canonical Ltd.
3
 
 *
4
 
 * This program is free software; you can redistribute it and/or
5
 
 * modify it under the terms of version 3 of the GNU Lesser General Public
6
 
 * License as published by the Free Software Foundation.
7
 
 *
8
 
 * This program is distributed in the hope that it will be useful,
9
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11
 
 * General Public License for more details.
12
 
 *
13
 
 * You should have received a copy of the GNU Lesser General Public
14
 
 * License along with this library; if not, write to the
15
 
 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16
 
 * Boston, MA 02110-1301, USA.
17
 
 */
18
 
 
19
 
#ifndef _ACL_UPDATER_H_
20
 
#define _ACL_UPDATER_H_
21
 
 
22
 
#include <QObject>
23
 
 
24
 
namespace SignOn {
25
 
    class Error;
26
 
    class Identity;
27
 
    class IdentityInfo;
28
 
};
29
 
 
30
 
class AclUpdater : public QObject
31
 
{
32
 
    Q_OBJECT
33
 
 
34
 
public:
35
 
    AclUpdater(quint32 credentialsId, QObject *parent = 0);
36
 
 
37
 
Q_SIGNALS:
38
 
    void finished();
39
 
 
40
 
private Q_SLOTS:
41
 
    void onInfoReady(const SignOn::IdentityInfo &info);
42
 
    void onError(const SignOn::Error &error);
43
 
 
44
 
private:
45
 
    SignOn::Identity *identity;
46
 
};
47
 
 
48
 
#endif // _ACL_UPDATER_H_