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 "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.
17 * Interface : SDK API, SIP Codec API
29 #include <stringpool.h>
31 // FORWARD DECLARATIONS
39 * This class defines string pool for SIP Codec.
40 * The client of SIP Codec must call OpenL() before
41 * invoking any function of SIP Codec classes.
42 * The client must close the string pool when finished using
49 public: // Constructors and destructor
52 * Opens SIP Codec string pool.
53 * Implemented with a reference count.
55 IMPORT_C static void OpenL();
58 * Closes SIP Codec string pool.
59 * In other words decrements reference count and if it reaches
60 * zero, closes the string pool.
61 * The user must not call Close() if it has not called OpenL().
63 IMPORT_C static void Close();
66 public: // New functions
69 * Gets a case-insensitive string specified
70 * in the original string table.
72 * @param aIndex The string table enumeration value
73 * @return Initialised RStringF object
75 IMPORT_C static RStringF StringF(TInt aIndex);
78 * Gets the string pool used by SIP Codec.
80 * @return RStringPool: A handle to a string pool
82 IMPORT_C static RStringPool Pool();
85 * Gets the string table used by SIP Codec.
87 * @return TStringTable&: The string pool table
89 IMPORT_C static const TStringTable& Table();
93 static CSIPStrings* Strings();
96 #endif // SIPSTRINGS_H