|
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: |
|
15 * Current Position info pop-up. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __CBLIDCURRENTPOSITIONDLG_H__ |
|
21 #define __CBLIDCURRENTPOSITIONDLG_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <aknPopup.h> // CAknPopupList |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CAknSingleHeadingPopupMenuStyleListBox; |
|
28 class CBlidBaseView; |
|
29 class MBlidLocation; |
|
30 class CBlidEng; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * @internal Only Blid application internal use supported! |
|
36 * |
|
37 * Current location info dialog. |
|
38 */ |
|
39 class CBlidCurrentPositionDlg : public CAknPopupList |
|
40 { |
|
41 public: |
|
42 /** |
|
43 * Creates a new instance of this class. |
|
44 */ |
|
45 static CBlidCurrentPositionDlg* NewL( CBlidBaseView& aView, |
|
46 MBlidLocation* aLoc, |
|
47 CBlidEng* aEng ); |
|
48 |
|
49 /** |
|
50 * Run the dialog. |
|
51 */ |
|
52 void ExecuteLD(); |
|
53 |
|
54 /** |
|
55 * Destructor. |
|
56 * Also cancels and dismisses this popup list, in other words makes |
|
57 * ExecuteLD return as if cancel was pressed. |
|
58 */ |
|
59 ~CBlidCurrentPositionDlg(); |
|
60 |
|
61 public: // new function |
|
62 void ChangeDlgSoftKey(); |
|
63 |
|
64 private: // from CAknPopupList |
|
65 /*! |
|
66 @function CBlidCurrentPositionDlg |
|
67 |
|
68 @discussion Perform the first phase of two phase construction |
|
69 */ |
|
70 CBlidCurrentPositionDlg( CBlidBaseView& aView, |
|
71 MBlidLocation* aLoc, |
|
72 CBlidEng* aEng ); |
|
73 |
|
74 /** |
|
75 * By default Symbian 2nd phase constructor is private. |
|
76 */ |
|
77 void ConstructL(); |
|
78 |
|
79 void ProcessCommandL(TInt aCommandId); |
|
80 |
|
81 private: // data members |
|
82 /// Own: default selection listbox |
|
83 CAknSingleHeadingPopupMenuStyleListBox* iListBox; |
|
84 CBlidBaseView& iView; |
|
85 // Not owned: A pointer to location model |
|
86 MBlidLocation* iLoc; |
|
87 // Not owned: A pointer to blid's engine |
|
88 CBlidEng* iEng; |
|
89 |
|
90 TBool isDlgExited; |
|
91 |
|
92 TBool isLmSaved; |
|
93 |
|
94 }; |
|
95 |
|
96 #endif // __CBLIDCURRENTPOSITIONDLG_H__ |
|
97 |
|
98 // End of File |