2 * Copyright 2010 Haiku Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
6 * Jonas Sundström, jonas@kirilla.com
10 #include "MessageStatus.h"
13 MessageStatus::MessageStatus()
21 MessageStatus::~MessageStatus()
28 MessageStatus::SetStatus(messageStatus status
)
35 MessageStatus::Status()
42 MessageStatus::Reading()
44 return fStatus
== MAIL_READING
;
49 MessageStatus::Writing()
51 return fStatus
== MAIL_WRITING
;
56 MessageStatus::WritingDraft()
58 return fStatus
== MAIL_WRITING_DRAFT
;
63 MessageStatus::Replying()
65 return fStatus
== MAIL_REPLYING
;
70 MessageStatus::Forwarding()
72 return fStatus
== MAIL_FORWARDING
;
77 MessageStatus::Outgoing()
79 return (fStatus
== MAIL_WRITING
80 || fStatus
== MAIL_WRITING_DRAFT
81 || fStatus
== MAIL_REPLYING
82 || fStatus
== MAIL_FORWARDING
);
87 MessageStatus::MailIsOnDisk()
89 return (fStatus
== MAIL_READING
90 || fStatus
== MAIL_WRITING_DRAFT
91 || fStatus
== MAIL_REPLYING
92 || fStatus
== MAIL_FORWARDING
);