kmail

bodypartformatterfactory.h
1/*
2 bodypartformatterfactory.h
3
4 This file is part of KMail, the KDE mail client.
5 Copyright (c) 2004 Marc Mutz <mutz@kde.org>,
6 Ingo Kloecker <kloecker@kde.org>
7
8 KMail is free software; you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
12
13 KMail is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21
22 In addition, as a special exception, the copyright holders give
23 permission to link the code of this program with any edition of
24 the TQt library by Trolltech AS, Norway (or with modified versions
25 of TQt that use the same license as TQt), and distribute linked
26 combinations including the two. You must obey the GNU General
27 Public License in all respects for all of the code used other than
28 TQt. If you modify this file, you may extend this exception to
29 your version of the file, but you are not obligated to do so. If
30 you do not wish to do so, delete this exception statement from
31 your version.
32*/
33
34#ifndef __KMAIL_BODYPARTFORMATTERFACTORY_H__
35#define __KMAIL_BODYPARTFORMATTERFACTORY_H__
36
37class TQString;
38class TQCString;
39
40namespace KMail {
41
42 namespace Interface {
43 class BodyPartFormatter;
44 }
45
46 class BodyPartFormatterFactory {
47 class gcc_shut_up;
48 friend class ::KMail::BodyPartFormatterFactory::gcc_shut_up;
49 public:
50 ~BodyPartFormatterFactory();
51
52 static const BodyPartFormatterFactory * instance();
53
54 const Interface::BodyPartFormatter * createFor( const char * type, const char * subtype ) const;
55 const Interface::BodyPartFormatter * createFor( const TQString & type, const TQString & subtype ) const;
56 const Interface::BodyPartFormatter * createFor( const TQCString & type, const TQCString & subtype ) const;
57
58 //
59 // Only boring stuff below:
60 //
61 private:
62 BodyPartFormatterFactory();
63 static BodyPartFormatterFactory * mSelf;
64 private:
65 // disabled
66 const BodyPartFormatterFactory & operator=( const BodyPartFormatterFactory & );
67 BodyPartFormatterFactory( const BodyPartFormatterFactory & );
68 };
69
70} // namespace KMail
71
72#endif // __KMAIL_BODYPARTFORMATTERFACTORY_H__
folderdiaquotatab.h
Definition: aboutdata.cpp:40