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/fbbrowser.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/fbbrowser.h')
| -rw-r--r-- | src/fbbrowser.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/fbbrowser.h b/src/fbbrowser.h index 6cfa588..42d1d3d 100644 --- a/src/fbbrowser.h +++ b/src/fbbrowser.h @@ -19,7 +19,6 @@ public: ~fbbrowser(); void printusage(); Q_INVOKABLE void writeText(QString text); //used for writing web content into a file - Q_INVOKABLE void quitAll(); private: QUrl baseUrl; @@ -32,12 +31,31 @@ private: // Private download function. void download(const QString & file); + //the jsObject. connection to the webpage for emiting signals + jsObject * jso; + // connects all jsObject signals with fbbrowser slots + void connectJsSignalsToSlots(); + private slots: void addJSObject(); void getSysInfo(); + // slots which are emited by the jsObject signals + + void quitAll(); + void startDownload_Slot(); + void getMacAddress_Slot(); + void getIpAddress_Slot(); + void getIntegratedHardwareDevices_Slot(); + void getUsbDevices_Slot(); + void getHardDrives_Slot(); + + // for testing reasons + void showTime_Slot(); + void showDate_Slot(); + signals: void signalQuitAll(); }; |
