summaryrefslogtreecommitdiffstats
path: root/src/javascriptinterface.h
diff options
context:
space:
mode:
authorJonathan Bauer2011-03-30 14:08:04 +0200
committerJonathan Bauer2011-03-30 14:08:04 +0200
commitdd78cf7adfc03344147828ca51017e75c25e71f8 (patch)
tree6d1b6a640b0ac8286197e2110a2fb29eaadfe276 /src/javascriptinterface.h
parentMerge branch 'master' of git.openslx.org:lsfks/master-teamprojekt/fbgui (diff)
downloadfbgui-dd78cf7adfc03344147828ca51017e75c25e71f8.tar.gz
fbgui-dd78cf7adfc03344147828ca51017e75c25e71f8.tar.xz
fbgui-dd78cf7adfc03344147828ca51017e75c25e71f8.zip
jsi code strcture
Diffstat (limited to 'src/javascriptinterface.h')
-rw-r--r--src/javascriptinterface.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/javascriptinterface.h b/src/javascriptinterface.h
index 65a29a9..fc2caf3 100644
--- a/src/javascriptinterface.h
+++ b/src/javascriptinterface.h
@@ -28,28 +28,34 @@ public:
~JavascriptInterface();
private:
+ // pointer to parent
QWebFrame* _parent;
+ // function to be called withint javascript when downloads are done.
QString _callbackOnDownloadsFinished;
-
+ // loads jQuery code
void loadJQuery();
signals:
+ // request the file from download manager
void requestFile(const QString& filename);
+ // quit the application
void quitFbgui();
public slots:
// make sure the interface stays attached on webpage reload
void attachToDOM();
- // Slots for calling from the webpage
+ // slots for calling from the webpage
void getSession(const QString& session);
- const QString getSysInfo(const QString& info);
void startDownload(const QString& filename);
void setCallbackOnFinished(const QString& function);
+ const QString getSysInfo(const QString& info);
void quit();
- // Slots for information exchange with the download manager.
- void callbackOnFinished();
+ // 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);