diff options
| author | Jonathan Bauer | 2011-03-04 23:51:45 +0100 |
|---|---|---|
| committer | Jonathan Bauer | 2011-03-04 23:51:45 +0100 |
| commit | 0d711f2fc464eb05866cd9c329b57ec279a98971 (patch) | |
| tree | 80e76c58f4336f61be40cef18435626e270b822f /src/jsObject.h | |
| parent | default url for testApp.sh (diff) | |
| download | fbgui-0d711f2fc464eb05866cd9c329b57ec279a98971.tar.gz fbgui-0d711f2fc464eb05866cd9c329b57ec279a98971.tar.xz fbgui-0d711f2fc464eb05866cd9c329b57ec279a98971.zip | |
Code cleanup, JSO class continued, added webkitTest.html for reference
Diffstat (limited to 'src/jsObject.h')
| -rw-r--r-- | src/jsObject.h | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/src/jsObject.h b/src/jsObject.h deleted file mode 100644 index a58594f..0000000 --- a/src/jsObject.h +++ /dev/null @@ -1,74 +0,0 @@ -/* - * jsObject.h - * - * 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_ -#define JSOBJECT_H_ - -#include <QObject> - -typedef enum -{ - QUIT, - SHOW_USB_DEVICES, - SHOW_HARDDRIVES, - SHOW_MAC_ADDRESS, - SHOW_IP_ADDRESS, - SHOW_TIME, - SHOW_DATE -} jsAction; - -class jsObject : public QObject -{ - Q_OBJECT - -public: - jsObject(); - virtual ~jsObject(); - -//private: -// fbbrowser browser; - -// 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(QString filename); - - // 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(); - void showHelloWorld(); - -}; - -#endif /* JSOBJECT_H_ */ |
