|
1 /* |
|
2 * Copyright (c) 2007 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: CSysApCenRepFmTxObserver class definition. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef SYSAPCENREPFMTXOBSERVER_H |
|
20 #define SYSAPCENREPFMTXOBSERVER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <cenrepnotifyhandler.h> |
|
25 |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CRepository; |
|
29 class CSysApAppUi; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * CSysApCenRepFmTxObserver |
|
35 * |
|
36 * Observer class for FM TX related Central Repository keys. |
|
37 * |
|
38 * @lib None. |
|
39 * @since 3.2 |
|
40 */ |
|
41 |
|
42 class CSysApCenRepFmTxObserver : public CBase, public MCenRepNotifyHandlerCallback |
|
43 { |
|
44 public: // Constructors and destructor |
|
45 /** |
|
46 * Symbian two-phased constructor. |
|
47 */ |
|
48 static CSysApCenRepFmTxObserver* NewL( CSysApAppUi& aSysApAppUi ); |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 virtual ~CSysApCenRepFmTxObserver(); |
|
54 |
|
55 private: |
|
56 |
|
57 /** |
|
58 * Symbian 2nd-phase constructor. |
|
59 * @param None |
|
60 * @return void |
|
61 */ |
|
62 void ConstructL( ); |
|
63 |
|
64 /** |
|
65 * Constructor |
|
66 * @param CSysApAppUi& aSysApAppUi |
|
67 * @return void |
|
68 */ |
|
69 CSysApCenRepFmTxObserver( CSysApAppUi& aSysApAppUi ); |
|
70 |
|
71 /** |
|
72 * C++ default constructor. |
|
73 * @param None |
|
74 * @return void |
|
75 */ |
|
76 CSysApCenRepFmTxObserver(); |
|
77 |
|
78 public: // From MCenRepNotifyHandlerCallback |
|
79 void HandleNotifyInt( TUint32 aId, TInt aNewValue ); |
|
80 void HandleNotifyError( TUint32 aId, TInt error, CCenRepNotifyHandler* aHandler ); |
|
81 |
|
82 public: // Other functions |
|
83 |
|
84 /** |
|
85 * Returns the current frequency |
|
86 * |
|
87 * @return TInt |
|
88 */ |
|
89 TInt Frequency() const; |
|
90 |
|
91 private: |
|
92 // By default, prohibit copy constructor |
|
93 CSysApCenRepFmTxObserver( const CSysApCenRepFmTxObserver& ); |
|
94 |
|
95 // Prohibit assigment operator |
|
96 CSysApCenRepFmTxObserver& operator= ( const CSysApCenRepFmTxObserver& ); |
|
97 |
|
98 private: |
|
99 /** |
|
100 * SysAp application class. |
|
101 */ |
|
102 CSysApAppUi& iSysApAppUi; |
|
103 |
|
104 /** |
|
105 * CenRep session for FM TX keys. |
|
106 * Own. |
|
107 */ |
|
108 CRepository* iSession; |
|
109 |
|
110 /** |
|
111 * Notify handler for FM TX CenRep key. |
|
112 * Own. |
|
113 */ |
|
114 CCenRepNotifyHandler* iFmTxPowerStateHandler; |
|
115 |
|
116 /** |
|
117 * Tuned FM TX frequency. |
|
118 */ |
|
119 TInt iFrequency; |
|
120 }; |
|
121 |
|
122 #endif // SYSAPCENREPFMTXOBSERVER_H |
|
123 |
|
124 // End of File |