• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.8.3 API Reference
  • KDE Home
  • Contact Us
 

KMIME Library

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 #include <boost/shared_ptr.hpp>
00026 
00027 namespace KMime {
00028   class Message;
00029   typedef boost::shared_ptr<Message> MessagePtr;
00030 }
00031 
00032 namespace KMime {
00033 
00034 class ContentPrivate
00035 {
00036   public:
00037     ContentPrivate( Content *q ) :
00038       parent( 0 ),
00039       q_ptr( q ),
00040       forceDefaultCS( false ),
00041       frozen( false )
00042     {
00043       defaultCS = KMime::cachedCharset( "ISO-8859-1" );
00044     }
00045 
00046     virtual ~ContentPrivate()
00047     {
00048       qDeleteAll( multipartContents );
00049       multipartContents.clear();
00050     }
00051 
00052     bool parseUuencoded();
00053     bool parseYenc();
00054     bool parseMultipart();
00055     Headers::Generic *nextHeader( QByteArray &head );
00056     void clearBodyMessage();
00057 
00058     // This one returns the normal multipartContents for multipart contents, but returns
00059     // a list with just bodyAsMessage in it for contents that are encapsulated messages.
00060     // That makes it possible to handle encapsulated messages in a transparent way.
00061     Content::List contents() const;
00062 
00063     QByteArray head;
00064     QByteArray body;
00065     QByteArray frozenBody;
00066     QByteArray defaultCS;
00067     QByteArray preamble;
00068     QByteArray epilogue;
00069     Content *parent;
00070 
00071     Content::List multipartContents;
00072     MessagePtr bodyAsMessage;
00073 
00074     Content* q_ptr;
00075     Q_DECLARE_PUBLIC( Content )
00076 
00077     bool forceDefaultCS : 1;
00078     bool frozen : 1;
00079 };
00080 
00081 }
00082 
00083 //@endcond
00084 
00085 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Apr 30 2012 21:48:40 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KMIME Library

Skip menu "KMIME Library"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

kdepimlibs-4.8.3 API Reference

Skip menu "kdepimlibs-4.8.3 API Reference"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal