checkVersion.h 908 Bytes
//*****************************************************************
/*
VLibras: Verificação de atualização


Ezequiel Silva
ezequielsilva@lavid.ufpb.br
VLibras-Core
2015
*/
//*****************************************************************

/**
* \file checkVersion.h
* \Ezequiel Silva
* \date  Outubro 2015
*/



#include <tchar.h>
#include <iostream>
#include <string>
#include <fstream>
#include <urlmon.h>

#pragma comment(lib, "urlmon.lib")
using namespace std;

  class CheckVersion
{

private:
	void checkLocal();
	void checkApi();
	void reset();
public:
	long playerVersion = -1;
  	long dictVersion = -1;
  	long localPlayerVersion = -1;
  	long localDictVersion = -1;
  	string playerVersionFull = "";
  	string dictVersionFull = "";
  	string playerUrl = "";
  	string dictUrl = "";
  	string dictCallVersion ="0.0.0_0.0.0";
  	int vstatus = -1;

	CheckVersion();
	void checkRefresh();
	
	
};