util.h 1.02 KB
#using <System.dll>
#using <System.Xml.dll>
#using <System.IO.Compression.FileSystem.dll> 

#include <iostream>
#include <string>
#include <vector>


using namespace std;
using namespace System;
using namespace System::ComponentModel;
using namespace System::Net;
using namespace System::IO;
using namespace System::Xml;
using namespace System::Threading;
using namespace System::IO::Compression;







 public ref class  Util {

 	private:
 		static string clrStringTostring(String^ strIn);
 		static vector <string> localVersion(void);
 		
 	public:
 		static bool down;
 		static WebClient^ myWebClient;

 		Util();

 		bool downloading;
 		static bool saveNewXmlVersion(string playerVersion,string dictionaryVersion);
 	   static string Download(DownloadProgressChangedEventHandler^ dpch ,string url,  string fileName);
 	   static bool checkNet(void);
 	   static vector <string> checkVersion(bool atualize);
 	   static bool extractZip(string zipFile, string outPath);
 	   static bool backup(void);
 	   static bool restore(void);

 };