#include <hwApp.h>
Public Member Functions | |
hwApp () | |
~hwApp () | |
void | registerWidget (hwWidget *w) |
void | process (wsRequest *request) |
virtual hwApp * | createInstance ()=0 |
virtual void | init ()=0 |
void | setActiveWindow (hwWindow *window) |
void | setTheme (hwTheme *theme) |
void | setId (const string &id) |
hwTheme * | getTheme () const |
string | getId () const |
hwApp::hwApp | ( | ) |
hwApp::~hwApp | ( | ) |
virtual hwApp* hwApp::createInstance | ( | ) | [pure virtual] |
string hwApp::getId | ( | ) | const [inline] |
hwTheme* hwApp::getTheme | ( | ) | const [inline] |
virtual void hwApp::init | ( | ) | [pure virtual] |
void hwApp::process | ( | wsRequest * | request | ) |
When a connection is received by the server, it is converted into a request object and sent to the application for processing.
void hwApp::registerWidget | ( | hwWidget * | w | ) |
As widgets are created, they are registered with their application instance. This is required to create hash tables for fast lookup of widgets as they need to be processed by incoming requests.
void hwApp::setActiveWindow | ( | hwWindow * | window | ) | [inline] |
void hwApp::setId | ( | const string & | id | ) | [inline] |
void hwApp::setTheme | ( | hwTheme * | theme | ) | [inline] |