OLD | NEW |
1 #ifndef UPDATER_H | 1 #ifndef UPDATER_H |
2 #define UPDATER_H | 2 #define UPDATER_H |
3 | 3 |
4 #include <string> | 4 #include <string> |
5 #include <Windows.h> | 5 #include <Windows.h> |
6 #include <AdblockPlus/JsEngine.h> | 6 #include <AdblockPlus/JsEngine.h> |
7 | 7 |
8 class Updater | 8 class Updater |
9 { | 9 { |
10 public: | 10 public: |
11 Updater(AdblockPlus::JsEnginePtr jsEngine, const std::string& url); | 11 Updater(AdblockPlus::JsEnginePtr jsEngine); |
| 12 void SetUrl(const std::string& url); |
12 void Update(); | 13 void Update(); |
13 private: | 14 private: |
14 AdblockPlus::JsEnginePtr jsEngine; | 15 AdblockPlus::JsEnginePtr jsEngine; |
15 std::string url; | 16 std::string url; |
16 std::wstring tempFile; | 17 std::wstring tempFile; |
17 HWND dialog; | 18 HWND dialog; |
18 | 19 |
19 void Download(); | 20 void Download(); |
20 void OnDownloadSuccess(); | 21 void OnDownloadSuccess(); |
21 }; | 22 }; |
22 | 23 |
23 #endif // UPDATER_H | 24 #endif // UPDATER_H |
OLD | NEW |