Utilities
Utilities header only library
UProgress.h
1 /*
2  Copyright (C) Skeletex Research, s.r.o. - All Rights Reserved
3  Unauthorized copying of this file, via any medium is strictly prohibited
4  Proprietary and confidential
5 */
6 #ifndef UTILS_UPROGRESS_H
7 #define UTILS_UPROGRESS_H
8 #include <functional>
9 #include <Utils/API.h>
10 
11 namespace uprogress
12 {
14  UTILS_API void Reset(bool percentage_enabled = true);
15 
17  UTILS_API bool IsEnabled();
18 
20  UTILS_API void Set(float percentage_value);
21 
23  UTILS_API float Get();
24 
26  UTILS_API void Add(float percentage_increment);
27 
29  UTILS_API void Subscribe(std::function<void()> subscriber, const std::string &id = "default");
30 
32  UTILS_API void UnSubscribe(const std::string &id);
33 
35  UTILS_API void UnSubscribeAll();
36 }
37 
38 #endif /* !UTILS_UPROGRESS_H */
Definition: UProgress.h:11