Top |
XfceConsolekit * | xfce_consolekit_get () |
gboolean | xfce_consolekit_reboot () |
gboolean | xfce_consolekit_power_off () |
gboolean | xfce_consolekit_suspend () |
gboolean | xfce_consolekit_hibernate () |
gboolean | xfce_consolekit_hybrid_sleep () |
gboolean | xfce_consolekit_can_reboot () |
gboolean | xfce_consolekit_can_power_off () |
gboolean | xfce_consolekit_can_suspend () |
gboolean | xfce_consolekit_can_hibernate () |
gboolean | xfce_consolekit_can_hybrid_sleep () |
XfceConsolekit *
xfce_consolekit_get (void
);
Create a new XfceConsolekit instance or increase reference count.
Since: 4.19.1
gboolean xfce_consolekit_reboot (XfceConsolekit *consolekit
,gboolean polkit_interactive
,GError **error
);
Ask ConsoleKit to trigger Reboot.
consolekit |
the XfceConsolekit object |
|
polkit_interactive |
whether PolicyKit should ask the user to authenticate if needed |
|
error |
location to store error on failure or |
[out][nullable] |
Since: 4.19.1
gboolean xfce_consolekit_power_off (XfceConsolekit *consolekit
,gboolean polkit_interactive
,GError **error
);
Ask ConsoleKit to trigger PowerOff.
consolekit |
the XfceConsolekit object |
|
polkit_interactive |
whether PolicyKit should ask the user to authenticate if needed |
|
error |
location to store error on failure or |
[out][nullable] |
Since: 4.19.1
gboolean xfce_consolekit_suspend (XfceConsolekit *consolekit
,gboolean polkit_interactive
,GError **error
);
Ask ConsoleKit to trigger Suspend.
consolekit |
the XfceConsolekit object |
|
polkit_interactive |
whether PolicyKit should ask the user to authenticate if needed |
|
error |
location to store error on failure or |
[out][nullable] |
Since: 4.19.1
gboolean xfce_consolekit_hibernate (XfceConsolekit *consolekit
,gboolean polkit_interactive
,GError **error
);
Ask ConsoleKit to trigger Hibernate.
consolekit |
the XfceConsolekit object |
|
polkit_interactive |
whether PolicyKit should ask the user to authenticate if needed |
|
error |
location to store error on failure or |
[out][nullable] |
Since: 4.19.1
gboolean xfce_consolekit_hybrid_sleep (XfceConsolekit *consolekit
,gboolean polkit_interactive
,GError **error
);
Ask ConsoleKit to trigger HybridSleep.
consolekit |
the XfceConsolekit object |
|
polkit_interactive |
whether PolicyKit should ask the user to authenticate if needed |
|
error |
location to store error on failure or |
[out][nullable] |
Since: 4.19.1
gboolean xfce_consolekit_can_reboot (XfceConsolekit *consolekit
,gboolean *can_reboot
,gboolean *auth_reboot
,GError **error
);
Check whether ConsoleKit can trigger Reboot.
consolekit |
the XfceConsolekit object |
|
can_reboot |
location to store capacity or |
[out][nullable] |
auth_reboot |
location to store authorization or |
[out][nullable] |
error |
location to store error on failure or |
[out][nullable] |
Since: 4.19.1
gboolean xfce_consolekit_can_power_off (XfceConsolekit *consolekit
,gboolean *can_power_off
,gboolean *auth_power_off
,GError **error
);
Check whether ConsoleKit can trigger PowerOff.
consolekit |
the XfceConsolekit object |
|
can_power_off |
location to store capacity or |
[out][nullable] |
auth_power_off |
location to store authorization or |
[out][nullable] |
error |
location to store error on failure or |
[out][nullable] |
Since: 4.19.1
gboolean xfce_consolekit_can_suspend (XfceConsolekit *consolekit
,gboolean *can_suspend
,gboolean *auth_suspend
,GError **error
);
Check whether ConsoleKit can trigger and has authorization for Suspend.
consolekit |
the XfceConsolekit object |
|
can_suspend |
location to store capacity or |
[out][nullable] |
auth_suspend |
location to store authorization or |
[out][nullable] |
error |
location to store error on failure or |
[out][nullable] |
Since: 4.19.1
gboolean xfce_consolekit_can_hibernate (XfceConsolekit *consolekit
,gboolean *can_hibernate
,gboolean *auth_hibernate
,GError **error
);
Check whether ConsoleKit can trigger and has authorization for Hibernate.
consolekit |
the XfceConsolekit object |
|
can_hibernate |
location to store capacity or |
[out][nullable] |
auth_hibernate |
location to store authorization or |
[out][nullable] |
error |
location to store error on failure or |
[out][nullable] |
Since: 4.19.1
gboolean xfce_consolekit_can_hybrid_sleep (XfceConsolekit *consolekit
,gboolean *can_hybrid_sleep
,gboolean *auth_hybrid_sleep
,GError **error
);
Check whether ConsoleKit can trigger and has authorization for HybridSleep.
consolekit |
the XfceConsolekit object |
|
can_hybrid_sleep |
location to store capacity or |
[out][nullable] |
auth_hybrid_sleep |
location to store authorization or |
[out][nullable] |
error |
location to store error on failure or |
[out][nullable] |
Since: 4.19.1