Async::Application Class Reference

The base class for asynchronous applications. More...

#include <AsyncApplication.h>

Inheritance diagram for Async::Application:
Async::CppApplication Async::QtApplication

List of all members.

Public Member Functions

Static Public Member Functions

Friends


Detailed Description

The base class for asynchronous applications.

This is the base class for all asynchronous applications. It is an abstract class and so it must be inherited from to create a class that can be instantiated.

Definition at line 118 of file AsyncApplication.h.


Constructor & Destructor Documentation

Async::Application::Application ( void   ) 

Default constructor.

virtual Async::Application::~Application ( void   )  [virtual]

Destructor.


Member Function Documentation

static Application& Async::Application::app ( void   )  [static]

Get the one and only application instance.

Use this static member function to get the one and only instance of the application object. If an application object has not been previously created, the application will crash with a failed assertion.

Returns:
Returns a reference to the applicaton instance
virtual void Async::Application::exec ( void   )  [pure virtual]

Execute the application main loop.

When this member function is called the application core will enter the core main loop. It will not exit from this loop until the Async::Application::quit method is called.

Implemented in Async::CppApplication, and Async::QtApplication.

virtual void Async::Application::quit ( void   )  [pure virtual]

Exit the application main loop.

This function should be called to exit the application core main loop.

Implemented in Async::CppApplication, and Async::QtApplication.


Friends And Related Function Documentation

friend class DnsLookup [friend]

Definition at line 162 of file AsyncApplication.h.

friend class FdWatch [friend]

Definition at line 160 of file AsyncApplication.h.

friend class Timer [friend]

Definition at line 161 of file AsyncApplication.h.


The documentation for this class was generated from the following file:
Generated by  doxygen 1.6.2-20100208