1 /* |
|
2 * Copyright (c) 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 * |
|
16 */ |
|
17 |
|
18 #ifndef C_RADIOSETTINGSBASE_H |
|
19 #define C_RADIOSETTINGSBASE_H |
|
20 |
|
21 // System includes |
|
22 #include <badesca.h> |
|
23 #include <e32base.h> |
|
24 |
|
25 // Forward declarations |
|
26 class CCoeEnv; |
|
27 class CRadioRepositoryManager; |
|
28 |
|
29 /** |
|
30 * Base class for all settings implementations. |
|
31 * |
|
32 * Provides commonly used data members and methods. |
|
33 */ |
|
34 NONSHARABLE_CLASS( CRadioSettingsBase ) : public CBase |
|
35 { |
|
36 |
|
37 public: |
|
38 |
|
39 ~CRadioSettingsBase(); |
|
40 |
|
41 protected: |
|
42 |
|
43 CRadioSettingsBase( CRadioRepositoryManager& aRepositoryManager, CCoeEnv& aCoeEnv ); |
|
44 |
|
45 /** |
|
46 * Writes an array to the repository. |
|
47 * |
|
48 * @param aUid The UID of the repository. |
|
49 * @param aKey The key to which to write the array. |
|
50 * @param aArray The array to write. |
|
51 */ |
|
52 void WriteArrayEntityL( const TUid& aUid, TUint32 aKey, const CDesCArray& aArray ); |
|
53 |
|
54 /** |
|
55 * Reads an array from the repository. |
|
56 * |
|
57 * @param aUid The UID of the repository. |
|
58 * @param aKey The key to which to write the array. |
|
59 * @return The array that was read. Ownership is transferred to the caller. |
|
60 */ |
|
61 CDesCArray* ReadArrayEntityL( const TUid& aUid, TUint32 aKey ) const; |
|
62 |
|
63 protected: |
|
64 |
|
65 /** |
|
66 * The control environment. |
|
67 */ |
|
68 CCoeEnv& iCoeEnv; |
|
69 |
|
70 /** |
|
71 * The repository manager. |
|
72 */ |
|
73 CRadioRepositoryManager& iRepositoryManager; |
|
74 |
|
75 }; |
|
76 |
|
77 #endif // C_RADIOSETTINGSBASE_H |
|