supl/locationsuplfw/terminalinitiationapi/inc/epos_suplterminalptrholder.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 02 Sep 2010 20:51:33 +0300
changeset 46 df1a0df61209
parent 0 667063e416a2
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
* Copyright (c) 2002-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:   Pointer holder for client's data
*
*/



#ifndef __SUPLTERMINALPTRHOLDER_H__
#define __SUPLTERMINALPTRHOLDER_H__

#include <e32base.h>
#include <lbscommon.h>

class CSuplSubSessnPtrHolder : public CBase
/*
 * Holds the TPtr8 and TPtrC8 arrays for all RPositionServer requests.
 *
 * \internal
 */
	{
public:
	IMPORT_C static CSuplSubSessnPtrHolder* NewL(TInt aNumberOfPtrs,
	                                            TInt aNumberOfPtrCs);
	IMPORT_C ~CSuplSubSessnPtrHolder();
	IMPORT_C TPtr8& Ptr(TInt aIndex);
	IMPORT_C TPtrC8& PtrC(TInt aIndex);
protected:
	IMPORT_C void ConstructL(TInt aNumberOfPtrs, TInt aNumberOfPtrCs);
private:
	RArray<TPtr8> iPtrArray;
	RArray<TPtrC8> iPtrCArray;
	};

#endif // __SUPLTERMINALPTRHOLDER_H__