From dd78cf7adfc03344147828ca51017e75c25e71f8 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Wed, 30 Mar 2011 14:08:04 +0200 Subject: jsi code strcture --- src/javascriptinterface.h | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'src/javascriptinterface.h') 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); -- cgit v1.2.3-55-g7522