5 #ifndef ICE_CONNECTION_ASYNC_H
6 #define ICE_CONNECTION_ASYNC_H
8 #ifndef ICE_CPP11_MAPPING
23 class CallbackNC_Connection_flushBatchRequests :
public Callback_Connection_flushBatchRequests_Base,
24 public ::IceInternal::OnewayCallbackNC<T>
31 typedef void (T::*Sent)(bool);
33 CallbackNC_Connection_flushBatchRequests(
const TPtr& obj,
Exception excb, Sent sentcb)
34 : ::IceInternal::OnewayCallbackNC<T>(obj, 0, excb, sentcb)
39 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
41 ::Ice::ConnectionPtr connection = result->getConnection();
45 connection->end_flushBatchRequests(result);
50 ::IceInternal::CallbackNC<T>::exception(result, ex);
64 template<
class T> Callback_Connection_flushBatchRequestsPtr
67 void (T::*sentcb)(
bool) = 0)
69 return new CallbackNC_Connection_flushBatchRequests<T>(instance, excb, sentcb);
80 template<
class T> Callback_Connection_flushBatchRequestsPtr
82 void (T::*sentcb)(
bool) = 0)
84 return new CallbackNC_Connection_flushBatchRequests<T>(instance, excb, sentcb);
93 template<
class T,
typename CT>
94 class Callback_Connection_flushBatchRequests :
public Callback_Connection_flushBatchRequests_Base,
95 public ::IceInternal::OnewayCallback<T, CT>
102 typedef void (T::*Sent)(bool ,
const CT&);
104 Callback_Connection_flushBatchRequests(
const TPtr& obj,
Exception excb, Sent sentcb)
105 : ::IceInternal::OnewayCallback<T, CT>(obj, 0, excb, sentcb)
110 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
112 ::Ice::ConnectionPtr connection = result->getConnection();
116 connection->end_flushBatchRequests(result);
121 ::IceInternal::Callback<T, CT>::exception(result, ex);
135 template<
class T,
typename CT> Callback_Connection_flushBatchRequestsPtr
138 void (T::*sentcb)(
bool,
const CT&) = 0)
140 return new Callback_Connection_flushBatchRequests<T, CT>(instance, excb, sentcb);
151 template<
class T,
typename CT> Callback_Connection_flushBatchRequestsPtr
152 newCallback_Connection_flushBatchRequests(T* instance,
void (T::*excb)(
const ::Ice::Exception&,
const CT&),
153 void (T::*sentcb)(
bool,
const CT&) = 0)
155 return new Callback_Connection_flushBatchRequests<T, CT>(instance, excb, sentcb);
165 class CallbackNC_Connection_heartbeat :
public Callback_Connection_heartbeat_Base,
166 public ::IceInternal::OnewayCallbackNC<T>
173 typedef void (T::*Sent)(bool);
175 CallbackNC_Connection_heartbeat(
const TPtr& obj,
Exception excb, Sent sentcb)
176 : ::IceInternal::OnewayCallbackNC<T>(obj, 0, excb, sentcb)
181 virtual void completed(const ::Ice::AsyncResultPtr& __result)
const
183 ::Ice::ConnectionPtr __con = __result->getConnection();
187 __con->end_heartbeat(__result);
192 ::IceInternal::CallbackNC<T>::exception(__result, ex);
206 template<
class T> Callback_Connection_heartbeatPtr
209 void (T::*sentcb)(
bool) = 0)
211 return new CallbackNC_Connection_heartbeat<T>(instance, excb, sentcb);
222 template<
class T> Callback_Connection_heartbeatPtr
223 newCallback_Connection_heartbeat(T* instance,
void (T::*excb)(
const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
225 return new CallbackNC_Connection_heartbeat<T>(instance, excb, sentcb);
234 template<
class T,
typename CT>
235 class Callback_Connection_heartbeat :
public Callback_Connection_heartbeat_Base,
236 public ::IceInternal::OnewayCallback<T, CT>
243 typedef void (T::*Sent)(bool ,
const CT&);
245 Callback_Connection_heartbeat(
const TPtr& obj,
Exception excb, Sent sentcb)
246 : ::IceInternal::OnewayCallback<T, CT>(obj, 0, excb, sentcb)
251 virtual void completed(const ::Ice::AsyncResultPtr& __result)
const
253 ::Ice::ConnectionPtr __con = __result->getConnection();
257 __con->end_heartbeat(__result);
262 ::IceInternal::Callback<T, CT>::exception(__result, ex);
276 template<
class T,
typename CT> Callback_Connection_heartbeatPtr
279 void (T::*sentcb)(
bool,
const CT&) = 0)
281 return new Callback_Connection_heartbeat<T, CT>(instance, excb, sentcb);
292 template<
class T,
typename CT> Callback_Connection_heartbeatPtr
294 void (T::*sentcb)(
bool,
const CT&) = 0)
296 return new Callback_Connection_heartbeat<T, CT>(instance, excb, sentcb);