1// SMLooper.h
2
3#ifndef SM_LOOPER_H
4#define SM_LOOPER_H
5
6#include <Handler.h>
7#include <Looper.h>
8
9class SMLooper : public BLooper {
10public:
11	SMLooper();
12	virtual ~SMLooper();
13
14	virtual void MessageReceived(BMessage *message);
15
16	void BlockUntil(bigtime_t unblockTime);
17
18	void SetReplyDelay(bigtime_t replyDelay);
19	bigtime_t ReplyDelay() const;
20
21	bool DeliverySuccess() const;
22	void SetDeliveryTime(bigtime_t deliveryTime);
23	bigtime_t DeliveryTime() const;
24
25	bool ReplySuccess() const;
26	void SetReplyTime(bigtime_t replyTime);
27	bigtime_t ReplyTime() const;
28
29private:
30	bigtime_t	fUnblockTime;
31	bigtime_t	fReplyDelay;
32	bigtime_t	fDeliveryTime;
33	bigtime_t	fReplyTime;
34};
35
36class SMHandler : public BHandler {
37public:
38	SMHandler();
39
40	virtual void MessageReceived(BMessage *message);
41};
42
43#endif	// SM_LOOPER_H
44