summaryrefslogtreecommitdiffstats
path: root/src/javascriptinterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/javascriptinterface.cpp')
-rw-r--r--src/javascriptinterface.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/javascriptinterface.cpp b/src/javascriptinterface.cpp
index ea25855..66ec7a5 100644
--- a/src/javascriptinterface.cpp
+++ b/src/javascriptinterface.cpp
@@ -141,6 +141,33 @@ const QString JavascriptInterface::getSysInfo(const QString& info) {
void JavascriptInterface::quit() {
emit quitFbgui();
}
+
+//-------------------------------------------------------------------------------------------------------
+/**
+ * This method performs a shutdown of the client.
+ *
+ * This method performs a shutdown of the client.
+ * Emits the JavascriptInterface::shutDownClient() signal.It is
+ * connected with the fbgui::performShutDown() method.
+ *
+ * @see fbgui::performShutDown()
+ */
+void JavascriptInterface::shutDown() {
+ emit shutDownClient();
+}
+//-------------------------------------------------------------------------------------------------------
+/**
+ * This method performs a reboot of the client.
+ *
+ * This method performs a reboot of the client.
+ * Emits the JavascriptInterface::rebootClient() signal. It is
+ * connected with the fbgui::performReboot() method.
+ *
+ * @see fbgui::performReboot()
+ */
+void JavascriptInterface::reboot() {
+ emit rebootClient();
+}
//-------------------------------------------------------------------------------------------------------
// Download Manager information exchange
//-------------------------------------------------------------------------------------------------------