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_FINGERPRINTREADER_H
18
#define MOCK_FINGERPRINTREADER_H
26
class MockFingerprintReader : public QObject
30
Q_DISABLE_COPY(MockFingerprintReader)
32
Q_PROPERTY(QString isFingerPresent READ isFingerPresent)
33
Q_PROPERTY(QString hasMainClusterIdentified READ hasMainClusterIdentified)
34
Q_PROPERTY(QString suggestedNextDirection READ suggestedNextDirection)
35
Q_PROPERTY(QString masks READ masks)
38
explicit MockFingerprintReader(QObject *parent = 0);
53
Q_INVOKABLE QString isFingerPresent() const;
54
Q_INVOKABLE QString hasMainClusterIdentified() const;
55
Q_INVOKABLE QString suggestedNextDirection() const;
56
Q_INVOKABLE QString estimatedFingerSize() const;
57
Q_INVOKABLE QString masks() const;
61
void succeeded(const QVariant &result);
62
void failed(const QString &reason);
65
#endif // MOCK_FINGERPRINTREADER_H