4 #include <cppunit/TestAssert.h>
6 #include "SMReplyTarget.h"
10 SMReplyTarget::SMReplyTarget(bool preferred
)
14 // create looper and handler
15 fLooper
= new SMLooper
;
18 fHandler
= new SMHandler
;
20 fLooper
->AddHandler(fHandler
);
26 SMReplyTarget::~SMReplyTarget()
31 fLooper
->RemoveHandler(fHandler
);
40 SMReplyTarget::Handler()
47 SMReplyTarget::Messenger()
49 return BMessenger(fHandler
, fLooper
);
54 SMReplyTarget::ReplySuccess()
56 return fLooper
->ReplySuccess();