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 15enum messageStatus { 16 MAIL_READING = 0, 17 MAIL_WRITING, 18 MAIL_WRITING_DRAFT, 19 MAIL_REPLYING, 20 MAIL_FORWARDING 21}; 22 23 24class MessageStatus { 25public: 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 42private: 43 messageStatus fStatus; 44}; 45 46 47#endif // _MESSAGE_STATUS_H 48 49