diff -r 5cc91383ab1e -r 7333d7932ef7 secureswitools/swisistools/source/rscparser/apaid.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/secureswitools/swisistools/source/rscparser/apaid.cpp Tue Aug 31 15:21:33 2010 +0300 @@ -0,0 +1,75 @@ +// Copyright (c) 2009 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: class TAppServiceInfo represents the Service Info +// structure of Resource File. Member Function of this Class are defined. +// + +/** +* @file apaid.cpp +* +* @internalComponent +* @released +*/ + +#include "apaid.h" +#include + +// +// class TAppServiceInfo +// + +//Default Constructor for class TAppServiceInfo +TAppServiceInfo::TAppServiceInfo() + : iUid(NullUid), + iDataTypes(0) +{ +} + +//Destructor for class TAppServiceInfo +TAppServiceInfo::~TAppServiceInfo() +{ +} + +//Constructor for class TAppServiceInfo +TAppServiceInfo::TAppServiceInfo(TUid aUid, + std::vector aDataTypes) + : iUid(aUid), + iDataTypes(aDataTypes) +{ +} + +//Releases the data member +void TAppServiceInfo::Release() +{ + + if(0 < iDataTypes.size()) + iDataTypes.clear(); +} + +/* +* Member function of Class TAppServiceInfo to return private member +* variable iUid +*/ +TUid TAppServiceInfo::GetUid() +{ + return iUid; +} + +/* +* Member function of Class TAppServiceInfo to return private member +* variable iDataTypes +*/ +std::vector TAppServiceInfo::GetDataType() +{ + return iDataTypes; +} \ No newline at end of file