Waste less space in nested layouts.
[kdepim.git] / messagecomposer / finalmessage.h
blob56ec48f68b8885c1287bf1fd8819d6f6bcd80db4
1 /*
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
17 02110-1301, USA.
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>
33 namespace Message {
35 class Composer;
36 class ComposerPrivate;
38 /**
40 class MESSAGECOMPOSER_EXPORT FinalMessage
42 public:
43 typedef QList<FinalMessage*> List;
45 KMime::Message::Ptr message() const;
46 int transportId() const;
47 bool hasCustomHeaders() const;
48 QString from() const;
49 QStringList to() const;
50 QStringList cc() const;
51 QStringList bcc() const;
53 private:
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();
60 class Private;
61 Private *const d;
66 #endif