diff options
| author | Niklas Goby | 2011-02-22 14:40:04 +0100 |
|---|---|---|
| committer | Niklas Goby | 2011-02-22 14:40:04 +0100 |
| commit | 8fbc4f6ca1ac9d9ed680248a04f00a91f917cf43 (patch) | |
| tree | 80273e70ea61aba1daca22aeb5cb751eac0d9a20 /src/jsObject.h | |
| parent | Simplified printing of the application path; more cleanup (diff) | |
| download | fbgui-8fbc4f6ca1ac9d9ed680248a04f00a91f917cf43.tar.gz fbgui-8fbc4f6ca1ac9d9ed680248a04f00a91f917cf43.tar.xz fbgui-8fbc4f6ca1ac9d9ed680248a04f00a91f917cf43.zip | |
changes in the fbbrowser class, added some slots for the jsOject and signals in the jsObject
Diffstat (limited to 'src/jsObject.h')
| -rw-r--r-- | src/jsObject.h | 37 |
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(); }; |
