~lightdm-team/lightdm/1.4

« back to all changes in this revision

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

  • Committer: David Edmundson
  • Date: 2012-09-08 11:10:33 UTC
  • mto: This revision was merged to the branch mainline in revision 1551.
  • Revision ID: david@davidedmundson.co.uk-20120908111033-o2p962zsnf13tuxp
add parameter to session model to show either local or remote sessions

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
            IdRole = KeyRole /** Deprecated */
29
29
        };
30
30
 
31
 
        explicit SessionsModel(QObject *parent = 0);
 
31
        enum SessionType {
 
32
            LocalSessions,
 
33
            RemoteSessions
 
34
        };
 
35
 
 
36
        explicit SessionsModel(QObject *parent = 0); /** Deprecated. Loads local sessions*/
 
37
        explicit SessionsModel(SessionsModel::SessionType, QObject *parent = 0);
32
38
        virtual ~SessionsModel();
33
39
 
34
40
        int rowCount(const QModelIndex &parent) const;