summaryrefslogtreecommitdiffstats
path: root/src/fbgui/javascriptinterface.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fbgui/javascriptinterface.h')
-rw-r--r--src/fbgui/javascriptinterface.h22
1 files changed, 4 insertions, 18 deletions
diff --git a/src/fbgui/javascriptinterface.h b/src/fbgui/javascriptinterface.h
index b15c134..2b3c83f 100644
--- a/src/fbgui/javascriptinterface.h
+++ b/src/fbgui/javascriptinterface.h
@@ -11,7 +11,7 @@
* General information about OpenSLX can be found under http://openslx.org
*
*
- * Interface for javascript.
+ * Abstract interface for javascript.
*
*/
@@ -27,17 +27,14 @@ public:
JavascriptInterface(QWebFrame* parent);
~JavascriptInterface();
-private:
+protected:
// pointer to parent
- QWebFrame* _parent;
- // function to be called withint javascript when downloads are done.
- QString _callbackOnDownloadsFinished;
+ QWebFrame* _targetFrame;
+
// loads jQuery code
void loadJQuery();
signals:
- // request the file from download manager
- void requestFile(const QString& filename);
// quit the application
void quitFbgui();
// shut off the system. connected to fbgui::performShutDown()
@@ -49,21 +46,10 @@ public slots:
// make sure the interface stays attached on webpage reload
void attachToDOM();
- // slots for calling from the webpage
- void startDownload(const QString& filename);
- void setCallbackOnFinished(const QString& function);
- const QString getSysInfo(const QString& info);
void quit();
void shutDown();
void reboot();
- // callback when downloads are done.
- void callbackOnFinished();
-
- // slots for information exchange with the download manager.
- void updateProgressBar(const int& percent, const double& speed,
- const QString& unit);
- void downloadInfo(const QString& filename, const double& filesize);
void notify(const QString& msg);
};