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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.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
30 #include <stringpool.h>
32 class CSdpCodecStringPool;
39 * This class defines string pool for SDP Codec.
40 * The client of SDP Codec must call OpenL() before
41 * invoking any function of SDP Codec classes.
42 * The client must close the string pool when finished using
45 * Note: the client must not close the string pool while
46 * using SDP Codec classes.
50 class SdpCodecStringPool
52 public: // Constructors and destructor
55 * Opens SDP Codec string pool.
57 * @leave KErrAlreadyExists if pool already exists in TLS.
59 IMPORT_C static void OpenL();
62 * Closes SDP Codec string pool.
65 IMPORT_C static void Close();
70 * Gets the string pool used by SDP Codec.
72 * @return RStringPool: A handle to a string pool
73 * @leave KErrSdpCodecStringPool if the pool is not opened.
76 IMPORT_C static RStringPool StringPoolL();
79 * Gets the string table used by SDP Codec.
81 * @return TStringTable&: The string pool table
82 * @leave KErrSdpCodecStringPool if the pool is not opened.
85 IMPORT_C static const TStringTable& StringTableL();