|
1 /* |
|
2 * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __MIMEFIELDANDDATA_H__ |
|
20 #define __MIMEFIELDANDDATA_H__ |
|
21 |
|
22 #ifndef REMOVE_CAF1 |
|
23 |
|
24 #include <caf/caftypes.h> |
|
25 #include <e32std.h> |
|
26 |
|
27 namespace ContentAccess |
|
28 { |
|
29 |
|
30 /** |
|
31 * This class is used to store non-standard mime header information. |
|
32 * |
|
33 * An example of this would be the <code>X-Oma-Drm-Separate-Delivery</code> field in |
|
34 * the OMA DRM scheme, e.g., |
|
35 * @code |
|
36 * X-Oma-Drm-Separate-Delivery: 12 |
|
37 * @endcode |
|
38 * Here the Field is "<code>X-Oma-Drm-Separate-Delivery</code>" and the Data is "<code>12</code>" |
|
39 * @file |
|
40 * |
|
41 * @internalComponent |
|
42 * @deprecated |
|
43 */ |
|
44 class CMimeFieldAndData |
|
45 { |
|
46 public: |
|
47 /** Construct a mime field and corresponding data */ |
|
48 static CMimeFieldAndData* NewL(const TDesC8& aFieldName, const TDesC8& aData); |
|
49 |
|
50 ~CMimeFieldAndData(); |
|
51 |
|
52 /** Accessor for field name*/ |
|
53 TPtrC8 FieldName() const; |
|
54 |
|
55 /** Accessor for data */ |
|
56 TPtrC8 Data() const; |
|
57 |
|
58 private: |
|
59 CMimeFieldAndData(); |
|
60 void ConstructL(const TDesC8& aFieldName, const TDesC8& aData); |
|
61 |
|
62 |
|
63 HBufC8* iFieldName; |
|
64 HBufC8* iData; |
|
65 }; |
|
66 } |
|
67 #endif // #ifndef REMOVE_CAF1 |
|
68 |
|
69 #endif |