From a0243a8b74df613c05ba7fd86410f9c1c3575bfe Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 4 Feb 2010 23:09:56 -0500 Subject: [PATCH 04/22] Document the CanRestart and CanStop methods --- src/org.freedesktop.ConsoleKit.Manager.xml | 48 ++++++++++++++++++++++++++- 1 files changed, 46 insertions(+), 2 deletions(-) diff --git a/src/org.freedesktop.ConsoleKit.Manager.xml b/src/org.freedesktop.ConsoleKit.Manager.xml index f903b55..1375174 100644 --- a/src/org.freedesktop.ConsoleKit.Manager.xml +++ b/src/org.freedesktop.ConsoleKit.Manager.xml @@ -15,7 +15,29 @@ - + + + + Whether restarting is allowed. 0 means 'no', 2 means 'yes', and + 1 means that the user may have to prove that he has the necessary + privileges + + + + + + + This method returns information about whether the caller + is allowed to restart the system using the Restart() method. + + + This method will not cause any user interaction. It should be + used when deciding whether it is useful to present a "Restart" + option to the user. + + + @@ -29,7 +51,29 @@ - + + + + Whether stopping is allowed. 0 means 'no', 2 means 'yes', and + 1 means that the user may have to prove that he has the necessary + privileges + + + + + + + This method returns information about whether the caller + is allowed to stop the system using the Stop() method. + + + This method will not cause any user interaction. It should be + used when deciding whether it is useful to present a "Stop" + option to the user. + + + -- 1.6.6