megamove
This commit is contained in:
parent
c2e201f813
commit
f51105bde0
114 changed files with 92 additions and 0 deletions
41
src/MasterController.h
Normal file
41
src/MasterController.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue