vfs: check userland buffers before reading them.
[haiku.git] / src / tests / kits / app / bmessenger / SMLooper.h
blob9144e85a5d0657467f4c1c4443ec7419620631a0
1 // SMLooper.h
3 #ifndef SM_LOOPER_H
4 #define SM_LOOPER_H
6 #include <Handler.h>
7 #include <Looper.h>
9 class SMLooper : public BLooper {
10 public:
11 SMLooper();
12 virtual ~SMLooper();
14 virtual void MessageReceived(BMessage *message);
16 void BlockUntil(bigtime_t unblockTime);
18 void SetReplyDelay(bigtime_t replyDelay);
19 bigtime_t ReplyDelay() const;
21 bool DeliverySuccess() const;
22 void SetDeliveryTime(bigtime_t deliveryTime);
23 bigtime_t DeliveryTime() const;
25 bool ReplySuccess() const;
26 void SetReplyTime(bigtime_t replyTime);
27 bigtime_t ReplyTime() const;
29 private:
30 bigtime_t fUnblockTime;
31 bigtime_t fReplyDelay;
32 bigtime_t fDeliveryTime;
33 bigtime_t fReplyTime;
36 class SMHandler : public BHandler {
37 public:
38 SMHandler();
40 virtual void MessageReceived(BMessage *message);
43 #endif // SM_LOOPER_H