contentmgmt/contentaccessfwfordrm/source/cafutils/stringAttribute.h
changeset 0 2c201484c85f
child 8 35751d3474b7
equal deleted inserted replaced
-1:000000000000 0:2c201484c85f
       
     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 
       
    21 /**
       
    22  @file
       
    23  @internalComponent
       
    24  @released
       
    25 */
       
    26 
       
    27 
       
    28 #ifndef __STRINGATTRIBUTE_H__
       
    29 #define __STRINGATTRIBUTE_H__
       
    30 
       
    31 #include <e32base.h>
       
    32 
       
    33 namespace ContentAccess
       
    34 	{
       
    35 
       
    36 	/** Used by RAttributeSet 
       
    37 
       
    38 	@internalComponent
       
    39 	@released
       
    40 	*/
       
    41 	class CStringAttribute : public CBase
       
    42 		{
       
    43 	public:
       
    44 		static CStringAttribute* NewL(TInt aAttribute, const TDesC& aValue, TInt aError);
       
    45 		virtual ~CStringAttribute();
       
    46 
       
    47 		TInt Attribute() const;
       
    48 		const TDesC& Value() const;
       
    49 		TInt Error() const;
       
    50 
       
    51 	private:
       
    52 		CStringAttribute(TInt aAttribute, TInt aError);
       
    53 		void ConstructL(const TDesC& aValue);
       
    54 
       
    55 	private:
       
    56 		TInt iAttribute;
       
    57 		HBufC* iValue;
       
    58 		TInt iError;
       
    59 		};
       
    60 	}
       
    61 
       
    62 #endif