Torc  0.1
Public Slots | Public Member Functions | Static Public Member Functions | List of all members
TorcLocalContext Class Reference

TorcLocalContext is the core Torc object. More...

#include <torclocalcontext.h>

Inheritance diagram for TorcLocalContext:
[legend]

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
 
TorcSettingGetRootSetting (void)
 
qint64 GetStartTime (void)
 
int GetPriority (void)
 
QLocale GetLocale (void)
 
TorcLanguageGetLanguage (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)
 

Detailed Description

TorcLocalContext is the core Torc object.

Definition at line 74 of file torclocalcontext.h.

Member Function Documentation

void TorcLocalContext::CloseDatabaseConnections ( void  )

Definition at line 319 of file torclocalcontext.cpp.

qint16 TorcLocalContext::Create ( TorcCommandLine CommandLine,
bool  Init = true 
)
static

Definition at line 65 of file torclocalcontext.cpp.

void TorcLocalContext::DeregisterQThread ( void  )
slot

Deregister a non-Torc QThread from logging and close any database connections.

Definition at line 356 of file torclocalcontext.cpp.

bool TorcLocalContext::event ( QEvent *  Event)
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.

void TorcLocalContext::NotifyEvent ( int  Event)
static

Definition at line 85 of file torclocalcontext.cpp.

bool TorcLocalContext::QueueShutdownEvent ( int  Event)

Definition at line 367 of file torclocalcontext.cpp.

void TorcLocalContext::RegisterQThread ( void  )
slot

Register a non-Torc QThread for logging and database access.

Note
This must be called from the relevant QThread and the QThread must already be named.

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.

void TorcLocalContext::ShutdownTimeout ( void  )
slot

Definition at line 362 of file torclocalcontext.cpp.

void TorcLocalContext::TearDown ( void  )
static

Definition at line 79 of file torclocalcontext.cpp.


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