From a2dc47f21b2c20fe75c719937bdcab9aff976bd2 Mon Sep 17 00:00:00 2001 From: Niklas Goby Date: Mon, 18 Apr 2011 13:48:53 +0200 Subject: 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) --- src/fbgui.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/fbgui.h') diff --git a/src/fbgui.h b/src/fbgui.h index a703d6e..25911fd 100644 --- a/src/fbgui.h +++ b/src/fbgui.h @@ -103,6 +103,12 @@ private slots: // triggered by fileChanged Signal of _watcher // deletes _watcher, since we don't need it anymore and tries to load URL. void prepareURLLoad(); + + // shut off the system + void performShutDown(); + + // reboot the system + void performReboot(); }; #endif // FBGUI_H -- cgit v1.2.3-55-g7522