diff options
Diffstat (limited to 'accounts/gkleen@skadhi/shell/quickshell-plugins/Systemd.cpp')
| -rw-r--r-- | accounts/gkleen@skadhi/shell/quickshell-plugins/Systemd.cpp | 5 |
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); } | |||
| 148 | bool Systemd::lockedHint() { return this->logindSession->lockedHint(); } | 148 | bool Systemd::lockedHint() { return this->logindSession->lockedHint(); } |
| 149 | void Systemd::setLockedHint(bool locked) { this->logindSession->SetLockedHint(locked); } | 149 | void Systemd::setLockedHint(bool locked) { this->logindSession->SetLockedHint(locked); } |
| 150 | void Systemd::lockSession() { this->logindSession->call("Lock"); } | 150 | void Systemd::lockSession() { this->logindSession->call("Lock"); } |
| 151 | void Systemd::sleep() { this->logindManager->Sleep(true); } | ||
| 151 | void Systemd::suspend() { this->logindManager->Suspend(true); } | 152 | void Systemd::suspend() { this->logindManager->Suspend(true); } |
| 152 | void Systemd::hibernate() { this->logindManager->Hibernate(true); } | 153 | void Systemd::hibernate() { this->logindManager->Hibernate(true); } |
| 153 | 154 | ||
