summaryrefslogtreecommitdiffstats
path: root/src/jsObject.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/jsObject.h')
-rw-r--r--src/jsObject.h37
1 files changed, 35 insertions, 2 deletions
diff --git a/src/jsObject.h b/src/jsObject.h
index a025c5a..db927c1 100644
--- a/src/jsObject.h
+++ b/src/jsObject.h
@@ -3,6 +3,8 @@
*
* Created on: Feb 1, 2011
* Author: niklas
+ * The purpose of the jsObject class is to provide signals which will be emited in the javascript functions.
+ * Those javascript functions are writen in a seperate file: jsFunktions.js
*/
#ifndef JSOBJECT_H_
@@ -33,8 +35,39 @@ public:
//private:
// fbbrowser browser;
-private slots:
- void performAction(jsAction a);
+// no slots needed. class provides only signals
+// private slots:
+// void performAction(jsAction a);
+
+// define all the needed signals.
+// every action gets its own signal. (the former enum is not needed anymore)
+// the signals will be connected in the fbbrowser class with slots of the fbbrowser class
+signals:
+ // should be the last signal to be emited.
+ // Will close the browser and continues the boot sequenze
+ void closeBrowser();
+ // will start the download of all needed files for the following boot sequence
+ void startDownload();
+
+ // starts the slot which is responsible for extracting the MAC address of the machine
+ // the MAC Address will be the parameter of a javascript function which will present it on the webpage
+ void getMacAddress();
+ // starts the slot which is responsible for extracting the IP address of the machine
+ // the IP address will be the parameter of a javascript function which will present it on the webpage
+ void getIpAddress();
+ // starts the slot which is responsible for extracting the integrated hardware devices of the machine
+ // the array of integrated hardware devices will be the parameter of a javascript function which will present // it on the webpage
+ void getIntegratedHardwareDevices();
+ // starts the slot which is responsible for extracting the usb devices of the machine
+ // the array of usb devices will be the parameter of a javascript function which will present it on the webpag
+ void getUsbDevices();
+ // starts the slot which is responsible for extracting the hard drive devices of the machine
+ // the array of hard rive devices will be the parameter of a javascript function which will present it on the // webpag
+ void getHardDrives();
+
+ // for testing
+ void showTime();
+ void showDate();
};