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: Preset Utility Body class. |
|
15 * |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef C_PRESETUTILITYBODY_H |
|
20 #define C_PRESETUTILITYBODY_H |
|
21 |
|
22 #include <presetutility.h> |
|
23 |
|
24 class MPresetUtilityObserver; |
|
25 class CCenrepHandler; |
|
26 |
|
27 NONSHARABLE_CLASS( CPresetUtilityBody ) : public CPresetUtility |
|
28 { |
|
29 public: |
|
30 |
|
31 /** |
|
32 * Two-phased class constructor. |
|
33 */ |
|
34 IMPORT_C static CPresetUtilityBody* NewL(); |
|
35 |
|
36 /** |
|
37 * Destructor of CPresetUtilityBody class. |
|
38 */ |
|
39 IMPORT_C ~CPresetUtilityBody(); |
|
40 |
|
41 // from base class CFmRadioPresetUtility |
|
42 |
|
43 void SetObserver( MPresetUtilityObserver* aObserver ); |
|
44 TInt MaxNumberOfPresets() const; |
|
45 TInt PresetCount() const; |
|
46 TInt FirstPreset() const; |
|
47 TInt NextPreset( TInt aFromIndex ) const; |
|
48 TInt DeletePreset( TInt aIndex ); |
|
49 TInt SavePresetL( const TPreset& aPreset, TInt aIndex ); |
|
50 void ReadPresetL( TInt aIndex, TPreset& aPreset ); |
|
51 |
|
52 private: |
|
53 |
|
54 /** |
|
55 * Default class constructor. |
|
56 */ |
|
57 CPresetUtilityBody(); |
|
58 |
|
59 /** |
|
60 * Second phase class constructor. |
|
61 */ |
|
62 void ConstructL(); |
|
63 |
|
64 private: |
|
65 |
|
66 // Observer object |
|
67 MPresetUtilityObserver* iObserver; |
|
68 |
|
69 // Central Repository interface |
|
70 CCenrepHandler* iCenrepHandler; |
|
71 |
|
72 }; |
|
73 |
|
74 #endif // C_PRESETUTILITYBODY_H |
|