pgLab/MasterController.h

42 lines
748 B
C
Raw Normal View History

#ifndef MASTERCONTROLLER_H
#define MASTERCONTROLLER_H
#include <QObject>
#include <map>
class ConnectionConfig;
class ConnectionListModel;
class ConnectionManagerWindow;
/** \brief Controller class responsible for all things global.
*/
class MasterController : public QObject
{
Q_OBJECT
public:
explicit MasterController(QObject *parent = 0);
~MasterController();
void init();
ConnectionListModel *getConnectionListModel()
{
return m_connectionListModel;
}
void showConnectionManager();
void openWindowForConnection(int connection_index);
signals:
public slots:
private:
ConnectionListModel *m_connectionListModel = nullptr;
ConnectionManagerWindow *m_connectionManagerWindow = nullptr;
};
#endif // MASTERCONTROLLER_H