2 * Copyright (C) 2013-2014 Canonical, Ltd.
3 * Copyright (C) 2010-2011 David Edmundson.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; version 3.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18#ifndef UNITY_MOCK_USERSMODEL_H
19#define UNITY_MOCK_USERSMODEL_H
21#include <QtCore/QString>
22#include <QtCore/QSharedDataPointer>
23#include <QAbstractListModel>
28class UsersModelPrivate;
30class Q_DECL_EXPORT UsersModel : public QAbstractListModel
34 Q_ENUMS(UserModelRoles)
36 //Mock-only API for testing purposes
37 Q_PROPERTY(QString mockMode READ mockMode WRITE setMockMode NOTIFY mockModeChanged)
40 void mockModeChanged(QString mode);
43 explicit UsersModel(QObject *parent = 0);
44 virtual ~UsersModel();
46 enum UserModelRoles {NameRole = Qt::UserRole,
56 int rowCount(const QModelIndex &parent) const;
57 QVariant data(const QModelIndex &index, int role) const;
59 QString mockMode() const;
60 void setMockMode(QString mockMode);
63 UsersModelPrivate * const d_ptr;
64 Q_DECLARE_PRIVATE(UsersModel)
69#endif // UNITY_MOCK_USERSMODEL_H
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list