LibreOffice Module onlineupdate (master) 1
progressui.h
Go to the documentation of this file.
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#include "types.hxx"
12
13#if defined(_WIN32)
14#define NS_main wmain
15#else
16#define NS_main main
17#endif
18
19// Called to perform any initialization of the widget toolkit
20int InitProgressUI(int* argc, NS_tchar*** argv);
21
22#if defined(_WIN32)
23// Called on the main thread at startup
24int ShowProgressUI(bool indeterminate = false, bool initUIStrings = true);
25int InitProgressUIStrings();
26#else
27// Called on the main thread at startup
28int ShowProgressUI();
29#endif
30// May be called from any thread
31void QuitProgressUI();
32
33// May be called from any thread: progress is a number between 0 and 100
34void UpdateProgressUI(float progress);
35
36#endif // PROGRESSUI_H__
int ShowProgressUI()
void QuitProgressUI()
void UpdateProgressUI(float progress)
int InitProgressUI(int *argc, NS_tchar ***argv)
char NS_tchar
Definition: types.hxx:20