From 04fec063699f742fcd2ea552ef8c77fb402ce870 Mon Sep 17 00:00:00 2001 From: Niklas Date: Wed, 9 Nov 2011 15:27:51 +0100 Subject: some documentation changes (adding comments) and doxygen files) --- doxygen/html/class_javascript_interface.html | 604 +++++++++++++++++++++++++++ 1 file changed, 604 insertions(+) create mode 100644 doxygen/html/class_javascript_interface.html (limited to 'doxygen/html/class_javascript_interface.html') diff --git a/doxygen/html/class_javascript_interface.html b/doxygen/html/class_javascript_interface.html new file mode 100644 index 0000000..e81f8a3 --- /dev/null +++ b/doxygen/html/class_javascript_interface.html @@ -0,0 +1,604 @@ + + +
+ +|
+ ndgui/NetworkDiscovery
+ |
+
#include <javascriptinterface.h>
+Public Slots | |
| void | attachToDOM () |
| void | startDownload (const QString &filename) |
| void | setCallbackOnFinished (const QString &function) |
| const QString | getSysInfo (const QString &info) |
| void | quit () |
| void | shutDown () |
| void | reboot () |
| void | callbackOnFinished () |
| void | updateProgressBar (const int &percent, const double &speed, const QString &unit) |
| void | downloadInfo (const QString &filename, const double &filesize) |
| void | notify (const QString &msg) |
| void | trigger () |
+Signals | |
| void | requestFile (const QString &filename) |
| void | quitFbgui () |
| void | shutDownClient () |
| void | rebootClient () |
+Public Member Functions | |
| JavascriptInterface (QWebFrame *parent) | |
| ~JavascriptInterface () | |
| JavascriptInterface::JavascriptInterface | +( | +QWebFrame * | +parent | ) | ++ |
A constructor.
+| parent | Is of type QWebFrame. |
| JavascriptInterface::~JavascriptInterface | +( | +) | ++ |
An empty destructor.
+ +| void JavascriptInterface::attachToDOM | +( | +) | + [slot] |
+
Attaches an instance of this class to the DOM of the HTML page.
+Attaches an instance of this class to the DOM of the HTML page. This enables the possibility to call slots/methods of this class in JavaScript functions of HTML page. It also calls the JavascriptInterface::loadJQuery() method.
+| void JavascriptInterface::callbackOnFinished | +( | +) | + [slot] |
+
Sets a callback function for when downloads are finished (will be called when the queue is empty).
+ +| void JavascriptInterface::downloadInfo | +( | +const QString & | +filename, | +
| + | + | const double & | +filesize | +
| + | ) | + [slot] |
+
This method delivers some informations about the downloading file.
+This method delivers some informations about the downloading file.
+| const QString JavascriptInterface::getSysInfo | +( | +const QString & | +info | ) | + [slot] |
+
This method delivers system informations.
+This method delivers system informations. Type of informations, are defined by the parameter. The output of this method depends on the parameter. Can be called from inside a JavaScript function of the HTML page.
+| infoName | Is of type QString. Defines which method will be called. Possible values are:
+
|

| void JavascriptInterface::notify | +( | +const QString & | +msg | ) | + [slot] |
+
This method sends out messages to Javascript. A corresponding function must be implemented on the webpage to receive these.
+ +| void JavascriptInterface::quit | +( | +) | + [slot] |
+
This method quits the whole program.
+This method quits the whole program. Can be called from inside a JavaScript function of the HTML page. Emits JavascriptInterface::quitFbgui() signal
+ +
| void JavascriptInterface::quitFbgui | +( | +) | + [signal] |
+

| void JavascriptInterface::reboot | +( | +) | + [slot] |
+
This method performs a reboot of the client.
+This method performs a reboot of the client. Emits the JavascriptInterface::rebootClient() signal. It is connected with the fbgui::performReboot() method.
+
| void JavascriptInterface::rebootClient | +( | +) | + [signal] |
+

| void JavascriptInterface::requestFile | +( | +const QString & | +filename | ) | + [signal] |
+

| void JavascriptInterface::setCallbackOnFinished | +( | +const QString & | +function | ) | + [slot] |
+
This method start a download.
+This method start a download. Can be called from inside a JavaScript function of the HTML page.
+| void JavascriptInterface::shutDown | +( | +) | + [slot] |
+
This method performs a shutdown of the client.
+This method performs a shutdown of the client. Emits the JavascriptInterface::shutDownClient() signal.It is connected with the fbgui::performShutDown() method.
+
| void JavascriptInterface::shutDownClient | +( | +) | + [signal] |
+

| void JavascriptInterface::startDownload | +( | +const QString & | +filename | ) | + [slot] |
+
This method start a download.
+This method start a download. Can be called from inside a JavaScript function of the HTML page. Emits the JavascriptInterface::requestFile(const QString) signal.
+ +
| void JavascriptInterface::trigger | +( | +) | + [slot] |
+
This method triggers the URL load *FOR DEBUGGING/TESTING PURPOSES*
+ +| void JavascriptInterface::updateProgressBar | +( | +const int & | +percent, | +
| + | + | const double & | +speed, | +
| + | + | const QString & | +unit | +
| + | ) | + [slot] |
+
This method updates the progress bar.
+This method calls a Javascript function to update the progress bar of the download. Javascript must have a function called "updateProgress" to receive this information.
+