1 /* |
|
2 * Copyright (c) 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: This class implements a customized pop-up |
|
15 which disables LSK if no city/country match is there |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef STARTUPPOPUPLIST_H |
|
21 #define STARTUPPOPUPLIST_H |
|
22 |
|
23 #include <aknPopup.h> |
|
24 #include <aknlists.h> |
|
25 #include <eiklbx.h> |
|
26 |
|
27 NONSHARABLE_CLASS(CStartupPopupList) : public CAknPopupList, |
|
28 public MListBoxItemChangeObserver |
|
29 { |
|
30 private: |
|
31 |
|
32 /** |
|
33 * Constructor |
|
34 */ |
|
35 CStartupPopupList(); |
|
36 |
|
37 /** |
|
38 * @param aListBox Pre-existing listbox-derived class |
|
39 * @param aCbaResource Softkey pane to display while pop-up is active |
|
40 */ |
|
41 void ConstructL(CAknSinglePopupMenuStyleListBox* aListBox, |
|
42 TInt aCbaResource, AknPopupLayouts::TAknPopupLayouts aType); |
|
43 |
|
44 public: |
|
45 /** |
|
46 * Destructor |
|
47 */ |
|
48 ~CStartupPopupList(); |
|
49 |
|
50 /** |
|
51 * Two-phased constructor. |
|
52 * @param aListBox Pre-existing listbox-derived class |
|
53 * @param aCbaResource Softkey pane to display while pop-up is active |
|
54 * @return CStartupPopupList* |
|
55 */ |
|
56 static CStartupPopupList* NewL(CAknSinglePopupMenuStyleListBox* |
|
57 aListBox, TInt aCbaResource, |
|
58 AknPopupLayouts::TAknPopupLayouts aType); |
|
59 |
|
60 /** |
|
61 * From CCoeControl, handle activation of control. |
|
62 */ |
|
63 void ActivateL(); |
|
64 |
|
65 /** |
|
66 * From MListBoxItemChangeObserver, handle enable/disable LSK |
|
67 */ |
|
68 void ListBoxItemsChanged(CEikListBox* aListBox); |
|
69 |
|
70 /** |
|
71 * From CCoeControl, handles pointer events in this control. |
|
72 */ |
|
73 void HandlePointerEventL(const TPointerEvent& aPointerEvent); |
|
74 }; |
|
75 |
|
76 #endif //STARTUPPOPUPLIST_H |
|
77 |
|
78 |
|
79 |
|