Update contrib.
2 * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
19 #ifndef __MIMEFIELDANDDATA_H__
20 #define __MIMEFIELDANDDATA_H__
24 #include <caf/caftypes.h>
27 namespace ContentAccess
31 * This class is used to store non-standard mime header information.
33 * An example of this would be the <code>X-Oma-Drm-Separate-Delivery</code> field in
34 * the OMA DRM scheme, e.g.,
36 * X-Oma-Drm-Separate-Delivery: 12
38 * Here the Field is "<code>X-Oma-Drm-Separate-Delivery</code>" and the Data is "<code>12</code>"
44 class CMimeFieldAndData
47 /** Construct a mime field and corresponding data */
48 static CMimeFieldAndData* NewL(const TDesC8& aFieldName, const TDesC8& aData);
52 /** Accessor for field name*/
53 TPtrC8 FieldName() const;
55 /** Accessor for data */
60 void ConstructL(const TDesC8& aFieldName, const TDesC8& aData);
67 #endif // #ifndef REMOVE_CAF1