|
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_RADIOSETTINGS_H |
|
19 #define C_RADIOSETTINGS_H |
|
20 |
|
21 // System includes |
|
22 #include <e32base.h> |
|
23 |
|
24 // User includes |
|
25 #include "radioengine.hrh" |
|
26 |
|
27 // Forward declarations |
|
28 class CCoeEnv; |
|
29 class MRadioApplicationSettings; |
|
30 class MRadioEngineSettings; |
|
31 class MRadioSettingsSetter; |
|
32 class CRadioRepositoryManager; |
|
33 class MRadioPresetSettings; |
|
34 class RFs; |
|
35 |
|
36 /** |
|
37 * Manages persistent application settings. |
|
38 * |
|
39 * Exposes access to the underlying settings implementations. |
|
40 */ |
|
41 NONSHARABLE_CLASS( CRadioSettings ) : public CBase |
|
42 { |
|
43 |
|
44 public: |
|
45 |
|
46 IMPORT_C static CRadioSettings* NewL( CCoeEnv* aCoeEnv = NULL ); |
|
47 |
|
48 IMPORT_C virtual ~CRadioSettings(); |
|
49 |
|
50 /** |
|
51 * Determines if region is allowed. |
|
52 */ |
|
53 virtual TBool IsRegionAllowed( TRadioRegion aRegionId ) const = 0; |
|
54 |
|
55 /** |
|
56 * Returns the implemented application settings interface. |
|
57 * |
|
58 * @return The implemented application settings interface. |
|
59 */ |
|
60 virtual MRadioApplicationSettings& ApplicationSettings() const = 0; |
|
61 |
|
62 /** |
|
63 * Returns the implemented radio settings interface. |
|
64 * |
|
65 * @return The implemented radio settings interface. |
|
66 */ |
|
67 virtual MRadioEngineSettings& EngineSettings() const = 0; |
|
68 |
|
69 /** |
|
70 * Returns the implemented radio settings interface. |
|
71 * |
|
72 * @return The implemented setter interface for radio settings. |
|
73 */ |
|
74 virtual MRadioSettingsSetter& RadioSetter() const = 0; |
|
75 |
|
76 /** |
|
77 * Returns the repository manager. |
|
78 * |
|
79 * @return The repository manager. |
|
80 */ |
|
81 virtual CRadioRepositoryManager& Repository() const = 0; |
|
82 |
|
83 /** |
|
84 * Resolves the most recently updated location for a file. |
|
85 * |
|
86 * @param aFileName The file name to be searched. |
|
87 * On return, will contain the full path to the file. |
|
88 * @param aPath The absolute path to the file. If drive letter is |
|
89 * given then that one will be first tried. |
|
90 */ |
|
91 virtual void ResolveDriveL( TFileName& aFileName, const TDesC& aPath ) = 0; |
|
92 |
|
93 }; |
|
94 |
|
95 #endif // C_RADIOSETTINGS_H |
|
96 |