kmail

partnodebodypart.h
1/*
2 partnodebodypart.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_BODYPART_H_
35#define __KMAIL_BODYPART_H_
36
37#include "interfaces/bodypart.h"
38
39class partNode;
40
41class TQTextCodec;
42
43namespace KMail {
44
49 public:
50 PartNodeBodyPart( partNode & n, const TQTextCodec * codec=0 );
51
52 TQString makeLink( const TQString & path ) const;
53 TQString asText() const;
54 TQByteArray asBinary() const;
55 TQString contentTypeParameter( const char * param ) const;
56 TQString contentDescription() const;
57 //int contentDisposition() const;
58 TQString contentDispositionParameter( const char * param ) const;
59 bool hasCompleteBody() const;
60
63 BodyPart::Display defaultDisplay() const;
64 void setDefaultDisplay( BodyPart::Display );
65
66 private:
67 partNode & mPartNode;
68 const TQTextCodec * mCodec;
69 BodyPart::Display mDefaultDisplay;
70 };
71
72} // namespace KMail
73
74#endif // __KMAIL_BODYPART_H_
interface of classes that implement status for BodyPartFormatters.
Definition: bodypart.h:51
interface of message body parts.
Definition: bodypart.h:75
an implemenation of the BodyPart interface using partNodes
Interface::BodyPartMemento * memento() const
TQString contentDescription() const
TQString contentTypeParameter(const char *param) const
TQByteArray asBinary() const
TQString contentDispositionParameter(const char *param) const
BodyPart::Display defaultDisplay() const
void setBodyPartMemento(Interface::BodyPartMemento *memento)
TQString makeLink(const TQString &path) const
folderdiaquotatab.h
Definition: aboutdata.cpp:40