toolkit/mozapps/update/updater/progressui.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/mozapps/update/updater/progressui.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,37 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* vim:set ts=2 sw=2 sts=2 et cindent: */
     1.6 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +#ifndef PROGRESSUI_H__
    1.11 +#define PROGRESSUI_H__
    1.12 +
    1.13 +#include "updatedefines.h"
    1.14 +
    1.15 +#if defined(XP_WIN)
    1.16 +  typedef WCHAR NS_tchar;
    1.17 +  #define NS_main wmain
    1.18 +#else
    1.19 +  typedef char NS_tchar;
    1.20 +  #define NS_main main
    1.21 +#endif
    1.22 +
    1.23 +// Called to perform any initialization of the widget toolkit
    1.24 +int InitProgressUI(int *argc, NS_tchar ***argv);
    1.25 +
    1.26 +#if defined(XP_WIN)
    1.27 +  // Called on the main thread at startup
    1.28 +  int ShowProgressUI(bool indeterminate = false, bool initUIStrings = true);
    1.29 +  int InitProgressUIStrings();
    1.30 +#else
    1.31 +  // Called on the main thread at startup
    1.32 +  int ShowProgressUI();
    1.33 +#endif
    1.34 +// May be called from any thread
    1.35 +void QuitProgressUI();
    1.36 +
    1.37 +// May be called from any thread: progress is a number between 0 and 100
    1.38 +void UpdateProgressUI(float progress);
    1.39 +
    1.40 +#endif  // PROGRESSUI_H__

mercurial