summaryrefslogtreecommitdiffstats
path: root/src/javascriptinterface.cpp
diff options
context:
space:
mode:
authorNiklas Goby2011-04-18 13:48:53 +0200
committerNiklas Goby2011-04-18 13:48:53 +0200
commita2dc47f21b2c20fe75c719937bdcab9aff976bd2 (patch)
treebf529eb38f59d3c2fab5bbdddd34a32cc4d9eae9 /src/javascriptinterface.cpp
parentMerge branch 'master' of git.openslx.org:lsfks/master-teamprojekt/fbgui (diff)
downloadfbgui-a2dc47f21b2c20fe75c719937bdcab9aff976bd2.tar.gz
fbgui-a2dc47f21b2c20fe75c719937bdcab9aff976bd2.tar.xz
fbgui-a2dc47f21b2c20fe75c719937bdcab9aff976bd2.zip
two new methods in the JavascriptInterface class. public slot methods:
shutDown() and reboot() both emit a signal (shutDownClient() / rebootClient() ) which is connected in the fbgui class with the fbgui::performShutDown() / fbgui::performReboot() method. (ticket: #215)
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
//-------------------------------------------------------------------------------------------------------