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 |
33 | { |
34 | public: |
35 | () : parent( 0 ) {} |
36 | |
37 | virtual () {} |
38 | |
39 | KMime::Content *; |
40 | QByteArray ; |
41 | }; |
42 | |
43 | namespace Generics { |
44 | |
45 | class : public BasePrivate |
46 | { |
47 | public: |
48 | QString ; |
49 | }; |
50 | |
51 | kmime_mk_empty_private( Structured, Base ) |
52 | kmime_mk_empty_private( Address, Structured ) |
53 | |
54 | class : public AddressPrivate |
55 | { |
56 | public: |
57 | QList<Types::Mailbox> ; |
58 | }; |
59 | |
60 | kmime_mk_empty_private( SingleMailbox, MailboxList ) |
61 | |
62 | class : public AddressPrivate |
63 | { |
64 | public: |
65 | QList<Types::Address> ; |
66 | }; |
67 | |
68 | class : public AddressPrivate |
69 | { |
70 | public: |
71 | QList<Types::AddrSpec> ; |
72 | mutable QByteArray ; |
73 | }; |
74 | |
75 | kmime_mk_empty_private( SingleIdent, Ident ) |
76 | |
77 | class : public StructuredPrivate |
78 | { |
79 | public: |
80 | QByteArray ; |
81 | }; |
82 | |
83 | class : public StructuredPrivate |
84 | { |
85 | public: |
86 | QStringList ; |
87 | }; |
88 | |
89 | class : public StructuredPrivate |
90 | { |
91 | public: |
92 | QString ; |
93 | }; |
94 | |
95 | class : public StructuredPrivate |
96 | { |
97 | public: |
98 | QMap<QString, QString> ; |
99 | }; |
100 | |
101 | } // namespace Generics |
102 | |
103 | class : public Generics::AddressPrivate |
104 | { |
105 | public: |
106 | Types::Mailbox ; |
107 | }; |
108 | |
109 | class : public Generics::AddressListPrivate |
110 | { |
111 | public: |
112 | bool ; |
113 | bool ; |
114 | }; |
115 | |
116 | class : public Generics::TokenPrivate |
117 | { |
118 | public: |
119 | contentEncoding ; |
120 | bool ; |
121 | }; |
122 | |
123 | class : public Generics::ParametrizedPrivate |
124 | { |
125 | public: |
126 | QByteArray ; |
127 | contentCategory ; |
128 | }; |
129 | |
130 | class : public Generics::ParametrizedPrivate |
131 | { |
132 | public: |
133 | contentDisposition ; |
134 | }; |
135 | |
136 | class : public Generics::UnstructuredPrivate |
137 | { |
138 | public: |
139 | () : type( 0 ) {} |
140 | () |
141 | { |
142 | delete[] type; |
143 | } |
144 | |
145 | char *; |
146 | }; |
147 | |
148 | class : public Generics::StructuredPrivate |
149 | { |
150 | public: |
151 | QByteArray ; |
152 | QByteArray ; |
153 | }; |
154 | |
155 | class : public Generics::StructuredPrivate |
156 | { |
157 | public: |
158 | KDateTime ; |
159 | }; |
160 | |
161 | class : public Generics::StructuredPrivate |
162 | { |
163 | public: |
164 | QList<QByteArray> ; |
165 | }; |
166 | |
167 | class : public Generics::StructuredPrivate |
168 | { |
169 | public: |
170 | int ; |
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 |
183 | |