summaryrefslogtreecommitdiff
path: root/accounts/gkleen@skadhi/shell/quickshell-plugins/Systemd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/gkleen@skadhi/shell/quickshell-plugins/Systemd.cpp')
-rw-r--r--accounts/gkleen@skadhi/shell/quickshell-plugins/Systemd.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/accounts/gkleen@skadhi/shell/quickshell-plugins/Systemd.cpp b/accounts/gkleen@skadhi/shell/quickshell-plugins/Systemd.cpp
index 6376b527..1fa236f6 100644
--- a/accounts/gkleen@skadhi/shell/quickshell-plugins/Systemd.cpp
+++ b/accounts/gkleen@skadhi/shell/quickshell-plugins/Systemd.cpp
@@ -43,8 +43,8 @@ Systemd::Systemd(QObject* parent) : QObject(parent) {
43 this 43 this
44 ); 44 );
45 45
46 QObject::connect(this->logindManager, &DBusLogindManager::PrepareForShutdown, this, &Systemd::shutdown); 46 QObject::connect(this->logindManager, &DBusLogindManager::PrepareForShutdown, this, &Systemd::prepareForShutdown);
47 QObject::connect(this->logindManager, &DBusLogindManager::PrepareForSleep, this, &Systemd::sleep); 47 QObject::connect(this->logindManager, &DBusLogindManager::PrepareForSleep, this, &Systemd::prepareForSleep);
48 QObject::connect(this->logindSession, &DBusLogindSession::Lock, this, &Systemd::lock); 48 QObject::connect(this->logindSession, &DBusLogindSession::Lock, this, &Systemd::lock);
49 QObject::connect(this->logindSession, &DBusLogindSession::Unlock, this, &Systemd::unlock); 49 QObject::connect(this->logindSession, &DBusLogindSession::Unlock, this, &Systemd::unlock);
50 QObject::connect(this->logindSessionProperties, &DBusProperties::PropertiesChanged, this, &Systemd::onLogindSessionPropertiesChanged); 50 QObject::connect(this->logindSessionProperties, &DBusProperties::PropertiesChanged, this, &Systemd::onLogindSessionPropertiesChanged);
@@ -148,6 +148,7 @@ void Systemd::setIdleHint(bool idle) { this->logindSession->SetIdleHint(idle); }
148bool Systemd::lockedHint() { return this->logindSession->lockedHint(); } 148bool Systemd::lockedHint() { return this->logindSession->lockedHint(); }
149void Systemd::setLockedHint(bool locked) { this->logindSession->SetLockedHint(locked); } 149void Systemd::setLockedHint(bool locked) { this->logindSession->SetLockedHint(locked); }
150void Systemd::lockSession() { this->logindSession->call("Lock"); } 150void Systemd::lockSession() { this->logindSession->call("Lock"); }
151void Systemd::sleep() { this->logindManager->Sleep(true); }
151void Systemd::suspend() { this->logindManager->Suspend(true); } 152void Systemd::suspend() { this->logindManager->Suspend(true); }
152void Systemd::hibernate() { this->logindManager->Hibernate(true); } 153void Systemd::hibernate() { this->logindManager->Hibernate(true); }
153 154