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 CAknMemorySelectionSettingPage.h |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_TESTSDKCFDCONTROL_H |
|
20 #define C_TESTSDKCFDCONTROL_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <coecntrl.h> |
|
24 #include <e32std.h> |
|
25 #include <testclassassert.h> |
|
26 #include <stifitemparser.h> |
|
27 #include <caknmemoryselectionsettingpage.h> |
|
28 #include <maknmemoryselectionobserver.h> |
|
29 |
|
30 /** |
|
31 * CTestControl is used to add setting page control in its window |
|
32 */ |
|
33 class CTestControl : public CCoeControl, public MAknMemorySelectionObserver |
|
34 { |
|
35 public: |
|
36 /** |
|
37 * Two-phased constructor. |
|
38 */ |
|
39 static CTestControl* NewL(); |
|
40 |
|
41 /** |
|
42 * Destructor. |
|
43 */ |
|
44 ~CTestControl(); |
|
45 |
|
46 /** |
|
47 * Public function to test setting page RunDL function. |
|
48 */ |
|
49 TInt TestSettingPageRunLDL( CStifItemParser& aItem ); |
|
50 |
|
51 /** |
|
52 * from MAknMemorySelectionObserver. |
|
53 */ |
|
54 TBool OkToExitL( CAknMemorySelectionDialog::TMemory aMemory ); |
|
55 |
|
56 private: |
|
57 |
|
58 /** |
|
59 * Constructor. |
|
60 */ |
|
61 CTestControl(); |
|
62 |
|
63 /** |
|
64 * By default Symbian 2nd phase constructor is private. |
|
65 */ |
|
66 void ConstructL(); |
|
67 |
|
68 /** |
|
69 * Receive key events. |
|
70 */ |
|
71 TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType); |
|
72 |
|
73 /** |
|
74 * Draw control. |
|
75 */ |
|
76 void Draw(const TRect& aRect) const; |
|
77 |
|
78 /** |
|
79 * Return number of controls in its window. |
|
80 */ |
|
81 TInt CountComponentControls() const; |
|
82 |
|
83 /** |
|
84 * Controls in its window. |
|
85 */ |
|
86 CCoeControl* ComponentControl(TInt aIndex) const; |
|
87 |
|
88 /** |
|
89 * Resize screen. |
|
90 */ |
|
91 void SizeChanged(); |
|
92 |
|
93 private: |
|
94 //data |
|
95 CAknMemorySelectionSettingPage* iSettingPage; |
|
96 }; |
|
97 |
|
98 #endif /*C_TESTSDKCFDCONTROL_H*/ |
|