![]() |
Fotobot
Get data from your photovoltaic plant
|
Virtual class for invertor communication. More...
#include <interfacebox.h>
Public Slots | |
void | quit () |
Quits the running thread. | |
void | restart () |
Restarts all connected interfaceboxes. | |
void | slotThreadAlive () |
Signals | |
void | sigRestart () |
Public Member Functions | |
INTERFACEBOX (QCoreApplication *) | |
void | start (Priority priority=InheritPriority) |
Starts the thread. More... | |
void | setDatabase (DATABASE *) |
Private Slots | |
void | slotInit () |
void | slotRestart () |
Private Member Functions | |
void | restart (const DBT_LINES &) |
Private Attributes | |
DATABASE * | m_db |
Virtual class for invertor communication.
Every derived class must implement slotInit() nd slotQuit() methods.
As parameters the object gets the line specification in DBT_LINES object and list of invertors connected to this line in DBT_INTERFACEBOXS's list. One independent thread is started for every line.
When all needed parameters are set the start() function must be called.
Data are sent to other object using signal data(DBT_DATA);
Definition at line 29 of file interfacebox.h.
void INTERFACEBOX::start | ( | Priority | priority = InheritPriority | ) |
Starts the thread.
Starts the thread's event loop, moves the object to that thread and calls from the event loop ancestor's slotInit() function.
Definition at line 25 of file interfacebox.cpp.