equal
deleted
inserted
replaced
|
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: Feature based UI command base class definition. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_VTUIFEATURECMDBASE_H |
|
20 #define C_VTUIFEATURECMDBASE_H |
|
21 |
|
22 #include "cvtuicmdbase.h" |
|
23 |
|
24 class MVtUiFeature; |
|
25 |
|
26 /** |
|
27 * CVtUiCmdBase |
|
28 * |
|
29 * Base class for all UI commands that are feature based. |
|
30 * |
|
31 * @since S60 v3.2 |
|
32 */ |
|
33 NONSHARABLE_CLASS( CVtUiFeatureCmdBase ) : public CVtUiCmdBase |
|
34 { |
|
35 |
|
36 public: // from CVtUiCmdBase |
|
37 |
|
38 /** |
|
39 * @see CVtUiCmdBase::HandleL |
|
40 */ |
|
41 void HandleL(); |
|
42 |
|
43 /** |
|
44 * @see CVtUiCmdBase::IsEnabled |
|
45 */ |
|
46 TBool IsEnabled() const; |
|
47 |
|
48 protected: |
|
49 |
|
50 /** |
|
51 * C++ constructor. |
|
52 * |
|
53 * @aFeature Reference to a feature this command refers to. |
|
54 * @aCommandId Id of this command. |
|
55 * |
|
56 */ |
|
57 CVtUiFeatureCmdBase( MVtUiFeature& aFeature, TInt aCommandId ); |
|
58 |
|
59 protected: |
|
60 |
|
61 // Reference to command feature |
|
62 MVtUiFeature& iFeature; |
|
63 |
|
64 }; |
|
65 |
|
66 #endif // C_VTUIFEATURECMDBASE_H |