Async  1.4.0
Classes | Public Member Functions | Public Attributes | List of all members
Async::CppApplication Class Reference

An application class for writing non GUI applications. More...

#include <AsyncCppApplication.h>

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

Public Member Functions

 CppApplication (void)
 Constructor. More...
 
 ~CppApplication (void)
 Destructor. More...
 
void catchUnixSignal (int signum)
 Catch the specified UNIX signal. More...
 
void uncatchUnixSignal (int signum)
 Uncatch the specified UNIX signal. More...
 
void exec (void)
 Execute the application main loop. More...
 
void quit (void)
 Exit the application main loop. More...
 
- Public Member Functions inherited from Async::Application
 Application (void)
 Default constructor. More...
 
virtual ~Application (void)
 Destructor. More...
 
void runTask (sigc::slot< void > task)
 Run a task from the Async main loop. More...
 

Public Attributes

sigc::signal< void, int > unixSignalCaught
 A signal that is emitted when a monitored UNIX signal is caught. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Async::Application
static Applicationapp (void)
 Get the one and only application instance. More...
 

Detailed Description

An application class for writing non GUI applications.

Definition at line 136 of file AsyncCppApplication.h.

Constructor & Destructor Documentation

Async::CppApplication::CppApplication ( void  )

Constructor.

Async::CppApplication::~CppApplication ( void  )

Destructor.

Member Function Documentation

void Async::CppApplication::catchUnixSignal ( int  signum)

Catch the specified UNIX signal.

Parameters
signumThe signal number to catch
void Async::CppApplication::exec ( void  )
virtual

Execute the application main loop.

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

Implements Async::Application.

void Async::CppApplication::quit ( void  )
virtual

Exit the application main loop.

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

Implements Async::Application.

void Async::CppApplication::uncatchUnixSignal ( int  signum)

Uncatch the specified UNIX signal.

Parameters
signumThe UNIX signal to uncatch

Member Data Documentation

sigc::signal<void, int> Async::CppApplication::unixSignalCaught

A signal that is emitted when a monitored UNIX signal is caught.

Parameters
signumThe signal number that was caught

Use the catchUnixSignal and uncatchUnixSignal functions to add signals to be monitored for activity. When the signal is triggered, this sigc signal will be emitted.

Definition at line 185 of file AsyncCppApplication.h.


The documentation for this class was generated from the following file: