Fotobot
Get data from your photovoltaic plant
Public Slots | Signals | Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
INTERFACEBOX Class Reference

Virtual class for invertor communication. More...

#include <interfacebox.h>

Inheritance diagram for INTERFACEBOX:

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

DATABASEm_db
 

Detailed Description

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.

Member Function Documentation

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.

25  {
26  QTimer::singleShot(10, this, SLOT(slotInit()));
27  QThread::start(priority);
28 }

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