|
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 #ifndef C_TESTSDKPOPUPSPL_H |
|
20 #define C_TESTSDKPOPUPSPL_H |
|
21 |
|
22 #include <aknpopup.h> |
|
23 #include <coecobs.h> |
|
24 |
|
25 |
|
26 class CTestSDKPopupsPL : public CAknPopupList |
|
27 { |
|
28 private:// Constructors and destructor |
|
29 /** |
|
30 * C++ default constructor. |
|
31 */ |
|
32 CTestSDKPopupsPL(); |
|
33 |
|
34 public: |
|
35 /** |
|
36 * Destructor. |
|
37 */ |
|
38 ~CTestSDKPopupsPL(); |
|
39 |
|
40 /** |
|
41 * Two-phased constructor. |
|
42 */ |
|
43 static CTestSDKPopupsPL* NewL( CEikListBox* aListBox, TInt aCbaResource, |
|
44 AknPopupLayouts::TAknPopupLayouts aType = AknPopupLayouts::EMenuWindow ); |
|
45 public: |
|
46 /** |
|
47 * Layout test function for testing the |
|
48 * Test Layout function |
|
49 */ |
|
50 TAknPopupWindowLayoutDef& Layout(); |
|
51 |
|
52 /** |
|
53 * ProcessCommandL test function for testing the |
|
54 * Test ProcessCommandL function |
|
55 */ |
|
56 void ProcessCommandL( TInt aCommandId ); |
|
57 |
|
58 /** |
|
59 * HandleListBoxEventL test function for testing the |
|
60 * Test HandleListBoxEventL function |
|
61 */ |
|
62 void HandleListBoxEventL( CEikListBox* aListBox, TListBoxEvent aEventType ); |
|
63 |
|
64 /** |
|
65 * HandleControlEventL test function for testing the |
|
66 * Test HandleControlEventL function |
|
67 */ |
|
68 void HandleControlEventL( CCoeControl* aControl, TCoeEvent aEventType ); |
|
69 |
|
70 /** |
|
71 * AttemptExitL test function for testing the |
|
72 * Test AttemptExitL function |
|
73 */ |
|
74 void AttemptExitL( TBool aAccept ); |
|
75 |
|
76 /** |
|
77 * SetupWindowLayout test function for testing the |
|
78 * Test SetupWindowLayout function |
|
79 */ |
|
80 void SetupWindowLayout( AknPopupLayouts::TAknPopupLayouts aType ); |
|
81 |
|
82 /** |
|
83 * ListBox test function for testing the |
|
84 * Test ListBox function |
|
85 */ |
|
86 CEikListBox* ListBox() const; |
|
87 |
|
88 /** |
|
89 * Layout test function for testing the |
|
90 * Test Layout function |
|
91 */ |
|
92 const TAknPopupWindowLayoutDef& Layout() const; |
|
93 |
|
94 /** |
|
95 * MopSupplyObject test function for testing the |
|
96 * Test MopSupplyObject function |
|
97 */ |
|
98 TTypeUid::Ptr MopSupplyObject( TTypeUid aId ); |
|
99 |
|
100 /** |
|
101 * HandleResourceChange test function for testing the |
|
102 * Test HandleResourceChange function |
|
103 */ |
|
104 void HandleResourceChange( TInt aType ); |
|
105 |
|
106 /** |
|
107 * FadeBehindPopup test function for testing the |
|
108 * Test FadeBehindPopup function |
|
109 */ |
|
110 void FadeBehindPopup( TBool aFade ); |
|
111 |
|
112 /** |
|
113 * ActivateGc test function for accessing the |
|
114 * protected function ActivateGc |
|
115 */ |
|
116 void ActivateGc() const; |
|
117 |
|
118 /** |
|
119 * DeactivateGc test function for accessing the |
|
120 * protected function DeactivateGc |
|
121 */ |
|
122 void DeactivateGc() const; |
|
123 |
|
124 |
|
125 }; |
|
126 |
|
127 #endif /*C_TESTSDKPOPUPSPL_H*/ |