1 /* |
|
2 * Copyright (c) 2005-2006 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: Header file for CFMRadioFrequencyQueryDialog |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef FMRADIOFREQUENCYQUERYDIALOG_H |
|
20 #define FMRADIOFREQUENCYQUERYDIALOG_H |
|
21 |
|
22 #include <AknQueryDialog.h> |
|
23 |
|
24 /** |
|
25 * Custom query dialog for frequency. |
|
26 */ |
|
27 class CFMRadioFrequencyQueryDialog : public CAknQueryDialog |
|
28 { |
|
29 |
|
30 public: // Methods |
|
31 |
|
32 /** |
|
33 * Static constructor. |
|
34 */ |
|
35 static CFMRadioFrequencyQueryDialog* NewL( TUint32& aFreq, |
|
36 const TTone& aTone = ENoTone ); |
|
37 |
|
38 /** |
|
39 * Destructor. |
|
40 */ |
|
41 ~CFMRadioFrequencyQueryDialog(); |
|
42 |
|
43 /** |
|
44 * Returns the frequency currently set in this dialog. |
|
45 * |
|
46 * @return ?description |
|
47 */ |
|
48 TUint32 Frequency() const; |
|
49 |
|
50 // from base class MAknQueryControlObserver |
|
51 /** |
|
52 * From MAknQueryControlObserver |
|
53 * |
|
54 * @see MAknQueryControlObserver::HandleQueryEditorStateEventL |
|
55 */ |
|
56 TBool HandleQueryEditorStateEventL( |
|
57 CAknQueryControl* aQueryControl, |
|
58 TQueryControlEvent aEventType, |
|
59 TQueryValidationStatus aStatus ); |
|
60 |
|
61 protected: // Methods |
|
62 |
|
63 // from base class CAknQueryDialog |
|
64 /** |
|
65 * From CAknQueryDialog |
|
66 * |
|
67 * @see CAknQueryDialog::QueryControl() const |
|
68 */ |
|
69 CAknQueryControl* QueryControl() const; |
|
70 |
|
71 /** |
|
72 * From CAknQueryDialog |
|
73 * |
|
74 * @see CAknQueryDialog::UpdateLeftSoftKeyL() |
|
75 */ |
|
76 void UpdateLeftSoftKeyL(); |
|
77 |
|
78 /** |
|
79 * From CAknQueryDialog OkToExitL |
|
80 */ |
|
81 TBool OkToExitL(TInt aButtonId); |
|
82 |
|
83 // from base class CEikDialog |
|
84 /** |
|
85 * From CEikDialog |
|
86 * |
|
87 * @see CEikDialog::PreLayoutDynInitL() |
|
88 */ |
|
89 void PreLayoutDynInitL(); |
|
90 |
|
91 private: //Methods |
|
92 |
|
93 /** |
|
94 * C++ default constructor. |
|
95 */ |
|
96 CFMRadioFrequencyQueryDialog( TUint32& aFreq, const TTone& aTone = ENoTone ); |
|
97 |
|
98 |
|
99 private: |
|
100 |
|
101 /** |
|
102 * Current frequency |
|
103 */ |
|
104 TUint32& iFreq; |
|
105 |
|
106 }; |
|
107 |
|
108 #endif // FMRADIOFREQUENCYQUERYDIALOG_H |
|
109 |
|