servicediscoveryandcontrol/pnp/test/upnp/upnpdescription/inc/cstringpoolmanager.h
changeset 0 f5a58ecadc66
equal deleted inserted replaced
-1:000000000000 0:f5a58ecadc66
       
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __CSTRINGPOOLMANAGER_H__
       
    17 #define __CSTRINGPOOLMANAGER_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <stringpool.h>
       
    21 
       
    22 /** CStringPoolManager manages all the upnp device and service description tags in a single
       
    23  string pool.
       
    24  @publishedPartner
       
    25  @prototype
       
    26  */ 
       
    27 class CStringPoolManager : public CBase
       
    28 	{
       
    29 public:
       
    30 	IMPORT_C static CStringPoolManager* NewL( const TStringTable& aStringTable);
       
    31 	IMPORT_C static CStringPoolManager* NewL();
       
    32 	IMPORT_C void Release();
       
    33 	IMPORT_C RStringPool& StringPool();
       
    34 	IMPORT_C const TStringTable& GetUPnPTable();
       
    35 	IMPORT_C void SetStringTableL( const TStringTable& aStringTable );
       
    36 private:
       
    37 	CStringPoolManager();
       
    38 	void ConstructL(const TStringTable& stringTable);
       
    39 	~CStringPoolManager();
       
    40 	
       
    41 private:
       
    42 	RStringPool iPool;
       
    43 	RArray<TStringTable> iStringTableArray;
       
    44 };
       
    45 
       
    46 #endif // __CSTRINGPOOLMANAGER_H__
       
    47