sl@0: /* sl@0: * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of the License "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: #ifndef __MIMEFIELDANDDATA_H__ sl@0: #define __MIMEFIELDANDDATA_H__ sl@0: sl@0: #ifndef REMOVE_CAF1 sl@0: sl@0: #include sl@0: #include sl@0: sl@0: namespace ContentAccess sl@0: { sl@0: sl@0: /** sl@0: * This class is used to store non-standard mime header information. sl@0: * sl@0: * An example of this would be the X-Oma-Drm-Separate-Delivery field in sl@0: * the OMA DRM scheme, e.g., sl@0: * @code sl@0: * X-Oma-Drm-Separate-Delivery: 12 sl@0: * @endcode sl@0: * Here the Field is "X-Oma-Drm-Separate-Delivery" and the Data is "12" sl@0: * @file sl@0: * sl@0: * @internalComponent sl@0: * @deprecated sl@0: */ sl@0: class CMimeFieldAndData sl@0: { sl@0: public: sl@0: /** Construct a mime field and corresponding data */ sl@0: static CMimeFieldAndData* NewL(const TDesC8& aFieldName, const TDesC8& aData); sl@0: sl@0: ~CMimeFieldAndData(); sl@0: sl@0: /** Accessor for field name*/ sl@0: TPtrC8 FieldName() const; sl@0: sl@0: /** Accessor for data */ sl@0: TPtrC8 Data() const; sl@0: sl@0: private: sl@0: CMimeFieldAndData(); sl@0: void ConstructL(const TDesC8& aFieldName, const TDesC8& aData); sl@0: sl@0: sl@0: HBufC8* iFieldName; sl@0: HBufC8* iData; sl@0: }; sl@0: } sl@0: #endif // #ifndef REMOVE_CAF1 sl@0: sl@0: #endif sl@0: