7 #include <qi/macro.hpp>
8 #include <qi/anymodule.hpp>
34 <<
"ProgressNotifier must be Idle to be allowed to switch to Running status.";
43 <<
"ProgressNotifier must be Running to be allowed to switch to Finished status.";
52 <<
"ProgressNotifier must be Running to be allowed to switch to Canceled status.";
60 <<
"ProgressNotifier must be Running to be allowed to switch to Failed status.";
68 <<
"ProgressNotifier must be Running to be allowed to notify any progress.";
119 ::qi::ObjectTypeBuilder<ProgressNotifier> builder;
133 QI_WARNING_DISABLE(4996, deprecated-declarations)
142 builder.registerType();
145 qi::detail::ForceProxyInclusion<ProgressNotifier>().dummyCall();
149 intptr_t offset =
reinterpret_cast<intptr_t
>(pptr)-
reinterpret_cast<intptr_t
>(ptr);
152 qiLogError(
"qitype.register") <<
"non-zero offset for implementation ProgressNotifierImpl of ProgressNotifier,"
153 "call will fail at runtime";
154 throw std::runtime_error(
"non-zero offset between implementation and interface");
162 return boost::make_shared<ProgressNotifierImpl>(std::move(operationFuture));