QSubApp Class Reference
[Classes to further consolidate Qt as the ultimate cross platform framework.]

Implement to give non-event driven programs use of the Qt event loop. More...

#include <qsubapp.h>

Collaboration diagram for QSubApp:

Collaboration graph
[legend]
List of all members.

Static Public Member Functions

static void sleep (const uint secs)
static void usleep (const uint usecs)

Protected Member Functions

virtual void main ()=0
virtual void main ()=0
 QSubApp ()

Friends

class QLauncher

Detailed Description

Implement to give non-event driven programs use of the Qt event loop.

Author:
Gav Wood <gav@cs.york.ac.uk>
QSubApp is a class for helping provide a convenient way to encapsulate the idea of a normal C++ (non-event driven) style program while still retaining the Qt event loop.

Subclass QSubApp and reimplement the main() method, creating one global scope instance on it.

Example:

 class MySubApp: public QSubApp
 {
     void main();
 } theSubApp;

 void MySubApp::main()
 {
     // Do some stuff.
 }


Constructor & Destructor Documentation

QSubApp::QSubApp (  )  [protected]

The default and basic constructor.


Member Function Documentation

virtual void QSubApp::main (  )  [protected, pure virtual]

Reimplement to define the main()-like function for your program.

static void QSubApp::sleep ( const uint  secs  )  [inline, static]

Block for at least secs seconds.

Parameters:
Minimum number of seconds to block for.

static void QSubApp::usleep ( const uint  usecs  )  [inline, static]

Block for at least usecs microseconds.

Parameters:
Minimum number of microseconds to block for.


The documentation for this class was generated from the following files:
Generated on Thu Jul 13 06:56:35 2006 for Exscalibar by  doxygen 1.4.7