|
1 /* |
|
2 * Copyright (c) 2002 - 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: test aknPopup.h |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDES |
|
20 |
|
21 #include <coecobs.h> |
|
22 #include <aknpopupheadingpane.h> |
|
23 #include <barsread.h> |
|
24 #include <coemain.h> |
|
25 #include <testsdkpopups.rsg> |
|
26 |
|
27 #include "testsdkpopupspl.h" |
|
28 |
|
29 // ============================ MEMBER FUNCTIONS =============================== |
|
30 // ----------------------------------------------------------------------------- |
|
31 // CTestSDKPopupsPL::CTestSDKPopupsPL |
|
32 // ----------------------------------------------------------------------------- |
|
33 CTestSDKPopupsPL::CTestSDKPopupsPL():CAknPopupList() |
|
34 { |
|
35 |
|
36 } |
|
37 |
|
38 // ----------------------------------------------------------------------------- |
|
39 // CTestSDKPopupsPL::~CTestSDKPopupsPL |
|
40 // ----------------------------------------------------------------------------- |
|
41 CTestSDKPopupsPL::~CTestSDKPopupsPL() |
|
42 { |
|
43 |
|
44 } |
|
45 |
|
46 // ----------------------------------------------------------------------------- |
|
47 // CTestSDKPopupsPL::Layout |
|
48 // ----------------------------------------------------------------------------- |
|
49 TAknPopupWindowLayoutDef& CTestSDKPopupsPL::Layout() |
|
50 { |
|
51 return CAknPopupList::Layout(); |
|
52 } |
|
53 |
|
54 // ----------------------------------------------------------------------------- |
|
55 // CTestSDKPopupsPL::NewL |
|
56 // ----------------------------------------------------------------------------- |
|
57 CTestSDKPopupsPL* CTestSDKPopupsPL::NewL( CEikListBox* aListBox, TInt aCbaResource, |
|
58 AknPopupLayouts::TAknPopupLayouts aType ) |
|
59 { |
|
60 return static_cast<CTestSDKPopupsPL*> ( CAknPopupList::NewL( aListBox, aCbaResource, aType ) ); |
|
61 } |
|
62 |
|
63 // ----------------------------------------------------------------------------- |
|
64 // CTestSDKPopupsPL::ProcessCommandL |
|
65 // ----------------------------------------------------------------------------- |
|
66 void CTestSDKPopupsPL::ProcessCommandL( TInt aCommandId ) |
|
67 { |
|
68 CAknPopupList::ProcessCommandL( aCommandId ); |
|
69 } |
|
70 |
|
71 // ----------------------------------------------------------------------------- |
|
72 // CTestSDKPopupsPL::HandleListBoxEventL |
|
73 // ----------------------------------------------------------------------------- |
|
74 void CTestSDKPopupsPL::HandleListBoxEventL( CEikListBox* aListBox, TListBoxEvent aEventType ) |
|
75 { |
|
76 CAknPopupList::HandleListBoxEventL( aListBox, aEventType ); |
|
77 } |
|
78 |
|
79 // ----------------------------------------------------------------------------- |
|
80 // CTestSDKPopupsPL::HandleControlEventL |
|
81 // ----------------------------------------------------------------------------- |
|
82 void CTestSDKPopupsPL::HandleControlEventL( CCoeControl* aControl, TCoeEvent aEventType ) |
|
83 { |
|
84 CAknPopupList::HandleControlEventL( aControl, aEventType ); |
|
85 } |
|
86 |
|
87 // ----------------------------------------------------------------------------- |
|
88 // CTestSDKPopupsPL::AttemptExitL |
|
89 // ----------------------------------------------------------------------------- |
|
90 void CTestSDKPopupsPL::AttemptExitL(TBool aAccept) |
|
91 { |
|
92 CAknPopupList::AttemptExitL( aAccept ); |
|
93 } |
|
94 |
|
95 // ----------------------------------------------------------------------------- |
|
96 // CTestSDKPopupsPL::SetupWindowLayout |
|
97 // ----------------------------------------------------------------------------- |
|
98 void CTestSDKPopupsPL::SetupWindowLayout( AknPopupLayouts::TAknPopupLayouts aType ) |
|
99 { |
|
100 CAknPopupList::SetupWindowLayout( aType ); |
|
101 } |
|
102 |
|
103 // ----------------------------------------------------------------------------- |
|
104 // CTestSDKPopupsPL::SetupWindowLayout |
|
105 // ----------------------------------------------------------------------------- |
|
106 CEikListBox* CTestSDKPopupsPL::ListBox() const |
|
107 { |
|
108 return CAknPopupList::ListBox(); |
|
109 } |
|
110 |
|
111 // ----------------------------------------------------------------------------- |
|
112 // CTestSDKPopupsPL::SetupWindowLayout |
|
113 // ----------------------------------------------------------------------------- |
|
114 const TAknPopupWindowLayoutDef& CTestSDKPopupsPL::Layout() const |
|
115 { |
|
116 return CAknPopupList::Layout(); |
|
117 } |
|
118 |
|
119 // ----------------------------------------------------------------------------- |
|
120 // CTestSDKPopupsPL::MopSupplyObject |
|
121 // ----------------------------------------------------------------------------- |
|
122 TTypeUid::Ptr CTestSDKPopupsPL::MopSupplyObject( TTypeUid aId ) |
|
123 { |
|
124 return CAknPopupList::MopSupplyObject( aId ); |
|
125 } |
|
126 |
|
127 // ----------------------------------------------------------------------------- |
|
128 // CTestSDKPopupsPL::HandleResourceChange |
|
129 // ----------------------------------------------------------------------------- |
|
130 void CTestSDKPopupsPL::HandleResourceChange( TInt aType ) |
|
131 { |
|
132 CAknPopupList::HandleResourceChange( aType ); |
|
133 } |
|
134 |
|
135 // ----------------------------------------------------------------------------- |
|
136 // CTestSDKPopupsPL::FadeBehindPopup |
|
137 // ----------------------------------------------------------------------------- |
|
138 void CTestSDKPopupsPL::FadeBehindPopup( TBool aFade ) |
|
139 { |
|
140 CAknPopupList::FadeBehindPopup( aFade ); |
|
141 } |
|
142 |
|
143 // ----------------------------------------------------------------------------- |
|
144 // CTestSDKPopupsPL::ActivateGc |
|
145 // ----------------------------------------------------------------------------- |
|
146 void CTestSDKPopupsPL::ActivateGc() const |
|
147 { |
|
148 CAknPopupList::ActivateGc(); |
|
149 } |
|
150 |
|
151 // ----------------------------------------------------------------------------- |
|
152 // CTestSDKPopupsPL::DeactivateGc |
|
153 // ----------------------------------------------------------------------------- |
|
154 void CTestSDKPopupsPL::DeactivateGc() const |
|
155 { |
|
156 CAknPopupList::DeactivateGc(); |
|
157 } |