QwuiApplication Class Reference
The main class used for all web application sessions. This class has to be created by the web main method and represents the session application. For an example, see QwuiApplicationFactory.
More...
#include <qwuiapplication.h>
List of all members.
Detailed Description
The main class used for all web application sessions. This class has to be created by the web main method and represents the session application. For an example, see QwuiApplicationFactory.
Constructor & Destructor Documentation
QwuiApplication::QwuiApplication |
( |
const QString & |
sessionId = QString::null |
) |
|
QwuiApplication::~QwuiApplication |
( |
|
) |
[virtual] |
Member Function Documentation
void QwuiApplication::addWebgetToUpdate |
( |
const QwuiWebget * |
webget |
) |
|
- Parameters:
-
| webget | that the client must update dynamically with AJAX. |
QIODevice * QwuiApplication::device |
( |
|
) |
|
- Returns:
- device used to send the data to the client.
QString QwuiApplication::javascriptDir |
( |
|
) |
const |
- Returns:
- the directory containing the javascript files.
- Returns:
- the URL parameters.
QwuiAbstractResource * QwuiApplication::provide |
( |
const QHttpRequestHeader & |
header, |
|
|
const QString & |
postContent | |
|
) |
| | [virtual] |
This methid is called by the web server and generates the HTML code for the web pages.
- Parameters:
-
| header | HTTP header |
| postContent | HTTP post content. |
- Returns:
- The resource corresponding to the HTTP request.
Implements QwuiAbstractResourceProvider.
void QwuiApplication::setJavascriptDir |
( |
const QString & |
javascriptDir |
) |
|
- Parameters:
-
| javascriptDir | the directory containing the javascript files. |
void QwuiApplication::setMainWebget |
( |
QwuiWebget * |
w |
) |
|
- Parameters:
-
| w | the main webget for the web application. |
void QwuiApplication::setStyleSheetsDir |
( |
const QString & |
styleSheetsDir |
) |
|
- Parameters:
-
| styleSheetsDir | the directory containing the CSS files. |
QString QwuiApplication::styleSheetDir |
( |
|
) |
const |
- Returns:
- the directory containing the CSS files.
Member Data Documentation
The documentation for this class was generated from the following files: