|
1 /* |
|
2 * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
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". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * Name : SdpCodecStringPool.h |
|
16 * Part of : SDP Codec |
|
17 * Interface : SDK API, SDP Codec API |
|
18 * Version : 1.0 |
|
19 * |
|
20 */ |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 /** |
|
26 @internalComponent |
|
27 */ |
|
28 |
|
29 #ifndef CSDPCODECSTRINGPOOL_H |
|
30 #define CSDPCODECSTRINGPOOL_H |
|
31 |
|
32 // INCLUDES |
|
33 #include <e32base.h> |
|
34 #include "_sdpdefs.h" |
|
35 #include <stringpool.h> |
|
36 |
|
37 |
|
38 // CLASS DECLARATION |
|
39 /** |
|
40 * This class defines string pool for SdpCodec. |
|
41 * Only one CSdpCodecStringPool object must be created in an application. |
|
42 * If more than one CSdpCodecStringPool objects are used by an |
|
43 * application with CSdpDocument objects, panic occurs. |
|
44 * |
|
45 * @lib sdpcodec.lib |
|
46 */ |
|
47 class CSdpCodecStringPool : public CBase |
|
48 { |
|
49 public: // Constructors and destructor |
|
50 |
|
51 /** |
|
52 * StringPool is created for SdpCodec. |
|
53 * |
|
54 * @return The new instance. |
|
55 */ |
|
56 static CSdpCodecStringPool* NewLC(); |
|
57 |
|
58 /** |
|
59 * Deletes the resources held by the instance. |
|
60 */ |
|
61 ~CSdpCodecStringPool(); |
|
62 |
|
63 public: |
|
64 |
|
65 /** |
|
66 * Gets the string pool used by SDP |
|
67 * |
|
68 * @return a handle to a string pool |
|
69 */ |
|
70 RStringPool StringPool(); |
|
71 |
|
72 /** |
|
73 * Gets the SDP's string pool table |
|
74 * |
|
75 * @return the string pool table |
|
76 */ |
|
77 static const TStringTable& StringTable(); |
|
78 |
|
79 private: |
|
80 |
|
81 CSdpCodecStringPool(); |
|
82 void ConstructL(); |
|
83 |
|
84 private: // Data |
|
85 |
|
86 RStringPool iPool; |
|
87 }; |
|
88 |
|
89 #endif |