2
* Copyright (C) 2016 Canonical, Ltd.
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.
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.
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/>.
17
#ifndef MOCK_TEMPLATESTORE_H
18
#define MOCK_TEMPLATESTORE_H
21
#include "MockOperation.h"
25
class MockSizeQuery : public MockOperation
29
MockSizeQuery(QObject *parent) : MockOperation(parent)
34
class MockEnrollment : public MockOperation
38
MockEnrollment(QObject *parent) : MockOperation(parent)
43
class MockClearance : public MockOperation
47
MockClearance(QObject *parent) : MockOperation(parent)
52
class MockRemoval : public MockOperation
56
MockRemoval(QObject *parent) : MockOperation(parent)
61
class MockList : public MockOperation
65
MockList(QObject *parent) : MockOperation(parent)
70
class MockTemplateStore : public QObject
73
Q_DISABLE_COPY(MockTemplateStore)
76
explicit MockTemplateStore(QObject *parent = 0);
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);
86
#endif // MOCK_TEMPLATESTORE_H