summaryrefslogtreecommitdiff
path: root/liblightdm-qt
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2012-08-20 17:34:12 +1200
committerRobert Ancell <robert.ancell@canonical.com>2012-08-20 17:34:12 +1200
commit40e9874b5ce72d9de46f5a18251bfe283a76df13 (patch)
treeed7d17beae60d20e9a838418706da788fab83c8f /liblightdm-qt
parent7e521a6cf33c57e762ee5a04c4a0e6756838f94c (diff)
downloadlightdm-40e9874b5ce72d9de46f5a18251bfe283a76df13.tar.gz
Start work on supporting remote session types
Diffstat (limited to 'liblightdm-qt')
-rw-r--r--liblightdm-qt/QLightDM/greeter.h1
-rw-r--r--liblightdm-qt/greeter.cpp7
2 files changed, 7 insertions, 1 deletions
diff --git a/liblightdm-qt/QLightDM/greeter.h b/liblightdm-qt/QLightDM/greeter.h
index ab296b5e..4c6799e0 100644
--- a/liblightdm-qt/QLightDM/greeter.h
+++ b/liblightdm-qt/QLightDM/greeter.h
@@ -72,6 +72,7 @@ public slots:
bool connectSync();
void authenticate(const QString &username=QString());
void authenticateAsGuest();
+ void authenticateRemote(const QString &session=QString(), const QString &username=QString());
void respond(const QString &response);
void cancelAuthentication();
void setLanguage (const QString &language);
diff --git a/liblightdm-qt/greeter.cpp b/liblightdm-qt/greeter.cpp
index 02e8cd8c..2df535b5 100644
--- a/liblightdm-qt/greeter.cpp
+++ b/liblightdm-qt/greeter.cpp
@@ -117,7 +117,12 @@ void Greeter::authenticateAsGuest()
{
Q_D(Greeter);
lightdm_greeter_authenticate_as_guest(d->ldmGreeter);
-
+}
+
+void Greeter::authenticateRemote(const QString &session, const QString &username)
+{
+ Q_D(Greeter);
+ lightdm_greeter_authenticate_remote(d->ldmGreeter, session.toLocal8Bit().data(), username.toLocal8Bit().data());
}
void Greeter::respond(const QString &response)