direcs  2012-09-30
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
TimerThread Class Reference

tbd More...

#include <timerThread.h>

List of all members.

Signals

void checkNetworkState ()
void message (QString text, bool CR=true, bool sayIt=false, bool addTimestamp=true)
void networkMessage ()

Public Member Functions

bool init ()
virtual void run ()
void stop ()
 TimerThread ()
 ~TimerThread ()

Private Attributes

bool networkStateSet
QTime now
 this is for getting the current time
QTime startTime
volatile bool stopped
 this is for getting the current time

Static Private Attributes

static const unsigned long THREADSLEEPTIME = 1000
static const int timeToNetworkCheck = 3

Detailed Description

tbd

Author:
Markus Knapp tbd

Definition at line 34 of file timerThread.h.


Constructor & Destructor Documentation

TimerThread::TimerThread ( )

Definition at line 23 of file timerThread.cpp.

TimerThread::~TimerThread ( )

Definition at line 30 of file timerThread.cpp.


Member Function Documentation

void TimerThread::checkNetworkState ( )
signal

Emits a signal to check network state of this program.

See also:
Direcs::setNetworkState

Here is the caller graph for this function:

bool TimerThread::init ( void  )

tbd

Returns:
true on success, false on error

Definition at line 85 of file timerThread.cpp.

void TimerThread::message ( QString  text,
bool  CR = true,
bool  sayIt = false,
bool  addTimestamp = true 
)
signal

Emits a string to the GUI log / console.

See also:
Gui::appendLog()
Parameters:
textis the message to be emitted
CRis true when a CR/LF should be added at the end of the line (default)
sayItis true when the text for the log also should be spoken (default=false)
addTimestampIf true, the a timestamp is added in front of the text. This parameter is optional.

Here is the caller graph for this function:

void TimerThread::networkMessage ( )
signal

Sends a signal over the network. E.g. if we are 'master' or 'slave.

See also:
Direcs::sendNetworkMessage

Here is the caller graph for this function:

void TimerThread::run ( )
virtual

Starts the thread.

Definition at line 41 of file timerThread.cpp.

Here is the call graph for this function:

void TimerThread::stop ( )

Stops the thread.

Definition at line 35 of file timerThread.cpp.

Here is the caller graph for this function:


Member Data Documentation

bool TimerThread::networkStateSet
private

Definition at line 86 of file timerThread.h.

QTime TimerThread::now
private

this is for getting the current time

Definition at line 83 of file timerThread.h.

QTime TimerThread::startTime
private

Definition at line 82 of file timerThread.h.

volatile bool TimerThread::stopped
private

this is for getting the current time

Definition at line 84 of file timerThread.h.

const unsigned long TimerThread::THREADSLEEPTIME = 1000
staticprivate

Definition at line 91 of file timerThread.h.

const int TimerThread::timeToNetworkCheck = 3
staticprivate

Definition at line 87 of file timerThread.h.


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