summaryrefslogtreecommitdiff
path: root/liblightdm-qt/greeter.cpp
diff options
context:
space:
mode:
authorDavid Edmundson <david@davidedmundson.co.uk>2011-11-26 12:40:52 +0000
committerDavid Edmundson <david@davidedmundson.co.uk>2011-11-26 12:40:52 +0000
commit5981a0e74a1ec193c3d86f58f8674a4b204de41b (patch)
treec261c82d60bd526f6cd7448dac1ec3da00a3393f /liblightdm-qt/greeter.cpp
parent999d9953b1b1e8e05504bc8f8f808e9d55da13b2 (diff)
downloadlightdm-5981a0e74a1ec193c3d86f58f8674a4b204de41b.tar.gz
Fix final methods in greeter
Diffstat (limited to 'liblightdm-qt/greeter.cpp')
-rw-r--r--liblightdm-qt/greeter.cpp24
1 files changed, 21 insertions, 3 deletions
diff --git a/liblightdm-qt/greeter.cpp b/liblightdm-qt/greeter.cpp
index f8eca222..cf47ec59 100644
--- a/liblightdm-qt/greeter.cpp
+++ b/liblightdm-qt/greeter.cpp
@@ -147,13 +147,13 @@ bool Greeter::isAuthenticated() const
QString Greeter::authenticationUser() const
{
Q_D(const Greeter);
- const gchar* string = lightdm_greeter_get_authentication_user(d->ldmGreeter);
- QString authenticationUser = QString::fromLocal8Bit(string);
- return authenticationUser;
+ return QString::fromLocal8Bit(lightdm_greeter_get_authentication_user(d->ldmGreeter));
}
void Greeter::setLanguage (const QString &language)
{
+ Q_D(Greeter);
+ lightdm_greeter_set_language(d->ldmGreeter, language.toLocal8Bit().constData());
}
bool Greeter::startSessionSync(const QString &session)
@@ -165,38 +165,56 @@ bool Greeter::startSessionSync(const QString &session)
QString Greeter::getHint(const QString &name) const
{
+ Q_D(Greeter());
+ return lightdm_greeter_get_hint(d->ldmGreeter, name.toLocal8Bit().constData());
}
QString Greeter::defaultSessionHint() const
{
+ Q_D(const Greeter);
+ return QString::fromLocal8Bit(lightdm_greeter_get_default_session_hint(d->ldmGreeter));
}
bool Greeter::hideUsersHint() const
{
+ Q_D(const Greeter);
+ return lightdm_greeter_get_hide_users_hint(d->ldmGreeter);
}
bool Greeter::hasGuestAccountHint() const
{
+ Q_D(const Greeter);
+ return lightdm_greeter_get_has_guest_account_hint(d->ldmGreeter);
}
QString Greeter::selectUserHint() const
{
+ Q_D(const Greeter);
+ return QString::fromLocal8Bit(lightdm_greeter_get_select_user_hint(d->ldmGreeter));
}
bool Greeter::selectGuestHint() const
{
+ Q_D(const Greeter);
+ return lightdm_greeter_get_select_guest_hint(d->ldmGreeter);
}
QString Greeter::autologinUserHint() const
{
+ Q_D(const Greeter);
+ return QString::fromLocal8Bit(lightdm_greeter_get_autologin_user_hint(d->ldmGreeter));
}
bool Greeter::autologinGuestHint() const
{
+ Q_D(const Greeter);
+ return lightdm_greeter_get_autologin_guest_hint(d->ldmGreeter);
}
int Greeter::autologinTimeoutHint() const
{
+ Q_D(const Greeter);
+ return lightdm_greeter_get_autologin_timeout_hint(d->ldmGreeter);
}
#include "greeter_moc.cpp"