util.h
1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#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);
};