|
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: MpxCollectionTest test module. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef PATHOPTIONMENU_H |
|
19 #define PATHOPTIONMENU_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <mpxcollectionobserver.h> |
|
23 #include "testmenuview.h" |
|
24 |
|
25 |
|
26 // MACROS |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class MMPXCollectionUtility; |
|
30 class CMPXCollectionPath; |
|
31 class CStifLogger; |
|
32 |
|
33 // DATA TYPES |
|
34 _LIT(KTxtPathOptionMenu, "PathOptionMenu"); |
|
35 |
|
36 // CLASS DECLARATION |
|
37 class CPathOptionMenu : public CTestMenuView |
|
38 { |
|
39 public: |
|
40 /** |
|
41 * Two-phased constructor |
|
42 * @return object of CConsoleMain |
|
43 */ |
|
44 static CPathOptionMenu* NewL(CConsoleMain* aConsoleMain, |
|
45 CTestBaseView* aParent, |
|
46 const TDesC& aName, |
|
47 CStifLogger* aLogger); |
|
48 |
|
49 /** |
|
50 * Destructor of CConsoleMain |
|
51 */ |
|
52 virtual ~CPathOptionMenu(); |
|
53 |
|
54 /** |
|
55 * Set the handling path |
|
56 */ |
|
57 void SetPathL(CMPXCollectionPath& aPath); |
|
58 |
|
59 public: //From base classes |
|
60 /** |
|
61 * From CTestBaseView |
|
62 * Initialize the view before display view |
|
63 */ |
|
64 void InitializeViewL(); |
|
65 |
|
66 /** |
|
67 * From CTestBaseView |
|
68 * Cleanup the view before deactivate/destroy view |
|
69 */ |
|
70 void CleanupViewL(); |
|
71 |
|
72 /** |
|
73 * From CTestBaseView |
|
74 * Handle number key press |
|
75 */ |
|
76 void HandleNumKeyL(); |
|
77 |
|
78 /** |
|
79 * From CTestBaseView |
|
80 * Handle left key press |
|
81 */ |
|
82 void HandleLeftKeyL(); |
|
83 |
|
84 /** |
|
85 * From CTestBaseView |
|
86 * Handle right/enter key press |
|
87 */ |
|
88 void HandleRightKeyL(); |
|
89 |
|
90 |
|
91 private: |
|
92 /** |
|
93 * C++ default constructor. |
|
94 */ |
|
95 CPathOptionMenu(CConsoleMain* aConsoleMain, |
|
96 CTestBaseView* aParent, |
|
97 const TDesC& aName, |
|
98 CStifLogger* aLogger); |
|
99 |
|
100 /** |
|
101 * the second phase constructor ConstructL to safely construct things |
|
102 * that can leave |
|
103 */ |
|
104 void ConstructL(); |
|
105 |
|
106 private: //data |
|
107 CStifLogger* iLogger; //uses |
|
108 CMPXCollectionPath* iCollectionPath; |
|
109 |
|
110 |
|
111 }; |
|
112 |
|
113 #endif //PATHOPTIONMENU_H |