2 * Copyright (c) 2004-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.
17 * Interface : SDK API, SIP Codec API
29 #include <stringpool.h>
30 #include "_sipcodecdefs.h"
32 // FORWARD DECLARATIONS
40 * This class defines string pool for SIP Codec.
41 * The client of SIP Codec must call OpenL() before
42 * invoking any function of SIP Codec classes.
43 * The client must close the string pool when finished using
50 public: // Constructors and destructor
53 * Opens SIP Codec string pool.
54 * Implemented with a reference count.
56 IMPORT_C static void OpenL();
59 * Closes SIP Codec string pool.
60 * In other words decrements reference count and if it reaches
61 * zero, closes the string pool.
62 * The user must not call Close() if it has not called OpenL().
64 IMPORT_C static void Close();
67 public: // New functions
70 * Gets a case-insensitive string specified
71 * in the original string table.
73 * @param aIndex The string table enumeration value
74 * @return Initialised RStringF object
76 IMPORT_C static RStringF StringF(TInt aIndex);
79 * Gets the string pool used by SIP Codec.
81 * @return RStringPool: A handle to a string pool
83 IMPORT_C static RStringPool Pool();
86 * Gets the string table used by SIP Codec.
88 * @return TStringTable&: The string pool table
90 IMPORT_C static const TStringTable& Table();
94 static CSIPStrings* Strings();
97 #endif // SIPSTRINGS_H