|
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: See class definition below. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __TMCETESTUIENGINECMDBASE_H__ |
|
21 #define __TMCETESTUIENGINECMDBASE_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include "CMCETestUIEngine.h" |
|
25 #include "MCETestUIEngineConstants.h" |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 |
|
29 // CLASS DEFINITION |
|
30 /** |
|
31 * TMCETestUIEngineCmdBase implements the base class for all |
|
32 * MCETestUI commands. It provides common interface for resolving |
|
33 * meaning of a command and to execute it. |
|
34 */ |
|
35 class TMCETestUIEngineCmdBase |
|
36 { |
|
37 public: // destructor |
|
38 |
|
39 /** |
|
40 * Virtual destructor. |
|
41 */ |
|
42 IMPORT_C virtual ~TMCETestUIEngineCmdBase(); |
|
43 |
|
44 protected: // Constructors |
|
45 |
|
46 /** |
|
47 * Constructor. |
|
48 * |
|
49 * @param aEngine UI Engine |
|
50 */ |
|
51 TMCETestUIEngineCmdBase( CMCETestUIEngine& aEngine ); |
|
52 |
|
53 private: // Constructors |
|
54 |
|
55 /** |
|
56 * C++ default constructor. Not implemented. |
|
57 */ |
|
58 TMCETestUIEngineCmdBase(); |
|
59 |
|
60 public: // Abstract methods |
|
61 |
|
62 /** |
|
63 * Executes a sequence of operations. |
|
64 */ |
|
65 virtual void ExecuteL() = 0; |
|
66 |
|
67 /** |
|
68 * @return short textual representation for behavior of command |
|
69 */ |
|
70 virtual const TDesC& Caption() const = 0; |
|
71 |
|
72 protected: // Data |
|
73 |
|
74 /// Reference to the UI Engine. Not owned. |
|
75 CMCETestUIEngine& iEngine; |
|
76 |
|
77 }; |
|
78 |
|
79 #endif // __TMCETESTUIENGINECMDBASE_H__ |