diff -r 000000000000 -r ba25891c3a9e ncdengine/engine/accesspointmanager/inc/catalogsaccesspointsettings.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ncdengine/engine/accesspointmanager/inc/catalogsaccesspointsettings.h Thu Dec 17 08:51:10 2009 +0200 @@ -0,0 +1,79 @@ +/* +* Copyright (c) 2006 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 CCatalogsAccessPointSettings declation +* +*/ + + +#ifndef C_CATALOGSACCESSPOINTSETTINGS_H +#define C_CATALOGSACCESSPOINTSETTINGS_H + +#include +#include +#include + + +class CCatalogsAccessPointSettings: public CBase + { +public: + static CCatalogsAccessPointSettings* NewL(); + static CCatalogsAccessPointSettings* NewLC(); + + virtual ~CCatalogsAccessPointSettings(); + + void SetLongTextParameterL(const TApMember& aKey, const TDesC16& aValue); + void SetText16ParameterL(const TApMember& aKey, const TDesC16& aValue); + void SetText8ParameterL(const TApMember& aKey, const TDesC8& aValue); + void SetUintParameterL(const TApMember& aKey, const TUint32& aValue); + void SetBoolParameterL(const TApMember& aKey, const TBool& aValue); + + TInt LongTextParameterCount() const; + TInt Text16ParameterCount() const; + TInt Text8ParameterCount() const; + TInt UintParameterCount() const; + TInt BoolParameterCount() const; + + void LongTextParameter( + TInt aIndex, TApMember& aKey, TPtrC16& aValue) const; + void Text16Parameter( + TInt aIndex, TApMember& aKey, TPtrC16& aValue) const; + void Text8Parameter( + TInt aIndex, TApMember& aKey, TPtrC8& aValue) const; + void UintParameter( + TInt aIndex, TApMember& aKey, TUint32& aValue) const; + void BoolParameter( + TInt aIndex, TApMember& aKey, TBool& aValue) const; + +protected: + CCatalogsAccessPointSettings(); + void ConstructL(); + void ExternalizeL(RWriteStream& aStream); + void InternalizeL(RReadStream& aStream); + +private: + RArray iLongTextMembers; + RArray iText16Members; + RArray iText8Members; + RArray iUintMembers; + RArray iBoolMembers; + + CDesC16ArrayFlat* iLongTextData; + CDesC16ArrayFlat* iText16Data; + CDesC8ArrayFlat* iText8Data; + RArray iUintData; + RArray iBoolData; + }; + + +#endif \ No newline at end of file