diff options
author | Jonathan Bauer | 2011-03-21 11:48:32 +0100 |
---|---|---|
committer | Jonathan Bauer | 2011-03-21 11:48:32 +0100 |
commit | 31050528017e11c54f408b22c92265ff6c4c4b69 (patch) | |
tree | b3a83fc05f53548a7c6beb29b9b0d971b9c49cc3 /src/javascriptinterface.h | |
parent | minor code convention fixes (diff) | |
download | fbgui-31050528017e11c54f408b22c92265ff6c4c4b69.tar.gz fbgui-31050528017e11c54f408b22c92265ff6c4c4b69.tar.xz fbgui-31050528017e11c54f408b22c92265ff6c4c4b69.zip |
and the files ^^
Diffstat (limited to 'src/javascriptinterface.h')
-rw-r--r-- | src/javascriptinterface.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/javascriptinterface.h b/src/javascriptinterface.h new file mode 100644 index 0000000..9b4303c --- /dev/null +++ b/src/javascriptinterface.h @@ -0,0 +1,50 @@ +/* +# Copyright (c) 2010,2011 - RZ Uni Freiburg +# Copyright (c) 2010,2011 - OpenSLX Project +# +# This program/file is free software distributed under the GPL version 2. +# See http://openslx.org/COPYING +# +# If you have any feedback please consult http://openslx.org/feedback and +# send your feedback to feedback@openslx.org +# +# General information about OpenSLX can be found under http://openslx.org +# +# +# Interface for javascript. +# +*/ + +#ifndef JAVASCRIPTINTERFACE_H_ +#define JAVASCRIPTINTERFACE_H_ + +#include "fbgui.h" + +class JavascriptInterface : public QObject +{ + Q_OBJECT +private: + QWebFrame* _parent; + QString _callBackOnDownloadsFinished; + +public: + JavascriptInterface(QWebFrame* parent); + ~JavascriptInterface(); + +signals: + void requestFile(const QString& filename); + void quitFbgui(); + +public slots: + void attachToDOM(); + void startDownload(const QString& filename); + void setCallbackOnDlQueueFinished(QString& fctOnDownloadsFinished); + void callbackOnDlQueueFinished(); + void updateProgressBar(const int& percent, const double& speed, const QString& unit); + void downloadInfo(const QString& filename, const double& filesize); + void notify(const QString& msg); + const QString getSysInfo(const QString& info); + void quit(); +}; + +#endif // JAVASCRIPTINTERFACE_H_ |