From dadb3cc0cc4f8c8148abd064510aac58f63ff85a Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 12 Oct 2009 18:23:30 -0400 Subject: [PATCH 04/21] 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.5.rc2