forked from kubernetes/minikube
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoperator.h
73 lines (64 loc) · 1.85 KB
/
operator.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#ifndef OPERATOR_H
#define OPERATOR_H
#include "advancedview.h"
#include "basicview.h"
#include "cluster.h"
#include "commandrunner.h"
#include "errormessage.h"
#include "progresswindow.h"
#include "tray.h"
#include "hyperkit.h"
#include "updater.h"
#include <QStackedWidget>
class Operator : public QObject
{
Q_OBJECT
public:
Operator(AdvancedView *advancedView, BasicView *basicView, CommandRunner *commandRunner,
ErrorMessage *errorMessage, ProgressWindow *progressWindow, Tray *tray,
HyperKit *hyperKit, Updater *updater, QStackedWidget *stackedWidget, QDialog *parent);
public slots:
void startMinikube();
void stopMinikube();
void pauseOrUnpauseMinikube();
void deleteMinikube();
private slots:
void commandStarting();
void commandEnding();
void commandOutput(QString text);
void commandError(QStringList args, QString text);
void cancelCommand();
void toBasicView();
void toAdvancedView();
void createCluster(QStringList args);
void updateButtons();
void clustersReceived(ClusterList clusterList);
void startCommandStarting();
private:
QStringList getCurrentClusterFlags();
void updateClusters();
QString selectedClusterName();
Cluster selectedCluster();
void sshConsole();
void dashboardBrowser();
void dashboardClose();
void pauseMinikube();
void unpauseMinikube();
void restoreWindow();
void hideWindow();
void disableButtons();
AdvancedView *m_advancedView;
BasicView *m_basicView;
CommandRunner *m_commandRunner;
ErrorMessage *m_errorMessage;
ProgressWindow *m_progressWindow;
ClusterList m_clusterList;
Tray *m_tray;
HyperKit *m_hyperKit;
Updater *m_updater;
bool m_isBasicView;
QProcess *dashboardProcess;
QStackedWidget *m_stackedWidget;
QDialog *m_parent;
};
#endif // OPERATOR_H