ckb-next  v0.2.8 at branch master
ckb-next driver for corsair devices
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MacroReader Class Reference

The MacroReader class creates a worker thread object. It does a connect do delayed deletion of thread local variables in the case the worker thread terminates. More...

#include <src/ckb/macroreader.h>

+ Inheritance diagram for MacroReader:
+ Collaboration diagram for MacroReader:

Public Member Functions

 MacroReader ()
 MacroReader Calling MacroReader without params is not allowed. More...
 
 MacroReader (int macroNumber, QString macroPath, QPlainTextEdit *macBox, QPlainTextEdit *macText)
 MacroReader This is the only allowed constructor. It only calls startWorkInAThread() with the four params. More...
 
 ~MacroReader ()
 
void startWorkInAThread (int macroNumber, QString macroPath, QPlainTextEdit *macBox, QPlainTextEdit *macText)
 startWorkInAThread This member function creates the new thread object and starts it with the four params. More...
 

Private Attributes

MacroReaderThreadmacroReaderThread
 

Detailed Description

Definition at line 87 of file macroreader.h.

Constructor & Destructor Documentation

MacroReader::MacroReader ( )

Definition at line 9 of file macroreader.cpp.

9  {
10  qDebug() << "Calling MacroReader without params is not allowed.";
11 }
MacroReader::MacroReader ( int  macroNumber,
QString  macroPath,
QPlainTextEdit *  macBox,
QPlainTextEdit *  macText 
)
Parameters
macroNumber
macroPath
macBox
macText

Definition at line 13 of file macroreader.cpp.

References startWorkInAThread().

13  {
14  startWorkInAThread(macroNumber, macroPath, macBox, macText);
15 }
void startWorkInAThread(int macroNumber, QString macroPath, QPlainTextEdit *macBox, QPlainTextEdit *macText)
startWorkInAThread This member function creates the new thread object and starts it with the four par...
Definition: macroreader.cpp:18

+ Here is the call graph for this function:

MacroReader::~MacroReader ( )

Definition at line 16 of file macroreader.cpp.

16 {}

Member Function Documentation

void MacroReader::startWorkInAThread ( int  macroNumber,
QString  macroPath,
QPlainTextEdit *  macBox,
QPlainTextEdit *  macText 
)
Parameters
macroNumber
macroPath
macBox
macText

Definition at line 18 of file macroreader.cpp.

References macroReaderThread.

Referenced by MacroReader().

18  {
19  macroReaderThread = new MacroReaderThread(macroNumber, macroPath, macBox, macText);
20  connect(macroReaderThread, &MacroReaderThread::finished, macroReaderThread, &QObject::deleteLater);
21  macroReaderThread->start();
22 }
The MacroReaderThread class is responsible for reading Macro Key Values. It is created as a separate ...
Definition: macroreader.h:22
MacroReaderThread * macroReaderThread
Definition: macroreader.h:123

+ Here is the caller graph for this function:

Field Documentation

MacroReaderThread* MacroReader::macroReaderThread
private

Definition at line 123 of file macroreader.h.

Referenced by startWorkInAThread().


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