ZeroTierOne/ZeroTierUI/mainwindow.h
Adam Ierymenko bf02c6661a UI work...
2013-11-19 15:05:14 -05:00

41 lines
869 B
C++

#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "../node/Node.hpp"
#include "../node/Utils.hpp"
namespace Ui {
class MainWindow;
}
// Globally visible instance of local client for communicating with ZT1
// Can be null if not connected, or will point to current
extern ZeroTier::Node::LocalClient *volatile zeroTierClient;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
protected:
virtual void timerEvent(QTimerEvent *event);
private slots:
void on_joinNetworkButton_clicked();
void on_actionAbout_triggered();
void on_actionJoin_Network_triggered();
void on_actionShow_Detailed_Status_triggered();
void on_networkIdLineEdit_textChanged(const QString &arg1);
void on_statusAndAddressButton_clicked();
private:
Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H