2015-04-28 16:00:51 +00:00
|
|
|
|
#ifndef HIKVISIONLOGIN_H
|
|
|
|
|
#define HIKVISIONLOGIN_H
|
|
|
|
|
|
|
|
|
|
#include "STh.h"
|
|
|
|
|
#include "mainResources.h"
|
|
|
|
|
|
|
|
|
|
class HikVis {
|
|
|
|
|
public: static bool isInitialized;
|
|
|
|
|
|
|
|
|
|
private: lopaStr hikLogin(const char * sDVRIP, int wDVRPort);
|
2015-08-07 22:37:28 +00:00
|
|
|
|
lopaStr rviLogin(const char * sDVRIP, int wDVRPort);
|
2015-04-28 16:00:51 +00:00
|
|
|
|
|
2015-08-09 11:22:02 +00:00
|
|
|
|
public:
|
|
|
|
|
static int hikCounter;
|
|
|
|
|
static int rviCounter;
|
|
|
|
|
static int hikPart;
|
|
|
|
|
static int rviPart;
|
2015-04-28 16:00:51 +00:00
|
|
|
|
public:
|
2015-08-07 22:37:28 +00:00
|
|
|
|
static bool checkHikk(const char * sDVRIP, int port);
|
|
|
|
|
static bool checkRVI(const char * sDVRIP, int port);
|
|
|
|
|
static bool checkSAFARI(const char * sDVRIP, int port);
|
2015-04-28 16:00:51 +00:00
|
|
|
|
void hikInit();
|
|
|
|
|
void hikCleanup();
|
|
|
|
|
lopaStr HVLobby(const char *ip, const int port);
|
2015-08-07 22:37:28 +00:00
|
|
|
|
lopaStr RVILobby(const char *ip, const int port);
|
2015-04-28 16:00:51 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // UTILS_H
|