libroot/posix/stdio: Remove unused portions.
[haiku.git] / src / apps / mail / MessageStatus.cpp
blob6202b73cf03a4d6533fe8d6a8bb389d7be78d6a2
1 /*
2 * Copyright 2010 Haiku Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Jonas Sundström, jonas@kirilla.com
7 */
10 #include "MessageStatus.h"
13 MessageStatus::MessageStatus()
15 fStatus(MAIL_WRITING)
21 MessageStatus::~MessageStatus()
27 void
28 MessageStatus::SetStatus(messageStatus status)
30 fStatus = status;
34 messageStatus
35 MessageStatus::Status()
37 return fStatus;
41 bool
42 MessageStatus::Reading()
44 return fStatus == MAIL_READING;
48 bool
49 MessageStatus::Writing()
51 return fStatus == MAIL_WRITING;
55 bool
56 MessageStatus::WritingDraft()
58 return fStatus == MAIL_WRITING_DRAFT;
62 bool
63 MessageStatus::Replying()
65 return fStatus == MAIL_REPLYING;
69 bool
70 MessageStatus::Forwarding()
72 return fStatus == MAIL_FORWARDING;
76 bool
77 MessageStatus::Outgoing()
79 return (fStatus == MAIL_WRITING
80 || fStatus == MAIL_WRITING_DRAFT
81 || fStatus == MAIL_REPLYING
82 || fStatus == MAIL_FORWARDING);
86 bool
87 MessageStatus::MailIsOnDisk()
89 return (fStatus == MAIL_READING
90 || fStatus == MAIL_WRITING_DRAFT
91 || fStatus == MAIL_REPLYING
92 || fStatus == MAIL_FORWARDING);