2 Copyright (c) 2009 Constantin Berzan <exit3219@gmail.com>
4 This library is free software; you can redistribute it and/or modify it
5 under the terms of the GNU Library General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or (at your
7 option) any later version.
9 This library is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12 License for more details.
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to the
16 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20 #error "This file belongs in the crypto composer, not here. Move it."
22 #ifndef MESSAGECOMPOSER_FINALMESSAGE_H
23 #define MESSAGECOMPOSER_FINALMESSAGE_H
25 #include "messagecomposer_export.h"
27 #include <QtCore/QList>
28 #include <QtCore/QStringList>
30 #include <kmime/kmime_message.h>
31 #include <boost/shared_ptr.hpp>
36 class ComposerPrivate
;
40 class MESSAGECOMPOSER_EXPORT FinalMessage
43 typedef QList
<FinalMessage
*> List
;
45 KMime::Message::Ptr
message() const;
46 int transportId() const;
47 bool hasCustomHeaders() const;
49 QStringList
to() const;
50 QStringList
cc() const;
51 QStringList
bcc() const;
54 // Only used by our friend the Composer.
55 friend class Composer
;
56 friend class ComposerPrivate
; // FIXME better ideas?
57 explicit FinalMessage( KMime::Message
*message
= 0 );
58 virtual ~FinalMessage();