37 lines
626 B
C
37 lines
626 B
C
|
|
#ifndef MASTERCONTROLLER_H
|
|||
|
|
#define MASTERCONTROLLER_H
|
|||
|
|
|
|||
|
|
#include <QObject>
|
|||
|
|
#include <map>
|
|||
|
|
|
|||
|
|
class ConnectionConfig;
|
|||
|
|
class ConnectionListModel;
|
|||
|
|
class ConnectionManagerWindow;
|
|||
|
|
|
|||
|
|
class MasterController : public QObject
|
|||
|
|
{
|
|||
|
|
Q_OBJECT
|
|||
|
|
public:
|
|||
|
|
explicit MasterController(QObject *parent = 0);
|
|||
|
|
~MasterController();
|
|||
|
|
|
|||
|
|
void init();
|
|||
|
|
|
|||
|
|
ConnectionListModel *getConnectionListModel()
|
|||
|
|
{
|
|||
|
|
return m_connectionListModel;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
void showConnectionManager();
|
|||
|
|
|
|||
|
|
signals:
|
|||
|
|
|
|||
|
|
public slots:
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
ConnectionListModel *m_connectionListModel = nullptr;
|
|||
|
|
ConnectionManagerWindow *m_connectionManagerWindow = nullptr;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
#endif // MASTERCONTROLLER_H
|