Fotobot
Get data from your photovoltaic plant
interfacebox.h
Go to the documentation of this file.
1 
7 #ifndef _INTERFACEBOX_H_
8 #define _INTERFACEBOX_H_
9 
10 #include <QThread>
11 #include <QCoreApplication>
12 
13 class DATABASE;
14 class DBT_LINES;
15 
29 class INTERFACEBOX : public QThread {
30  Q_OBJECT
31  public:
32  ~INTERFACEBOX();
33  INTERFACEBOX(QCoreApplication *);
34 
41  void start(Priority priority = InheritPriority);
42  void setDatabase(DATABASE *);
43 
44  public slots:
49  void quit();
50 
54  void restart();
55 
56  void slotThreadAlive();
57 
58  signals:
59  void sigRestart();
60 
61  private slots:
62  void slotInit();
63  void slotRestart();
64 
65  private:
66  DATABASE *m_db;
67  void restart(const DBT_LINES&);
68 
69 };
70 
71 #endif
void restart()
Restarts all connected interfaceboxes.
Virtual class for invertor communication.
Definition: interfacebox.h:29
void start(Priority priority=InheritPriority)
Starts the thread.
Class for communication with database.
Definition: database.h:47
void quit()
Quits the running thread.
Class describing database table LINES.