~ci-train-bot/ubuntu-settings-components/ubuntu-settings-components-ubuntu-yakkety-landing-092

« back to all changes in this revision

Viewing changes to tests/qmltests/mocks/Biometryd/MockTemplateStore.h

  • Committer: Bileto Bot
  • Date: 2016-06-20 14:01:03 UTC
  • mfrom: (103.6.69 fingerprint)
  • Revision ID: ci-train-bot@canonical.com-20160620140103-q57lulbze89e6yyd
jonas-drange
* Add components for Fingerprint management.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2016 Canonical, Ltd.
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or modify
 
5
 * it under the terms of the GNU General Public License as published by
 
6
 * the Free Software Foundation; version 3.
 
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
 
11
 * GNU General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU General Public License
 
14
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
15
 */
 
16
 
 
17
#ifndef MOCK_TEMPLATESTORE_H
 
18
#define MOCK_TEMPLATESTORE_H
 
19
 
 
20
#include <QObject>
 
21
#include "MockOperation.h"
 
22
 
 
23
class MockUser;
 
24
 
 
25
class MockSizeQuery : public MockOperation
 
26
{
 
27
    Q_OBJECT
 
28
public:
 
29
    MockSizeQuery(QObject *parent) :  MockOperation(parent)
 
30
    {
 
31
    }
 
32
};
 
33
 
 
34
class MockEnrollment : public MockOperation
 
35
{
 
36
    Q_OBJECT
 
37
public:
 
38
    MockEnrollment(QObject *parent) :  MockOperation(parent)
 
39
    {
 
40
    }
 
41
};
 
42
 
 
43
class MockClearance : public MockOperation
 
44
{
 
45
    Q_OBJECT
 
46
public:
 
47
    MockClearance(QObject *parent) :  MockOperation(parent)
 
48
    {
 
49
    }
 
50
};
 
51
 
 
52
class MockRemoval : public MockOperation
 
53
{
 
54
    Q_OBJECT
 
55
public:
 
56
    MockRemoval(QObject *parent) :  MockOperation(parent)
 
57
    {
 
58
    }
 
59
};
 
60
 
 
61
class MockList : public MockOperation
 
62
{
 
63
    Q_OBJECT
 
64
public:
 
65
    MockList(QObject *parent) :  MockOperation(parent)
 
66
    {
 
67
    }
 
68
};
 
69
 
 
70
class MockTemplateStore : public QObject
 
71
{
 
72
    Q_OBJECT
 
73
    Q_DISABLE_COPY(MockTemplateStore)
 
74
 
 
75
public:
 
76
    explicit MockTemplateStore(QObject *parent = 0);
 
77
 
 
78
    Q_INVOKABLE MockSizeQuery* size(MockUser* user);
 
79
    Q_INVOKABLE MockEnrollment* enroll(MockUser* user);
 
80
    Q_INVOKABLE MockClearance* clear(MockUser* user);
 
81
    Q_INVOKABLE MockRemoval* remove(MockUser* user,
 
82
                                    const QString &templateId);
 
83
    Q_INVOKABLE MockList* list(MockUser* user);
 
84
};
 
85
 
 
86
#endif // MOCK_TEMPLATESTORE_H