KTNEF Library
ktnefmessage.h
Go to the documentation of this file.
00001 /* 00002 ktnefmessage.h 00003 00004 Copyright (C) 2002 Michael Goffioul <kdeprint@swing.be> 00005 00006 This file is part of KTNEF, the KDE TNEF support library/program. 00007 00008 This library is free software; you can redistribute it and/or 00009 modify it under the terms of the GNU Library General Public 00010 License as published by the Free Software Foundation; either 00011 version 2 of the License, or (at your option) any later version. 00012 00013 This library is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 Library General Public License for more details. 00017 00018 You should have received a copy of the GNU Library General Public License 00019 along with this library; see the file COPYING.LIB. If not, write to 00020 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00021 Boston, MA 02110-1301, USA. 00022 */ 00031 #ifndef KTNEFMESSAGE_H 00032 #define KTNEFMESSAGE_H 00033 00034 #include <QtCore/QList> 00035 00036 #include "ktnefpropertyset.h" 00037 #include "ktnef_export.h" 00038 00039 namespace KTnef { class KTNEFAttach; } 00040 00041 namespace KTnef { 00042 00047 class KTNEF_EXPORT KTNEFMessage : public KTNEFPropertySet 00048 { 00049 public: 00053 KTNEFMessage(); 00054 00058 ~KTNEFMessage(); 00059 00063 const QList<KTNEFAttach *> &attachmentList() const; 00064 00073 KTNEFAttach *attachment( const QString &filename ) const; 00074 00079 void addAttachment( KTNEFAttach *attach ); 00080 00084 void clearAttachments(); 00085 00090 QString rtfString() const; 00091 00092 private: 00093 //@cond PRIVATE 00094 class MessagePrivate; 00095 MessagePrivate *const d; 00096 //@endcond 00097 00098 Q_DISABLE_COPY( KTNEFMessage ) 00099 }; 00100 00101 } 00102 #endif