michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* vim:set ts=2 sw=2 sts=2 et cindent: */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef PROGRESSUI_H__ michael@0: #define PROGRESSUI_H__ michael@0: michael@0: #include "updatedefines.h" michael@0: michael@0: #if defined(XP_WIN) michael@0: typedef WCHAR NS_tchar; michael@0: #define NS_main wmain michael@0: #else michael@0: typedef char NS_tchar; michael@0: #define NS_main main michael@0: #endif michael@0: michael@0: // Called to perform any initialization of the widget toolkit michael@0: int InitProgressUI(int *argc, NS_tchar ***argv); michael@0: michael@0: #if defined(XP_WIN) michael@0: // Called on the main thread at startup michael@0: int ShowProgressUI(bool indeterminate = false, bool initUIStrings = true); michael@0: int InitProgressUIStrings(); michael@0: #else michael@0: // Called on the main thread at startup michael@0: int ShowProgressUI(); michael@0: #endif michael@0: // May be called from any thread michael@0: void QuitProgressUI(); michael@0: michael@0: // May be called from any thread: progress is a number between 0 and 100 michael@0: void UpdateProgressUI(float progress); michael@0: michael@0: #endif // PROGRESSUI_H__