|
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
|
2 /* vim:set ts=2 sw=2 sts=2 et cindent: */ |
|
3 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
4 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
6 |
|
7 #ifndef PROGRESSUI_H__ |
|
8 #define PROGRESSUI_H__ |
|
9 |
|
10 #include "updatedefines.h" |
|
11 |
|
12 #if defined(XP_WIN) |
|
13 typedef WCHAR NS_tchar; |
|
14 #define NS_main wmain |
|
15 #else |
|
16 typedef char NS_tchar; |
|
17 #define NS_main main |
|
18 #endif |
|
19 |
|
20 // Called to perform any initialization of the widget toolkit |
|
21 int InitProgressUI(int *argc, NS_tchar ***argv); |
|
22 |
|
23 #if defined(XP_WIN) |
|
24 // Called on the main thread at startup |
|
25 int ShowProgressUI(bool indeterminate = false, bool initUIStrings = true); |
|
26 int InitProgressUIStrings(); |
|
27 #else |
|
28 // Called on the main thread at startup |
|
29 int ShowProgressUI(); |
|
30 #endif |
|
31 // May be called from any thread |
|
32 void QuitProgressUI(); |
|
33 |
|
34 // May be called from any thread: progress is a number between 0 and 100 |
|
35 void UpdateProgressUI(float progress); |
|
36 |
|
37 #endif // PROGRESSUI_H__ |