1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/security/contentmgmt/contentaccessfwfordrm/source/cafutils/mimefieldanddata.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,70 @@
1.4 +/*
1.5 +* Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +* All rights reserved.
1.7 +* This component and the accompanying materials are made available
1.8 +* under the terms of the License "Eclipse Public License v1.0"
1.9 +* which accompanies this distribution, and is available
1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +*
1.12 +* Initial Contributors:
1.13 +* Nokia Corporation - initial contribution.
1.14 +*
1.15 +* Contributors:
1.16 +*
1.17 +* Description:
1.18 +*
1.19 +*/
1.20 +
1.21 +
1.22 +#ifndef __MIMEFIELDANDDATA_H__
1.23 +#define __MIMEFIELDANDDATA_H__
1.24 +
1.25 +#ifndef REMOVE_CAF1
1.26 +
1.27 +#include <caf/caftypes.h>
1.28 +#include <e32std.h>
1.29 +
1.30 +namespace ContentAccess
1.31 + {
1.32 +
1.33 + /**
1.34 + * This class is used to store non-standard mime header information.
1.35 + *
1.36 + * An example of this would be the <code>X-Oma-Drm-Separate-Delivery</code> field in
1.37 + * the OMA DRM scheme, e.g.,
1.38 + * @code
1.39 + * X-Oma-Drm-Separate-Delivery: 12
1.40 + * @endcode
1.41 + * Here the Field is "<code>X-Oma-Drm-Separate-Delivery</code>" and the Data is "<code>12</code>"
1.42 + * @file
1.43 + *
1.44 + * @internalComponent
1.45 + * @deprecated
1.46 + */
1.47 + class CMimeFieldAndData
1.48 + {
1.49 + public:
1.50 + /** Construct a mime field and corresponding data */
1.51 + static CMimeFieldAndData* NewL(const TDesC8& aFieldName, const TDesC8& aData);
1.52 +
1.53 + ~CMimeFieldAndData();
1.54 +
1.55 + /** Accessor for field name*/
1.56 + TPtrC8 FieldName() const;
1.57 +
1.58 + /** Accessor for data */
1.59 + TPtrC8 Data() const;
1.60 +
1.61 + private:
1.62 + CMimeFieldAndData();
1.63 + void ConstructL(const TDesC8& aFieldName, const TDesC8& aData);
1.64 +
1.65 +
1.66 + HBufC8* iFieldName;
1.67 + HBufC8* iData;
1.68 + };
1.69 + }
1.70 +#endif // #ifndef REMOVE_CAF1
1.71 +
1.72 +#endif
1.73 +