Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: src/engine/Updater.h

Issue 11304082: Download updates automatically, ask to install from a modeless dialog (Closed)
Patch Set: Calculate sizes dynamically Created Aug. 2, 2013, 10:47 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/engine/UpdateInstallDialog.cpp ('k') | src/engine/Updater.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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, const std::string& url);
12 void Update(); 12 void Update();
13 private: 13 private:
14 AdblockPlus::JsEnginePtr jsEngine; 14 AdblockPlus::JsEnginePtr jsEngine;
15 std::string url; 15 std::string url;
16 std::wstring tempFile; 16 std::wstring tempFile;
17 HWND dialog; 17 HWND dialog;
18 18
19 void StartDownload(HWND dialog); 19 void Download();
20 void RunDownload(); 20 void OnDownloadSuccess();
21 }; 21 };
22 22
23 #endif // UPDATER_H 23 #endif // UPDATER_H
OLDNEW
« no previous file with comments | « src/engine/UpdateInstallDialog.cpp ('k') | src/engine/Updater.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld