KTNEF Library
Go to the documentation of this file.
35 #include <QtCore/QBuffer>
36 #include <QtCore/QList>
38 using namespace KTnef;
45 class KTnef::KTNEFMessage::MessagePrivate
51 void clearAttachments();
53 QList<KTNEFAttach *>attachments_;
56 KTNEFMessage::MessagePrivate::~MessagePrivate()
61 void KTNEFMessage::MessagePrivate::clearAttachments()
63 while ( !attachments_.isEmpty() ) {
64 delete attachments_.takeFirst();
80 return d->attachments_;
85 QList<KTNEFAttach *>::const_iterator it = d->attachments_.constBegin();
86 for ( ; it != d->attachments_.constEnd(); ++it ) {
87 if ( (*it)->name() == filename ) {
96 d->attachments_.append( attach );
101 d->clearAttachments();
107 if ( prop.isNull() || prop.type() != QVariant::ByteArray ) {
111 QByteArray propArray( prop.toByteArray() );
112 QBuffer input( &propArray ), output( &rtf );
113 if ( input.open( QIODevice::ReadOnly ) &&
114 output.open( QIODevice::WriteOnly ) ) {
117 return QString( rtf );
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:29:58 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.