This commit is contained in:
eelke 2017-02-11 08:08:50 +01:00
parent c2e201f813
commit f51105bde0
114 changed files with 92 additions and 0 deletions

41
src/MasterController.h Normal file
View file

@ -0,0 +1,41 @@
#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