LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::gtkServer Class Reference

Server to administrate gtk GUI. More...

#include <ltiGtkServer.h>

Inheritance diagram for lti::gtkServer:
Inheritance graph
[legend]
Collaboration diagram for lti::gtkServer:
Collaboration graph
[legend]

List of all members.

Classes

class  guiThread
 An instance of this class will be the GUI server object, called gtkServer. More...

Public Member Functions

 gtkServer ()
virtual ~gtkServer ()
bool start ()

Static Public Member Functions

static bool shutdown ()
static bool isAlive ()

Static Protected Member Functions

static void toolkitAbort ()

Static Protected Attributes

static guiThread theThread
static bool alreadyStarted
static mutex lock

Detailed Description

Server to administrate gtk GUI.


Constructor & Destructor Documentation

lti::gtkServer::gtkServer (  ) 

default constructor

virtual lti::gtkServer::~gtkServer (  )  [virtual]

destructor


Member Function Documentation

static bool lti::gtkServer::isAlive (  )  [static]

return true if the gtk-server is active (alive) or false otherwise

static bool lti::gtkServer::shutdown (  )  [static]

stop the server.

It will not be possible to restart the server after this. You can stop the server before the end of the application, to close all GTK widgets and its main loop.

Returns:
true if successful, of false otherwise.
bool lti::gtkServer::start (  ) 

start the server.

Returns:
true if successful or if already started, false if something went wrong.
static void lti::gtkServer::toolkitAbort (  )  [static, protected]

static method called at the end of the application, to ensure the proper finalization of the GTK main loop.


Member Data Documentation

bool lti::gtkServer::alreadyStarted [static, protected]

flag to indicate if server thread is already on

mutex lti::gtkServer::lock [static, protected]

mutex to protect flag alreadyStarted

guiThread lti::gtkServer::theThread [static, protected]

the gui server (just one for all gui elements.

..)


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

Generated on Sat Apr 10 15:28:53 2010 for LTI-Lib by Doxygen 1.6.1