diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2013-06-04 17:37:38 +1200 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2013-06-04 17:37:38 +1200 |
commit | 0690afa1f147c309f61b382727cfcbfbbce3b6a3 (patch) | |
tree | f951ba41583099f4046afbb5ec1585a3ec73d305 /liblightdm-qt | |
parent | 245b697156b033b420cbc3123f5d08d5155ec7fa (diff) | |
download | lightdm-0690afa1f147c309f61b382727cfcbfbbce3b6a3.tar.gz |
Start work on Mir sessions
Diffstat (limited to 'liblightdm-qt')
-rw-r--r-- | liblightdm-qt/QLightDM/sessionsmodel.h | 3 | ||||
-rw-r--r-- | liblightdm-qt/sessionsmodel.cpp | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/liblightdm-qt/QLightDM/sessionsmodel.h b/liblightdm-qt/QLightDM/sessionsmodel.h index 77c81fb2..33a67655 100644 --- a/liblightdm-qt/QLightDM/sessionsmodel.h +++ b/liblightdm-qt/QLightDM/sessionsmodel.h @@ -32,7 +32,8 @@ namespace QLightDM { enum SessionType { LocalSessions, - RemoteSessions + RemoteSessions, + MirSessions }; explicit SessionsModel(QObject *parent = 0); /** Deprecated. Loads local sessions*/ diff --git a/liblightdm-qt/sessionsmodel.cpp b/liblightdm-qt/sessionsmodel.cpp index 9ad335f9..93295f38 100644 --- a/liblightdm-qt/sessionsmodel.cpp +++ b/liblightdm-qt/sessionsmodel.cpp @@ -58,6 +58,9 @@ void SessionsModelPrivate::loadSessions(SessionsModel::SessionType sessionType) case SessionsModel::RemoteSessions: ldmSessions = lightdm_get_remote_sessions(); break; + case SessionsModel::MirSessions: + ldmSessions = lightdm_get_mir_sessions(); + break; case SessionsModel::LocalSessions: /* Fall through*/ default: |