2
This file is part of KDE.
4
Copyright (c) 2008 Cornelius Schumacher <schumacher@kde.org>
6
This library is free software; you can redistribute it and/or
7
modify it under the terms of the GNU Lesser General Public
8
License as published by the Free Software Foundation; either
9
version 2.1 of the License, or (at your option) version 3, or any
10
later version accepted by the membership of KDE e.V. (or its
11
successor approved by the membership of KDE e.V.), which shall
12
act as a proxy defined in Section 6 of version 3 of the license.
14
This library is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
Lesser General Public License for more details.
19
You should have received a copy of the GNU Lesser General Public
20
License along with this library. If not, see <http://www.gnu.org/licenses/>.
26
using namespace Attica;
28
class Message::Private : public QSharedData
50
Message::Message(const Message &other)
55
Message &Message::operator=(const Attica::Message &other)
65
void Message::setId(const QString &u)
70
QString Message::id() const
75
void Message::setFrom(const QString &n)
80
QString Message::from() const
85
void Message::setTo(const QString &n)
90
QString Message::to() const
95
void Message::setSent(const QDateTime &date)
100
QDateTime Message::sent() const
105
void Message::setStatus(Message::Status s)
110
Message::Status Message::status() const
115
void Message::setSubject(const QString &subject)
117
d->m_subject = subject;
120
QString Message::subject() const
125
void Message::setBody(const QString &body)
130
QString Message::body() const
135
bool Message::isValid() const
137
return !(d->m_id.isEmpty());