xref: /haiku/src/apps/mail/MessageStatus.h (revision 21258e2674226d6aa732321b6f8494841895af5f)
1 /*
2  * Copyright 2010 Haiku Inc. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Jonas Sundström, jonas@kirilla.com
7  */
8 #ifndef _MESSAGE_STATUS_H
9 #define _MESSAGE_STATUS_H
10 
11 
12 #include <SupportDefs.h>
13 
14 
15 enum messageStatus {
16 	MAIL_READING = 0,
17 	MAIL_WRITING,
18 	MAIL_WRITING_DRAFT,
19 	MAIL_REPLYING,
20 	MAIL_FORWARDING
21 };
22 
23 
24 class MessageStatus {
25 public:
26 							MessageStatus();
27 							~MessageStatus();
28 
29 			void			SetStatus(messageStatus status);
30 			messageStatus	Status();
31 
32 			bool			Reading();
33 			bool			Writing();
34 			bool			WritingDraft();
35 			bool			Replying();
36 			bool			Forwarding();
37 
38 			bool			Outgoing();
39 
40 			bool			MailIsOnDisk();
41 
42 private:
43 			messageStatus	fStatus;
44 };
45 
46 
47 #endif	// _MESSAGE_STATUS_H
48 
49