From 8fbc4f6ca1ac9d9ed680248a04f00a91f917cf43 Mon Sep 17 00:00:00 2001 From: Niklas Goby Date: Tue, 22 Feb 2011 14:40:04 +0100 Subject: changes in the fbbrowser class, added some slots for the jsOject and signals in the jsObject --- src/jsObject.h | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) (limited to 'src/jsObject.h') 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(); }; -- cgit v1.2.3-55-g7522