desarrollosconsejeria/siaticControl/3.3-13/Siatic_d/siaticsessionmanager.h @ 29401061
29401061 | Elisa | #ifndef SIATICSESSIONMANAGER_H
|
|
#define SIATICSESSIONMANAGER_H
|
|||
#include <QObject>
|
|||
#include <QCoreApplication>
|
|||
#include <QDebug>
|
|||
#include <stdlib.h>
|
|||
#include <stdio.h>
|
|||
#include <time.h>
|
|||
#include <cstring>
|
|||
#include <csignal>
|
|||
#include <fstream>
|
|||
#include <iostream>
|
|||
#include <unistd.h>
|
|||
#include <globales.h>
|
|||
#include "qsshsocket.h"
|
|||
#include "dlinkpasswordgen.h"
|
|||
#include "redrelaylibrary.h"
|
|||
#include "rs232.h"
|
|||
#include <QProcess>
|
|||
#include <QTimer>
|
|||
#define ROUTER_CONNECT_TIMEOUT 5000
|
|||
using namespace std;
|
|||
using std::ofstream;
|
|||
class SiaticSessionManager : public QObject
|
|||
{
|
|||
Q_OBJECT
|
|||
public:
|
|||
explicit SiaticSessionManager(char argChar, QObject *parent = 0);
|
|||
void init();
|
|||
signals:
|
|||
void finished();
|
|||
private slots:
|
|||
void onLoginSuccess();
|
|||
void IntentarConectar();
|
|||
private:
|
|||
/* Atributos*/
|
|||
int REINTENTOS=0;
|
|||
Globales opciones;
|
|||
//SettingsSIATIC opciones;
|
|||
DLinkPasswordGen *sesion;
|
|||
int SALIR=1;
|
|||
int contador=0;
|
|||
char argChar=' ';
|
|||
QTimer Conectando;
|
|||
/* Metodos*/
|
|||
void estadoWifi(int estado, bool fin);
|
|||
void estadoRele(int estado);
|
|||
void estadoProyector(int estado);
|
|||
void procesarOpciones(bool fin);
|
|||
public slots:
|
|||
};
|
|||
#endif // SIATICSESSIONMANAGER_H
|