#ifndef MASTERCONTROLLER_H #define MASTERCONTROLLER_H #include #include class ConnectionConfig; class ConnectionList; 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(const MasterController&) = delete; MasterController &operator=(const MasterController&) = delete; ~MasterController(); void init(); ConnectionListModel *getConnectionListModel() { return m_connectionListModel; } void showConnectionManager(); void openSqlWindowForConnection(int connection_index); void openServerWindowForConnection(int connection_index); void openBackupDlgForConnection(int connection_index); signals: public slots: private: ConnectionList *m_connectionList = nullptr; ConnectionListModel *m_connectionListModel = nullptr; ConnectionManagerWindow *m_connectionManagerWindow = nullptr; }; #endif // MASTERCONTROLLER_H