Framework for looking up contacts directly in nepomuk in addition to going through...
[kdepim.git] / messagecomposer / globalpart.h
blob8b81d49ab38e600067c95881fcdbac5af187b56c
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 #ifndef MESSAGECOMPOSER_GLOBALPART_H
21 #define MESSAGECOMPOSER_GLOBALPART_H
23 #include "messagepart.h"
25 #include <QtCore/QByteArray>
26 #include <QtCore/QList>
28 namespace Message {
30 class MESSAGECOMPOSER_EXPORT GlobalPart : public MessagePart
32 Q_OBJECT
34 public:
35 explicit GlobalPart( QObject *parent = 0 );
36 virtual ~GlobalPart();
38 // default true
39 bool isGuiEnabled() const;
40 void setGuiEnabled( bool enabled );
41 QWidget* parentWidgetForGui() const;
42 void setParentWidgetForGui( QWidget *widget );
44 bool isFallbackCharsetEnabled() const;
45 void setFallbackCharsetEnabled( bool enabled );
46 QList<QByteArray> charsets( bool forceFallback = false ) const;
47 void setCharsets( const QList<QByteArray> &charsets );
49 bool is8BitAllowed() const;
50 void set8BitAllowed( bool allowed );
52 // default is false
53 bool MDNRequested() const;
54 void setMDNRequested( bool requestMDN );
56 private:
57 class Private;
58 Private *const d;
61 } // namespace MessageComposer
63 #endif