6#ifndef _TimesheetServer_H_
7#define _TimesheetServer_H_
28 const QDateTime& startTime()
const {
return m_startTime; }
Hlavní třída - startovaná z main, inicializuje aplikaci a startuje potřebné objekty.
void restart()
Restartuje (nebo ukončí) server.
void init()
Funkce volaná přes timer po startu aplikace.
static QDateTime m_startTime
Čas startu.
static TimesheetServer * instance()
Vrací ukazatel na singleton instanci třídy.
void quit()
Ukončí aplikaci natrvrdo, quit.
void destroy()
Ukončí aplikaci.
static TimesheetServer * m_timesheetServer
Singleton instance třídy.
TimesheetServer()
Konstruktor, přes timer volá funkci init()