#include <pserverapp.h>
Inheritance diagram for P::ServerApp:

Public Member Functions | |
| ServerApp (const AboutData &about) | |
| ~ServerApp () | |
| SystemLog & | syslog () throw () |
| Returns a reference to the logging object. | |
| bool | hasSyslog () const throw () |
| Check for application system logging. | |
| Config & | config () throw () |
| Returns a reference to the config object. | |
| bool | hasConfig () const throw () |
| Check for application config. | |
| virtual void | reload () |
| Reload application. | |
Protected Member Functions | |
| virtual int | init (int argc, char *argv[]) |
| Application init. | |
| void | daemonize () throw (SystemError) |
| Daemonize the process (go into background). | |
| void | setSyslog (SystemLog *log) throw () |
| Set the applications system logging object. | |
| void | setConfig (Config *cfg) throw () |
| Set the applications config object. | |
Static Protected Member Functions | |
| RETSIGTYPE | SIGHUP_handler (int) |
Definition at line 37 of file pserverapp.h.
|
|
|
|
|
|
|
|
Returns a reference to the config object.
Definition at line 51 of file pserverapp.h. |
|
|
Daemonize the process (go into background).
|
|
|
Check for application config.
Definition at line 55 of file pserverapp.h. |
|
|
Check for application system logging.
Definition at line 47 of file pserverapp.h. |
|
||||||||||||
|
Application init. Overload this method to implement application initialization. Remember to call the default implementation to initialize the process signal handlers.
Reimplemented from P::SimpleApp. |
|
|
Reload application. Overfload this method for reloading your application's config data and for restart logging. Default implementation will reload the config and restart the logging. |
|
|
Set the applications config object.
|
|
|
Set the applications system logging object.
|
|
|
|
|
|
Returns a reference to the logging object.
Definition at line 43 of file pserverapp.h. |
1.3.3