kmime_content_p.h

00001 /*
00002     Copyright (c) 2007 Volker Krause <vkrause@kde.org>
00003 
00004     This library is free software; you can redistribute it and/or modify it
00005     under the terms of the GNU Library General Public License as published by
00006     the Free Software Foundation; either version 2 of the License, or (at your
00007     option) any later version.
00008 
00009     This library is distributed in the hope that it will be useful, but WITHOUT
00010     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00011     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00012     License for more details.
00013 
00014     You should have received a copy of the GNU Library General Public License
00015     along with this library; see the file COPYING.LIB.  If not, write to the
00016     Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017     02110-1301, USA.
00018 */
00019 
00020 #ifndef KMIME_CONTENT_P_H
00021 #define KMIME_CONTENT_P_H
00022 
00023 //@cond PRIVATE
00024 
00025 namespace KMime {
00026 
00027 class ContentPrivate
00028 {
00029   public:
00030     ContentPrivate( Content *q )
00031       : forceDefaultCS( false ), parent( 0 ), frozen( false )
00032       , q_ptr( q )
00033     {
00034       defaultCS = KMime::cachedCharset( "ISO-8859-1" );
00035     }
00036 
00037     virtual ~ContentPrivate()
00038     {
00039       qDeleteAll( contents );
00040       contents.clear();
00041     }
00042 
00043     bool parseUuencoded();
00044     bool parseYenc();
00045     bool parseMultipart();
00046 
00047     QByteArray head;
00048     QByteArray body;
00049     QByteArray frozenBody;
00050     Content::List contents;
00051     QByteArray defaultCS;
00052     bool forceDefaultCS;
00053     Content *parent;
00054     bool frozen;
00055 
00056     Content* q_ptr;
00057     Q_DECLARE_PUBLIC( Content )
00058 };
00059 
00060 }
00061 
00062 //@endcond
00063 
00064 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys