os/security/contentmgmt/contentaccessfwfordrm/source/cafutils/stringAttribute.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2004-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 /**
    20  @file
    21  @internalComponent
    22  @released
    23 */
    24 
    25 
    26 #ifndef __STRINGATTRIBUTE_H__
    27 #define __STRINGATTRIBUTE_H__
    28 
    29 #include <e32base.h>
    30 
    31 namespace ContentAccess
    32 	{
    33 
    34 	/** Used by RAttributeSet 
    35 
    36 	@internalComponent
    37 	@released
    38 	*/
    39 	class CStringAttribute : public CBase
    40 		{
    41 	public:
    42 		static CStringAttribute* NewL(TInt aAttribute, const TDesC& aValue, TInt aError);
    43 		virtual ~CStringAttribute();
    44 
    45 		TInt Attribute() const;
    46 		const TDesC& Value() const;
    47 		TInt Error() const;
    48 
    49 	private:
    50 		CStringAttribute(TInt aAttribute, TInt aError);
    51 		void ConstructL(const TDesC& aValue);
    52 
    53 	private:
    54 		TInt iAttribute;
    55 		HBufC* iValue;
    56 		TInt iError;
    57 		};
    58 	}
    59 
    60 #endif