@@ -115,11 +115,25 @@ public Q_SLOTS:
116 Q_SCRIPTABLE void Shutdown();
116 Q_SCRIPTABLE void Shutdown();
119+ * Suspend the system
121+ * This method puts the system into sleep without user's confirmation.
118 Q_SCRIPTABLE void Suspend();
123 Q_SCRIPTABLE void Suspend();
126+ * Hibernate the system
128+ * This method puts the system into hibernation without user's confirmation.
120 Q_SCRIPTABLE void Hibernate();
130 Q_SCRIPTABLE void Hibernate();
135+ * This method puts the system into hybrid sleep without user's confirmation.
123 * @since unity8
137 * @since unity8
125 Q_SCRIPTABLE void HybridSleep();
139 Q_SCRIPTABLE void HybridSleep();
@@ -163,32 +177,58 @@ public Q_SLOTS:
164 Q_SCRIPTABLE void EndSession();
178 Q_SCRIPTABLE void EndSession();
181+ * @return whether the system is capable of hibernating
166 Q_SCRIPTABLE bool CanHibernate() const;
183 Q_SCRIPTABLE bool CanHibernate() const;
186+ * @return whether the system is capable of suspending
168 Q_SCRIPTABLE bool CanSuspend() const;
188 Q_SCRIPTABLE bool CanSuspend() const;
191+ * @return whether the system is capable of hybrid sleep
171 * @since unity8
192 * @since unity8
173 Q_SCRIPTABLE bool CanHybridSleep() const;
194 Q_SCRIPTABLE bool CanHybridSleep() const;
197+ * @return whether the system is capable of rebooting
176 * @since unity8
198 * @since unity8
178 Q_SCRIPTABLE bool CanReboot() const;
200 Q_SCRIPTABLE bool CanReboot() const;
203+ * @return whether the system is capable of shutting down
180 Q_SCRIPTABLE bool CanShutdown() const;
205 Q_SCRIPTABLE bool CanShutdown() const;
208+ * @return whether the system is capable of locking the session
182 Q_SCRIPTABLE bool CanLock() const;
210 Q_SCRIPTABLE bool CanLock() const;
184 Q_SCRIPTABLE QString UserName() const;
212 Q_SCRIPTABLE QString UserName() const;
215+ * @return the real name of the current user
186 Q_SCRIPTABLE QString RealName() const;
217 Q_SCRIPTABLE QString RealName() const;
220+ * @return the local hostname
188 Q_SCRIPTABLE QString HostName() const;
222 Q_SCRIPTABLE QString HostName() const;
225+ * Request that the session get locked, emits signal LockRequested()
190 Q_SCRIPTABLE void PromptLock();
227 Q_SCRIPTABLE void PromptLock();
230+ * Locks the session immediately
192 Q_SCRIPTABLE void Lock();
232 Q_SCRIPTABLE void Lock();