desarrollosconsejeria/siaticControl/3.3-13/SIATICControl/mainwindow.h @ 29401061
29401061 | Elisa | #ifndef MAINWINDOW_H
|
|
#define MAINWINDOW_H
|
|||
#include <QMainWindow>
|
|||
#include <redrelaylibrary.h>
|
|||
#include <relayportdefinitions.h>
|
|||
#include <optomaprojectormanagement.h>
|
|||
#include <dlinkpasswordgen.h>
|
|||
#include <actualizarrouter.h>
|
|||
#include <QProgressDialog>
|
|||
namespace Ui {
|
|||
class MainWindow;
|
|||
}
|
|||
class MainWindow : public QMainWindow
|
|||
{
|
|||
Q_OBJECT
|
|||
public:
|
|||
explicit MainWindow(QWidget *parent = 0);
|
|||
~MainWindow();
|
|||
signals:
|
|||
void turnOffSignal();
|
|||
void turnOnSignal();
|
|||
void updateDevicesSignal();
|
|||
private slots:
|
|||
void isAliveResponse(bool alive);
|
|||
void onRouterWifiSSIDResponse(QString SSID);
|
|||
void onRouterWifiPassResponse(QString Pass);
|
|||
void onRouterWifiStateResponse(bool estado);
|
|||
void turnOffProjector();
|
|||
void turnOnProjector();
|
|||
void projectorStatusReceived(bool Status);
|
|||
void on_audioSwitch_clicked();
|
|||
void on_wifiSwitch_clicked();
|
|||
void on_upHSwitch_pressed();
|
|||
void on_upHSwitch_released();
|
|||
void on_downHSwitch_pressed();
|
|||
void on_downHSwitch_released();
|
|||
void on_volUp_clicked();
|
|||
void on_volDown_clicked();
|
|||
void on_safeProjectorSwitch_clicked();
|
|||
void on_shutdownEverything_clicked();
|
|||
void updateDevicesSlot();
|
|||
// void on_pushButton_clicked();
|
|||
void on_videoFreezeButton_clicked();
|
|||
void on_videoUnfreezeButton_clicked();
|
|||
void IntentarConectar();
|
|||
void on_genClave_clicked();
|
|||
void on_checkBox_stateChanged(int arg1);
|
|||
private:
|
|||
// Properties
|
|||
DLinkPasswordGen *dlinkPwdGen;
|
|||
RedRelayLibrary *redRelayDevice;
|
|||
OptomaProjectorManagement *projectorManagement;
|
|||
Ui::MainWindow *ui;
|
|||
int LastPWRStatusRequest = -1;
|
|||
bool alreadySetPWD = false;
|
|||
bool freze=false;
|
|||
QTimer Conectando;
|
|||
int volumen = 50;
|
|||
int IMPOSIBLE=10;
|
|||
QTime *CONTADOR;
|
|||
QProgressDialog *msg = NULL;
|
|||
// Methods
|
|||
QString getLabelForState(bool State);
|
|||
void disableRelayButtons();
|
|||
void switchSafely(bool PWRStatus);
|
|||
void centerText();
|
|||
void updateDevicesState();
|
|||
void setWifiSwitchState(bool State);
|
|||
void setProjectorSwitchState(bool State);
|
|||
void setSoundSwitchState(bool State);
|
|||
void setHeightSwitchState(bool State);
|
|||
void updateUiProjectorPWRState(bool State);
|
|||
void motorSwitch();
|
|||
void notificacionEspera(bool Activar);
|
|||
void resizeEvent(QResizeEvent *event);
|
|||
};
|
|||
#endif // MAINWINDOW_H
|