2 * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * Name : SdpCodecStringPool.h
17 * Interface : SDK API, SDP Codec API
24 #ifndef SDPCODECSTRINGPOOL_H
25 #define SDPCODECSTRINGPOOL_H
29 #include <stringpool.h>
31 class CSdpCodecStringPool;
38 * This class defines string pool for SDP Codec.
39 * The client of SDP Codec must call OpenL() before
40 * invoking any function of SDP Codec classes.
41 * The client must close the string pool when finished using
44 * Note: the client must not close the string pool while
45 * using SDP Codec classes.
49 class SdpCodecStringPool
51 public: // Constructors and destructor
54 * Opens SDP Codec string pool.
56 * @leave KErrAlreadyExists if pool already exists in TLS.
58 IMPORT_C static void OpenL();
61 * Closes SDP Codec string pool.
64 IMPORT_C static void Close();
69 * Gets the string pool used by SDP Codec.
71 * @return RStringPool: A handle to a string pool
72 * @leave KErrSdpCodecStringPool if the pool is not opened.
75 IMPORT_C static RStringPool StringPoolL();
78 * Gets the string table used by SDP Codec.
80 * @return TStringTable&: The string pool table
81 * @leave KErrSdpCodecStringPool if the pool is not opened.
84 IMPORT_C static const TStringTable& StringTableL();