os/security/contentmgmt/contentaccessfwfordrm/source/cafutils/stringattribute.cpp
Update contrib.
2 * Copyright (c) 2004-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 #include "stringAttribute.h"
22 using namespace ContentAccess;
24 CStringAttribute* CStringAttribute::NewL(TInt aAttribute, const TDesC& aValue, TInt aError)
26 CStringAttribute* self = new (ELeave) CStringAttribute(aAttribute, aError);
27 CleanupStack::PushL(self);
28 self->ConstructL(aValue);
29 CleanupStack::Pop(self);
33 CStringAttribute::CStringAttribute(TInt aAttribute, TInt aError) : iAttribute(aAttribute), iError(aError)
37 CStringAttribute::~CStringAttribute()
42 TInt CStringAttribute::Attribute() const
47 const TDesC& CStringAttribute::Value() const
52 TInt CStringAttribute::Error() const
57 void CStringAttribute::ConstructL(const TDesC& aValue)
59 iValue = aValue.AllocL();