13 virtual status_t
Invoke(BMessenger
&target
, BHandler
*replyHandler
,
14 BMessenger
&replyMessenger
) = 0;
20 BMessage
*fReplyMessage
;
23 // Invoker for SendMessage(uint32, BHandler *)
24 class SMInvoker1
: public SMInvoker
{
26 SMInvoker1(bool useReplyTo
);
28 virtual status_t
Invoke(BMessenger
&target
, BHandler
*replyHandler
,
29 BMessenger
&replyMessenger
);
35 // Invoker for SendMessage(BMessage *, BHandler *, bigtime_t)
36 class SMInvoker2
: public SMInvoker
{
38 SMInvoker2(bool useMessage
, bool useReplyTo
, bigtime_t timeout
);
40 virtual status_t
Invoke(BMessenger
&target
, BHandler
*replyHandler
,
41 BMessenger
&replyMessenger
);
49 // Invoker for SendMessage(BMessage *, BMessenger, bigtime_t)
50 class SMInvoker3
: public SMInvoker
{
52 SMInvoker3(bool useMessage
, bool useReplyTo
, bigtime_t timeout
);
54 virtual status_t
Invoke(BMessenger
&target
, BHandler
*replyHandler
,
55 BMessenger
&replyMessenger
);
63 // Invoker for SendMessage(uint32, BMessage *)
64 class SMInvoker4
: public SMInvoker
{
66 SMInvoker4(bool useReply
);
68 virtual status_t
Invoke(BMessenger
&target
, BHandler
*replyHandler
,
69 BMessenger
&replyMessenger
);
75 // Invoker for SendMessage(BMessage *, BMessage *, bigtime_t, bigtime_t)
76 class SMInvoker5
: public SMInvoker
{
78 SMInvoker5(bool useMessage
, bool useReply
, bigtime_t deliveryTimeout
,
79 bigtime_t replyTimeout
);
81 virtual status_t
Invoke(BMessenger
&target
, BHandler
*replyHandler
,
82 BMessenger
&replyMessenger
);
87 bigtime_t fDeliveryTimeout
;
88 bigtime_t fReplyTimeout
;
91 #endif // SM_INVOKER_H