• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

kmail

bodypartformatterfactory.h

Go to the documentation of this file.
00001 /*  -*- mode: C++; c-file-style: "gnu" -*-
00002     bodypartformatterfactory.h
00003 
00004     This file is part of KMail, the KDE mail client.
00005     Copyright (c) 2004 Marc Mutz <mutz@kde.org>,
00006                        Ingo Kloecker <kloecker@kde.org>
00007 
00008     KMail is free software; you can redistribute it and/or modify it
00009     under the terms of the GNU General Public License as published by
00010     the Free Software Foundation; either version 2 of the License, or
00011     (at your option) any later version.
00012 
00013     KMail is distributed in the hope that it will be useful, but
00014     WITHOUT ANY WARRANTY; without even the implied warranty of
00015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016     General Public License for more details.
00017 
00018     You should have received a copy of the GNU General Public License
00019     along with this program; if not, write to the Free Software
00020     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00021 
00022     In addition, as a special exception, the copyright holders give
00023     permission to link the code of this program with any edition of
00024     the Qt library by Trolltech AS, Norway (or with modified versions
00025     of Qt that use the same license as Qt), and distribute linked
00026     combinations including the two.  You must obey the GNU General
00027     Public License in all respects for all of the code used other than
00028     Qt.  If you modify this file, you may extend this exception to
00029     your version of the file, but you are not obligated to do so.  If
00030     you do not wish to do so, delete this exception statement from
00031     your version.
00032 */
00033 
00034 #ifndef __KMAIL_BODYPARTFORMATTERFACTORY_H__
00035 #define __KMAIL_BODYPARTFORMATTERFACTORY_H__
00036 
00037 class QString;
00038 #include <QByteArray>
00039 namespace KMail {
00040 
00041   namespace Interface {
00042     class BodyPartFormatter;
00043   }
00044 
00045   class BodyPartFormatterFactory {
00046     class gcc_shut_up;
00047     friend class ::KMail::BodyPartFormatterFactory::gcc_shut_up;
00048   public:
00049     ~BodyPartFormatterFactory();
00050 
00051     static const BodyPartFormatterFactory * instance();
00052 
00053     const Interface::BodyPartFormatter * createFor( const char * type, const char * subtype ) const;
00054     const Interface::BodyPartFormatter * createFor( const QString & type, const QString & subtype ) const;
00055     const Interface::BodyPartFormatter * createFor( const QByteArray & type, const QByteArray & subtype ) const;
00056 
00057     //
00058     // Only boring stuff below:
00059     //
00060   private:
00061     BodyPartFormatterFactory();
00062     static BodyPartFormatterFactory * mSelf;
00063   private:
00064     // disabled
00065     const BodyPartFormatterFactory & operator=( const BodyPartFormatterFactory & );
00066     BodyPartFormatterFactory( const BodyPartFormatterFactory & );
00067   };
00068 
00069 } // namespace KMail
00070 
00071 #endif // __KMAIL_BODYPARTFORMATTERFACTORY_H__

kmail

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

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal