1 /* |
|
2 * Copyright (c) 2006-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 of CFMRadioGlobalConfirmationQuery |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_CFMRADIOGLOBALCONFIRMATIONQUERY_H |
|
20 #define C_CFMRADIOGLOBALCONFIRMATIONQUERY_H |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 class CAknGlobalConfirmationQuery; |
|
25 |
|
26 /** |
|
27 * Observer for global confirmation query event. |
|
28 */ |
|
29 class MFMRadioGlobalConfirmationQueryObserver |
|
30 { |
|
31 public: |
|
32 |
|
33 /** |
|
34 * Callback function that is called when global confirmation |
|
35 * query is dismissed. |
|
36 * |
|
37 * @param aSoftKey The softkey used to dismiss the query. |
|
38 */ |
|
39 virtual void GlobalConfirmationQueryDismissedL(TInt aSoftKey) = 0; |
|
40 }; |
|
41 |
|
42 |
|
43 /** |
|
44 * FM Radio global confirmation query. |
|
45 * |
|
46 * Must be deleted after used once. |
|
47 */ |
|
48 class CFMRadioGlobalConfirmationQuery : public CActive |
|
49 { |
|
50 |
|
51 public: |
|
52 |
|
53 /** |
|
54 * Static constructor. |
|
55 */ |
|
56 static CFMRadioGlobalConfirmationQuery* NewL(MFMRadioGlobalConfirmationQueryObserver* aObserver = NULL); |
|
57 |
|
58 /** |
|
59 * Static constructor. |
|
60 */ |
|
61 static CFMRadioGlobalConfirmationQuery* NewLC(MFMRadioGlobalConfirmationQueryObserver* aObserver = NULL); |
|
62 |
|
63 /** |
|
64 * Destructor. |
|
65 */ |
|
66 virtual ~CFMRadioGlobalConfirmationQuery(); |
|
67 |
|
68 /** |
|
69 * Shows the query. |
|
70 * |
|
71 * @param aText Query text. |
|
72 * @param aSoftkeys Query softkeys. |
|
73 * @param aAnimation Query animation. |
|
74 */ |
|
75 void ShowQueryL(const TDesC& aText, TInt aSoftkeys, TInt aAnimation); |
|
76 |
|
77 // From base class CActive |
|
78 protected: |
|
79 void RunL(); |
|
80 void DoCancel(); |
|
81 TInt RunError(TInt aError); |
|
82 |
|
83 private: |
|
84 /** |
|
85 * C++ default constructor. |
|
86 */ |
|
87 CFMRadioGlobalConfirmationQuery(MFMRadioGlobalConfirmationQueryObserver* aObserver = NULL); |
|
88 |
|
89 /** |
|
90 * 2nd phase constructor. |
|
91 */ |
|
92 void ConstructL(); |
|
93 |
|
94 private: // data |
|
95 |
|
96 /** |
|
97 * Pointer to avkon global confirmation query. Owned! |
|
98 */ |
|
99 CAknGlobalConfirmationQuery* iAknGlobalConfirmationQuery; |
|
100 |
|
101 /** |
|
102 * Text of global confirmation query. Owned! |
|
103 */ |
|
104 HBufC* iText; |
|
105 |
|
106 /** |
|
107 * Observer for global confirmation query. Not owned! |
|
108 */ |
|
109 MFMRadioGlobalConfirmationQueryObserver* iObserver; |
|
110 }; |
|
111 |
|
112 #endif // C_CFMRADIOGLOBALCONFIRMATIONQUERY_H |
|