2 * Copyright (C) 2010-2011 David Edmundson.
3 * Author: David Edmundson <kde@davidedmundson.co.uk>
5 * This library is free software; you can redistribute it and/or modify it under
6 * the terms of the GNU Lesser General Public License as published by the Free
7 * Software Foundation; either version 2 or version 3 of the License.
8 * See http://www.gnu.org/copyleft/lgpl.html the full text of the license.
11 #ifndef QLIGHTDM_USER_H
12 #define QLIGHTDM_USER_H
14 #include <QtCore/QString>
15 #include <QtCore/QSharedDataPointer>
16 #include <QAbstractListModel>
21 class UsersModelPrivate;
23 class Q_DECL_EXPORT UsersModel : public QAbstractListModel
27 Q_ENUMS(UserModelRoles)
30 explicit UsersModel(QObject *parent = 0);
33 enum UserModelRoles {NameRole = Qt::UserRole,
43 int rowCount(const QModelIndex &parent) const;
44 QVariant data(const QModelIndex &index, int role) const;
49 UsersModelPrivate * const d_ptr;
51 Q_DECLARE_PRIVATE(UsersModel)
57 #endif // QLIGHTDM_USER_H