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

KMIME Library

  • sources
  • kde-4.12
  • kdepimlibs
  • kmime
kmime_headers_p.h
1 /*
2  Copyright (c) 2007 Volker Krause <vkrause@kde.org>
3 
4  This library is free software; you can redistribute it and/or modify it
5  under the terms of the GNU Library General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or (at your
7  option) any later version.
8 
9  This library is distributed in the hope that it will be useful, but WITHOUT
10  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12  License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to the
16  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17  02110-1301, USA.
18 */
19 
20 #ifndef KMIME_HEADERS_P_H
21 #define KMIME_HEADERS_P_H
22 
23 //@cond PRIVATE
24 
25 #define kmime_mk_empty_private( subclass, base ) \
26 class subclass##Private : public base##Private {};
27 
28 namespace KMime {
29 
30 namespace Headers {
31 
32 class BasePrivate
33 {
34  public:
35  BasePrivate() : parent( 0 ) {}
36 
37  virtual ~BasePrivate() {}
38 
39  KMime::Content *parent;
40  QByteArray encCS;
41 };
42 
43 namespace Generics {
44 
45 class UnstructuredPrivate : public BasePrivate
46 {
47  public:
48  QString decoded;
49 };
50 
51 kmime_mk_empty_private( Structured, Base )
52 kmime_mk_empty_private( Address, Structured )
53 
54 class MailboxListPrivate : public AddressPrivate
55 {
56  public:
57  QList<Types::Mailbox> mailboxList;
58 };
59 
60 kmime_mk_empty_private( SingleMailbox, MailboxList )
61 
62 class AddressListPrivate : public AddressPrivate
63 {
64  public:
65  QList<Types::Address> addressList;
66 };
67 
68 class IdentPrivate : public AddressPrivate
69 {
70  public:
71  QList<Types::AddrSpec> msgIdList;
72  mutable QByteArray cachedIdentifier;
73 };
74 
75 kmime_mk_empty_private( SingleIdent, Ident )
76 
77 class TokenPrivate : public StructuredPrivate
78 {
79  public:
80  QByteArray token;
81 };
82 
83 class PhraseListPrivate : public StructuredPrivate
84 {
85  public:
86  QStringList phraseList;
87 };
88 
89 class DotAtomPrivate : public StructuredPrivate
90 {
91  public:
92  QString dotAtom;
93 };
94 
95 class ParametrizedPrivate : public StructuredPrivate
96 {
97  public:
98  QMap<QString, QString> parameterHash;
99 };
100 
101 } // namespace Generics
102 
103 class ReturnPathPrivate : public Generics::AddressPrivate
104 {
105  public:
106  Types::Mailbox mailbox;
107 };
108 
109 class MailCopiesToPrivate : public Generics::AddressListPrivate
110 {
111  public:
112  bool alwaysCopy;
113  bool neverCopy;
114 };
115 
116 class ContentTransferEncodingPrivate : public Generics::TokenPrivate
117 {
118  public:
119  contentEncoding cte;
120  bool decoded;
121 };
122 
123 class ContentTypePrivate : public Generics::ParametrizedPrivate
124 {
125  public:
126  QByteArray mimeType;
127  contentCategory category;
128 };
129 
130 class ContentDispositionPrivate : public Generics::ParametrizedPrivate
131 {
132  public:
133  contentDisposition disposition;
134 };
135 
136 class GenericPrivate : public Generics::UnstructuredPrivate
137 {
138  public:
139  GenericPrivate() : type( 0 ) {}
140  ~GenericPrivate()
141  {
142  delete[] type;
143  }
144 
145  char *type;
146 };
147 
148 class ControlPrivate : public Generics::StructuredPrivate
149 {
150  public:
151  QByteArray name;
152  QByteArray parameter;
153 };
154 
155 class DatePrivate : public Generics::StructuredPrivate
156 {
157  public:
158  KDateTime dateTime;
159 };
160 
161 class NewsgroupsPrivate : public Generics::StructuredPrivate
162 {
163  public:
164  QList<QByteArray> groups;
165 };
166 
167 class LinesPrivate : public Generics::StructuredPrivate
168 {
169  public:
170  int lines;
171 };
172 
173 kmime_mk_empty_private( ContentID, Generics::SingleIdent )
174 }
175 
176 }
177 
178 #undef kmime_mk_empty_private
179 
180 //@endcond
181 
182 #endif
KMime::Content
A class that encapsulates MIME encoded Content.
Definition: kmime_content.h:112
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KMIME Library

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

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

Search



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