~lightdm-team/lightdm/1.4

« back to all changes in this revision

Viewing changes to liblightdm-qt/QLightDM/usersmodel.h

  • Committer: David Edmundson
  • Date: 2011-05-22 11:19:24 UTC
  • mto: This revision was merged to the branch mainline in revision 461.
  • Revision ID: david@davidedmundson.co.uk-20110522111924-aar5y8f75tm9q9xh
Added a users model

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef USERSMODEL_H
 
2
#define USERSMODEL_H
 
3
 
 
4
#include <QAbstractListModel>
 
5
 
 
6
class UsersModelPrivate;
 
7
 
 
8
namespace QLightDM
 
9
{
 
10
 
 
11
class Config;
 
12
 
 
13
class Q_DECL_EXPORT UsersModel : public QAbstractListModel
 
14
{
 
15
    Q_OBJECT
 
16
public:
 
17
    explicit UsersModel(QLightDM::Config *config, QObject *parent = 0);
 
18
    ~UsersModel();
 
19
    int rowCount(const QModelIndex &parent) const;
 
20
    QVariant data(const QModelIndex &index, int role) const;
 
21
 
 
22
signals:
 
23
 
 
24
public slots:
 
25
 
 
26
private slots:
 
27
    void loadUsers();
 
28
 
 
29
private:
 
30
    UsersModelPrivate *d;
 
31
};
 
32
};
 
33
 
 
34
#endif // USERSMODEL_H