diff -r e6e896426eac -r 2691f6aa1921 omads/omadsextensions/datamod/src/NSmlProperty.cpp --- a/omads/omadsextensions/datamod/src/NSmlProperty.cpp Tue Feb 02 00:02:49 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,78 +0,0 @@ -/* -* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: Property class -* -*/ - - - -// INCLUDES -#include "NSmlDataModBase.h" - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// CNSmlProperty::NewL -// Two-phased constructor. -// ----------------------------------------------------------------------------- -// -CNSmlProperty* CNSmlProperty::NewL( CParserPropertyValue& aPropertyValue, const TDesC8& aName, CArrayPtr* aArrayOfParams ) - { - CNSmlProperty* self = new ( ELeave ) CNSmlProperty( aPropertyValue, aArrayOfParams ); - CleanupStack::PushL( self ); - ConstructSelfL( *self, aName ); - CleanupStack::Pop(); // self - return self; - } - -// ----------------------------------------------------------------------------- -// CNSmlProperty::Parameters -// ----------------------------------------------------------------------------- -// -CArrayPtr* CNSmlProperty::Parameters() const - { - return iArrayOfParams; - } - -// ----------------------------------------------------------------------------- -// CNSmlProperty::ParamCount -// ----------------------------------------------------------------------------- -// -TInt CNSmlProperty::ParamCount() const - { - if ( iArrayOfParams ) - { - return iArrayOfParams->Count(); - } - return 0; - } - -// ----------------------------------------------------------------------------- -// CNSmlProperty::Compare -// ----------------------------------------------------------------------------- -// -TInt CNSmlProperty::Compare( const CNSmlProperty& aFirst, const CNSmlProperty& aSecond ) - { - return aFirst.Name().Compare( aSecond.Name() ); - } - -// ----------------------------------------------------------------------------- -// CNSmlProperty::CNSmlProperty -// ----------------------------------------------------------------------------- -// -CNSmlProperty::CNSmlProperty( CParserPropertyValue& aPropertyValue, CArrayPtr* aArrayOfParams ) : CParserProperty(aPropertyValue, aArrayOfParams) - { - } - -// End of file