on 8a93021 help sign in
unity8/tests/mocks/LightDM/liblightdm/UsersModelPrivate.h
63 lines 1.5 kB history raw
1/*
2 * Copyright (C) 2014 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 */
17#ifndef UNITY_MOCK_USERSMODEL_PRIVATE_H
18#define UNITY_MOCK_USERSMODEL_PRIVATE_H
20#include <QtCore/QList>
21#include <QtCore/QString>
23namespace QLightDM
25class UsersModel;
27class Entry
29public:
30 QString username;
31 QString real_name;
32 QString background;
33 QString layouts;
34 bool is_active;
35 bool has_messages;
36 QString session;
37 QString infographic;
38};
40class UsersModelPrivate
42public:
43 explicit UsersModelPrivate(UsersModel *parent = 0);
44 virtual ~UsersModelPrivate() = default;
46 QList<Entry> entries;
47 QString mockMode;
49 void resetEntries();
50protected:
51 UsersModel * const q_ptr;
53private:
54 void resetEntries_single();
55 void resetEntries_singlePassphrase();
56 void resetEntries_singlePin();
57 void resetEntries_full();
58 Q_DECLARE_PUBLIC(UsersModel)
59};
63#endif // UNITY_MOCK_USERSMODEL_PRIVATE_H