|
1 /* |
|
2 * Copyright (c) 2005 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __CMCETESTUIENGINEINEVENT_H__ |
|
22 #define __CMCETESTUIENGINEINEVENT_H__ |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 #include "TMCETestUIEngineCmdBase.h" |
|
27 #include "CMCETestUIEngine.h" |
|
28 #include "cmcetestuiengineevent.h" |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 |
|
32 class CMceInEvent; |
|
33 |
|
34 |
|
35 // CLASS DECLARATION |
|
36 /** |
|
37 * |
|
38 * CMCETestUIEngineInSession provides a wrapper for CMCEInSession. |
|
39 * Class is not the traditional wrapper in a sense that it would |
|
40 * conform to interface provided by CMCEInSession. Instead class |
|
41 * implements interface MMCETestUIEngineCmdProvider to provide |
|
42 * same kind of functionality in controlled way on different levels |
|
43 * of abstraction. |
|
44 * |
|
45 */ |
|
46 class CMCETestUIEngineInEvent : public CMCETestUIEngineEvent |
|
47 { |
|
48 |
|
49 public: // Constructors and destructors |
|
50 |
|
51 |
|
52 /** |
|
53 * Two-phased constructor. Not imported. |
|
54 */ |
|
55 static CMCETestUIEngineInEvent* NewL( |
|
56 CMCETestUIEngine& aEngine, |
|
57 CMceInEvent* aInEvent ); |
|
58 |
|
59 /** |
|
60 * Destructor. |
|
61 */ |
|
62 IMPORT_C ~CMCETestUIEngineInEvent(); |
|
63 |
|
64 public: // From MMCETestUICommandProvider |
|
65 |
|
66 /** |
|
67 * Gets the commands applicaple to this insession object. |
|
68 * |
|
69 * @return reference to array of commands |
|
70 */ |
|
71 IMPORT_C const RPointerArray<TMCETestUIEngineCmdBase>& |
|
72 GetCommandsL(); |
|
73 |
|
74 public: // From base class |
|
75 |
|
76 /** |
|
77 * @return Id of this particular insession object |
|
78 */ |
|
79 IMPORT_C TInt Id() const; |
|
80 |
|
81 public: // New functions, internal |
|
82 |
|
83 /** |
|
84 * Gets wrapped MCEInSession object |
|
85 * |
|
86 * @return wrapped MCEInSession |
|
87 */ |
|
88 CMceInEvent& InEvent(); |
|
89 |
|
90 private: // private constructors |
|
91 |
|
92 /** |
|
93 * C++ default constructor. Not implemented. |
|
94 */ |
|
95 CMCETestUIEngineInEvent(); |
|
96 |
|
97 /** |
|
98 * C++ first phase constructor. |
|
99 */ |
|
100 CMCETestUIEngineInEvent( |
|
101 CMCETestUIEngine& aEngine, |
|
102 CMceInEvent* aInEvent ); |
|
103 |
|
104 /** |
|
105 * Symbian second-phase constructor |
|
106 */ |
|
107 void ConstructL(); |
|
108 |
|
109 |
|
110 private: // owned data |
|
111 |
|
112 // Wrapped CMCEInSession object |
|
113 CMceInEvent* iInEvent; |
|
114 |
|
115 // Id of this insession object |
|
116 TInt iId; |
|
117 |
|
118 }; |
|
119 |
|
120 #endif // __CMCETESTUIENGINEINSESSION_H__ |