Unity 8
|
#include <plugins/Unity/Session/dbusunitysessionservice.h>
Inherits UnityDBusObject.
Public Slots | |
Q_SCRIPTABLE void | Logout () |
Q_SCRIPTABLE void | Reboot () |
Q_SCRIPTABLE void | Shutdown () |
Q_SCRIPTABLE void | RequestLogout () |
Q_SCRIPTABLE void | RequestReboot () |
Q_SCRIPTABLE void | RequestShutdown () |
Signals | |
void | logoutRequested (bool have_inhibitors) |
void | rebootRequested (bool have_inhibitors) |
void | shutdownRequested (bool have_inhibitors) |
void | logoutReady () |
DBusUnitySessionService provides com.canonical.Unity.Session dbus interface.
com.canonical.Unity.Session interface provides public methods and signals to handle Logout/Reboot/Shutdown.
Definition at line 29 of file dbusunitysessionservice.h.
|
slot |
Logout the system.
This method directly logout the system without user's confirmation. Ordinary applications should avoid calling this method. Please call RequestLogout() to ask the user to decide logout or not.
Definition at line 33 of file dbusunitysessionservice.cpp.
|
signal |
logoutReady signal
This signal is emitted when all the apps are closed. And the system is safe to logout.
|
signal |
logoutRequested signal
This signal is emitted when some applications request the system to logout.
have_inhibitors | if there are any special running applications which inhibit the logout. |
|
slot |
Reboot the system.
This method directly reboot the system without user's confirmation. Ordinary applications should avoid calling this method. Please call RequestReboot() to ask the user to decide reboot or not.
Definition at line 43 of file dbusunitysessionservice.cpp.
|
signal |
rebootRequested signal
This signal is emitted when some applications request the system to reboot.
have_inhibitors | if there are any special running applications which inhibit the reboot. |
|
slot |
Issue a logout request.
This method emit the logoutRequested signal to the shell with a boolean which indicates if there's any inhibitors. The shell should receive this signal and display a dialog to ask the user to confirm the logout action. If confirmed, shell can call Logout() method to logout.
Definition at line 38 of file dbusunitysessionservice.cpp.
|
slot |
Issue a reboot request.
This method emit the rebootRequested signal to the shell with a boolean which indicates if there's any inhibitors. The shell should receive this signal and display a dialog to ask the user to confirm the reboot action. If confirmed, shell can call Reboot() method to reboot
Definition at line 54 of file dbusunitysessionservice.cpp.
|
slot |
Issue a shutdown request.
This method emit the shutdownRequested signal to the shell with a boolean which indicates if there's any inhibitors. The shell should receive this signal and display a dialog to ask the user to confirm the reboot action. If confirmed, shell can call Shutdown() method to reboot
Definition at line 70 of file dbusunitysessionservice.cpp.
|
slot |
Shutdown the system.
This method directly shutdown the system without user's confirmation. Ordinary applications should avoid calling this method. Please call RequestShutdown() to ask the user to decide shutdown or not.
Definition at line 59 of file dbusunitysessionservice.cpp.
|
signal |
shutdownRequested signal
This signal is emitted when some applications request the system to shutdown.
have_inhibitors | if there are any special running applications which inhibit the shutdown. |