|
1 /* |
|
2 * Copyright (c) 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: Execution context class definition. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_VTUIEXECUTIONCONTEXT_H |
|
20 #define C_VTUIEXECUTIONCONTEXT_H |
|
21 |
|
22 #include "cvtuicmdcontext.h" |
|
23 |
|
24 /** |
|
25 * CVtUiExecutionContext |
|
26 * |
|
27 * Command execution context. This context is used for checking whether or not |
|
28 * a command is allowed to be performed. |
|
29 * |
|
30 * @since S60 v3.2 |
|
31 */ |
|
32 NONSHARABLE_CLASS( CVtUiExecutionContext ) : public CVtUiCmdContext |
|
33 { |
|
34 |
|
35 public: // public methods |
|
36 |
|
37 /** |
|
38 * C++ destructor. |
|
39 */ |
|
40 ~CVtUiExecutionContext(); |
|
41 |
|
42 /** |
|
43 * Static constructor. |
|
44 * |
|
45 * @param aCommandManager Reference to command manager. |
|
46 * @return Newly created instance of CVtUiExecutionContext class. |
|
47 */ |
|
48 static CVtUiExecutionContext* NewL( MVtUiCommandManager& aCommandManager ); |
|
49 |
|
50 public: // from CVtUiCmdContext |
|
51 |
|
52 /** |
|
53 * @see CVtUiCmdContext::ValidateL |
|
54 */ |
|
55 void ValidateL( CVtUiCmdValidationActionBase& aAction ); |
|
56 |
|
57 private: |
|
58 |
|
59 /** |
|
60 * C++ constructor |
|
61 */ |
|
62 CVtUiExecutionContext( MVtUiCommandManager& aCommandManager ); |
|
63 |
|
64 /** |
|
65 * 2nd constructor, may leave. |
|
66 */ |
|
67 void ConstructL(); |
|
68 |
|
69 private: // data |
|
70 |
|
71 }; |
|
72 |
|
73 #endif // C_VTUIEXECUTIONCONTEXT_H |