Torc
0.1
|
TorcLocalContext is the core Torc object. More...
#include <torclocalcontext.h>
Public Slots | |
void | RegisterQThread (void) |
Register a non-Torc QThread for logging and database access. More... | |
void | DeregisterQThread (void) |
Deregister a non-Torc QThread from logging and close any database connections. More... | |
bool | event (QEvent *Event) override |
void | ShutdownTimeout (void) |
Public Member Functions | |
QString | GetSetting (const QString &Name, const QString &DefaultValue) |
bool | GetSetting (const QString &Name, bool DefaultValue) |
int | GetSetting (const QString &Name, int DefaultValue) |
void | SetSetting (const QString &Name, const QString &Value) |
void | SetSetting (const QString &Name, bool Value) |
void | SetSetting (const QString &Name, int Value) |
QString | GetUuid (void) const |
TorcSetting * | GetRootSetting (void) |
qint64 | GetStartTime (void) |
int | GetPriority (void) |
QLocale | GetLocale (void) |
TorcLanguage * | GetLanguage (void) |
void | CloseDatabaseConnections (void) |
bool | QueueShutdownEvent (int Event) |
void | SetShutdownDelay (uint Delay) |
uint | GetShutdownDelay (void) |
Public Member Functions inherited from TorcObservable | |
TorcObservable () | |
virtual | ~TorcObservable ()=default |
void | AddObserver (QObject *Observer) |
brief Register the given object to receive events. More... | |
void | RemoveObserver (QObject *Observer) |
brief Deregister the given object. More... | |
void | Notify (const TorcEvent &Event) |
Brief Send the given event to each registered listener/observer. More... | |
Static Public Member Functions | |
static qint16 | Create (TorcCommandLine *CommandLine, bool Init=true) |
static void | TearDown (void) |
static void | NotifyEvent (int Event) |
TorcLocalContext is the core Torc object.
Definition at line 74 of file torclocalcontext.h.
void TorcLocalContext::CloseDatabaseConnections | ( | void | ) |
Definition at line 319 of file torclocalcontext.cpp.
|
static |
Definition at line 65 of file torclocalcontext.cpp.
|
slot |
Deregister a non-Torc QThread from logging and close any database connections.
Definition at line 356 of file torclocalcontext.cpp.
|
overrideslot |
Definition at line 450 of file torclocalcontext.cpp.
TorcLanguage * TorcLocalContext::GetLanguage | ( | void | ) |
Definition at line 313 of file torclocalcontext.cpp.
QLocale TorcLocalContext::GetLocale | ( | void | ) |
Definition at line 307 of file torclocalcontext.cpp.
int TorcLocalContext::GetPriority | ( | void | ) |
Definition at line 482 of file torclocalcontext.cpp.
TorcSetting * TorcLocalContext::GetRootSetting | ( | void | ) |
Definition at line 470 of file torclocalcontext.cpp.
QString TorcLocalContext::GetSetting | ( | const QString & | Name, |
const QString & | DefaultValue | ||
) |
Definition at line 275 of file torclocalcontext.cpp.
bool TorcLocalContext::GetSetting | ( | const QString & | Name, |
bool | DefaultValue | ||
) |
Definition at line 280 of file torclocalcontext.cpp.
int TorcLocalContext::GetSetting | ( | const QString & | Name, |
int | DefaultValue | ||
) |
Definition at line 286 of file torclocalcontext.cpp.
uint TorcLocalContext::GetShutdownDelay | ( | void | ) |
Definition at line 340 of file torclocalcontext.cpp.
qint64 TorcLocalContext::GetStartTime | ( | void | ) |
Definition at line 476 of file torclocalcontext.cpp.
QString TorcLocalContext::GetUuid | ( | void | ) | const |
Definition at line 465 of file torclocalcontext.cpp.
|
static |
Definition at line 85 of file torclocalcontext.cpp.
bool TorcLocalContext::QueueShutdownEvent | ( | int | Event | ) |
Definition at line 367 of file torclocalcontext.cpp.
|
slot |
Register a non-Torc QThread for logging and database access.
Definition at line 350 of file torclocalcontext.cpp.
void TorcLocalContext::SetSetting | ( | const QString & | Name, |
const QString & | Value | ||
) |
Definition at line 292 of file torclocalcontext.cpp.
void TorcLocalContext::SetSetting | ( | const QString & | Name, |
bool | Value | ||
) |
Definition at line 297 of file torclocalcontext.cpp.
void TorcLocalContext::SetSetting | ( | const QString & | Name, |
int | Value | ||
) |
Definition at line 302 of file torclocalcontext.cpp.
void TorcLocalContext::SetShutdownDelay | ( | uint | Delay | ) |
Definition at line 326 of file torclocalcontext.cpp.
|
slot |
Definition at line 362 of file torclocalcontext.cpp.
|
static |
Definition at line 79 of file torclocalcontext.cpp.