AuboStudio SDK  0.6.3
popup_manager.h
浏览该文件的文档.
1#ifndef AUBO_SCOPE_POPUP_MANAGER_H
2#define AUBO_SCOPE_POPUP_MANAGER_H
3
4#include <functional>
5
7
8namespace arcs {
9namespace aubo_scope {
10
11template <typename Type>
13
15
17{
18public:
21 virtual ~PopupManager();
22
23 // 增加弹窗计数。应在受管理的弹窗显示时调用。
25
26 // 减少弹窗计数。应在受管理的弹窗隐藏或关闭时调用。
28
29 // 返回当前跟踪的弹窗数量。
30 int popupCount() const;
31
32 // 返回当前弹窗数量是否为 0。
33 bool isPopupCountZero() const;
34
35 // 设置弹窗数量变化时的回调。参数 is_zero==true 表示当前数量为 0。
36 void setPopupCountChangedCallback(std::function<void(bool)> callback);
37
38private:
41 void *d_{ nullptr };
42};
43
44} // namespace aubo_scope
45} // namespace arcs
46
47#endif // AUBO_SCOPE_POPUP_MANAGER_H
#define ARCS_ABI_EXPORT
#define ARCS_CLASS_FORWARD(C)
Macro that forward declares a class and defines the respective smartpointers through ARCS_DECLARE_PTR...
PopupManager(PopupManager &&f)
void setPopupCountChangedCallback(std::function< void(bool)> callback)