diff options
Diffstat (limited to 'cpp/include/Ice/AsyncResult.h')
-rw-r--r-- | cpp/include/Ice/AsyncResult.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cpp/include/Ice/AsyncResult.h b/cpp/include/Ice/AsyncResult.h index e2c1d53d53b..639a44ed278 100644 --- a/cpp/include/Ice/AsyncResult.h +++ b/cpp/include/Ice/AsyncResult.h @@ -62,6 +62,16 @@ public: static void check(const AsyncResultPtr&, const Connection*, const ::std::string&); static void check(const AsyncResultPtr&, const Communicator*, const ::std::string&); + class Callback : public IceUtil::Shared + { + public: + + virtual void run() = 0; + }; + typedef IceUtil::Handle<Callback> CallbackPtr; + + virtual void scheduleCallback(const CallbackPtr&) = 0; + protected: static void check(const AsyncResultPtr&, const ::std::string&); |