progressnotifier_proxy.cpp
Go to the documentation of this file.
1 #include <qicore/file.hpp>
2 #include <qi/anymodule.hpp>
3 
4 namespace qi
5 {
6 class ProgressNotifierProxy : public ProgressNotifier, public qi::Proxy
7 {
8 public:
9  explicit ProgressNotifierProxy(qi::AnyObject obj)
10  : qi::Proxy(std::move(obj))
11  {
12  }
13 
14  void reset() override
15  {
16  _obj.call<void>("reset");
17  }
18 
19  void notifyRunning() override
20  {
21  _obj.call<void>("notifyRunning");
22  }
23 
24  void notifyFinished() override
25  {
26  _obj.call<void>("notifyFinished");
27  }
28 
29  void notifyCanceled() override
30  {
31  _obj.call<void>("notifyCanceled");
32  }
33 
34  void notifyFailed() override
35  {
36  _obj.call<void>("notifyFailed");
37  }
38 
39  void notifyProgressed(double newProgress) override
40  {
41  _obj.call<void>("notifyProgressed", newProgress);
42  }
43 
44  bool isRunning() const override
45  {
46  return _obj.call<bool>("isRunning");
47  }
48 
49  Future<void> waitForFinished() override
50  {
51  return _obj.async<void>("waitForFinished");
52  }
53 
54  // Deprecated members:
55  void _reset() override
56  {
57  _obj.call<void>("_reset");
58  }
59 
60  void _notifyRunning() override
61  {
62  _obj.call<void>("_notifyRunning");
63  }
64 
65  void _notifyFinished() override
66  {
67  _obj.call<void>("_notifyFinished");
68  }
69 
70  void _notifyCanceled() override
71  {
72  _obj.call<void>("_notifyCanceled");
73  }
74 
75  void _notifyFailed() override
76  {
77  _obj.call<void>("_notifyFailed");
78  }
79 
80  void _notifyProgressed(double newProgress) override
81  {
82  _obj.call<void>("_notifyProgressed", newProgress);
83  }
84 
85 };
86 
88 {
89  ::qi::registerProxyInterface<ProgressNotifierProxy, ProgressNotifier>();
90 }
91 }
qi::ProgressNotifierProxy::_notifyFinished
void _notifyFinished() override
Definition: progressnotifier_proxy.cpp:65
qi::ProgressNotifierProxy::waitForFinished
Future< void > waitForFinished() override
Definition: progressnotifier_proxy.cpp:49
qi::ProgressNotifierProxy
Definition: progressnotifier_proxy.cpp:6
qi::ProgressNotifierProxy::reset
void reset() override
Definition: progressnotifier_proxy.cpp:14
qi::_qiregisterProgressNotifierProxy
void _qiregisterProgressNotifierProxy()
Definition: progressnotifier_proxy.cpp:87
qi::ProgressNotifierProxy::_notifyCanceled
void _notifyCanceled() override
Definition: progressnotifier_proxy.cpp:70
qi::ProgressNotifierProxy::_notifyFailed
void _notifyFailed() override
Definition: progressnotifier_proxy.cpp:75
qi::ProgressNotifierProxy::isRunning
bool isRunning() const override
Definition: progressnotifier_proxy.cpp:44
file.hpp
qi::ProgressNotifier
Definition: file.hpp:26
qi::ProgressNotifierProxy::_notifyRunning
void _notifyRunning() override
Definition: progressnotifier_proxy.cpp:60
qi::ProgressNotifierProxy::notifyFailed
void notifyFailed() override
Definition: progressnotifier_proxy.cpp:34
qi::ProgressNotifierProxy::notifyRunning
void notifyRunning() override
Definition: progressnotifier_proxy.cpp:19
qi
Definition: file.hpp:21
qi::ProgressNotifierProxy::_notifyProgressed
void _notifyProgressed(double newProgress) override
Definition: progressnotifier_proxy.cpp:80
qi::ProgressNotifierProxy::notifyProgressed
void notifyProgressed(double newProgress) override
Definition: progressnotifier_proxy.cpp:39
qi::ProgressNotifierProxy::ProgressNotifierProxy
ProgressNotifierProxy(qi::AnyObject obj)
Definition: progressnotifier_proxy.cpp:9
qi::ProgressNotifierProxy::notifyFinished
void notifyFinished() override
Definition: progressnotifier_proxy.cpp:24
qi::ProgressNotifierProxy::notifyCanceled
void notifyCanceled() override
Definition: progressnotifier_proxy.cpp:29
qi::ProgressNotifierProxy::_reset
void _reset() override
Definition: progressnotifier_proxy.cpp:55


naoqi_libqicore
Author(s): Aldebaran
autogenerated on Wed Sep 14 2022 02:22:41