|
1 /* |
|
2 * Copyright (c) 2005 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: XDM Settings collection |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __XDMSETTINGSCOLLECTION__ |
|
22 #define __XDMSETTINGSCOLLECTION__ |
|
23 |
|
24 #include <e32base.h> |
|
25 #include "XdmSettingsApi.h" |
|
26 |
|
27 class CXdmSettingsProperty; |
|
28 |
|
29 //CLASS DECLARATION |
|
30 class CXdmSettingsCollection : public CBase |
|
31 { |
|
32 public: |
|
33 |
|
34 /** |
|
35 * Return the name of each settings collection |
|
36 * stored in the repository |
|
37 * |
|
38 * @return CDesCArray* Names of all settings collections |
|
39 */ |
|
40 IMPORT_C CXdmSettingsCollection(); |
|
41 |
|
42 /** |
|
43 * Return the name of each settings collection |
|
44 * stored in the repository |
|
45 * |
|
46 * @return CDesCArray* Names of all settings collections |
|
47 */ |
|
48 IMPORT_C void AppendL( const TDesC& aPropertyValue, |
|
49 TXdmSettingsProperty aPropertyName ); |
|
50 |
|
51 /** |
|
52 * Return the name of each settings collection |
|
53 * stored in the repository |
|
54 * |
|
55 * @return CDesCArray* Names of all settings collections |
|
56 */ |
|
57 IMPORT_C void RemoveL( TXdmSettingsProperty aPropertyName ); |
|
58 |
|
59 /** |
|
60 * Return the name of each settings collection |
|
61 * stored in the repository |
|
62 * |
|
63 * @return CDesCArray* Names of all settings collections |
|
64 */ |
|
65 IMPORT_C TPtrC Property( TXdmSettingsProperty aProperty ) const; |
|
66 |
|
67 /** |
|
68 * Return the name of each settings collection |
|
69 * stored in the repository |
|
70 * |
|
71 * @return CDesCArray* Names of all settings collections |
|
72 */ |
|
73 IMPORT_C const CXdmSettingsProperty& Property( TInt aIndex ) const; |
|
74 |
|
75 /** |
|
76 * Return the name of each settings collection |
|
77 * stored in the repository |
|
78 * |
|
79 * @return CDesCArray* Names of all settings collections |
|
80 */ |
|
81 IMPORT_C TInt Count() const; |
|
82 |
|
83 /** |
|
84 * Return the name of each settings collection |
|
85 * stored in the repository |
|
86 * |
|
87 * @return CDesCArray* Names of all settings collections |
|
88 */ |
|
89 IMPORT_C virtual ~CXdmSettingsCollection(); |
|
90 |
|
91 private: |
|
92 |
|
93 /** |
|
94 * Return the name of each settings collection |
|
95 * stored in the repository |
|
96 * |
|
97 * @return CDesCArray* Names of all settings collections |
|
98 */ |
|
99 CXdmSettingsProperty* Find( TXdmSettingsProperty aProperty ) const; |
|
100 |
|
101 private: //Data |
|
102 |
|
103 RPointerArray<CXdmSettingsProperty> iPropCollection; |
|
104 }; |
|
105 |
|
106 #endif //__XDMSETTINGSCOLLECTION__ |
|
107 |
|
108 // End of File |