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: Dialer close command. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_VTUICMDCLOSEDIALER_H |
|
20 #define C_VTUICMDCLOSEDIALER_H |
|
21 |
|
22 #include "cvtuifeaturecmdbase.h" |
|
23 |
|
24 class MVtUiCommandManager; |
|
25 |
|
26 /** |
|
27 * CVtUiCmdCloseDialer |
|
28 * |
|
29 * @since S60 v5.0 |
|
30 */ |
|
31 class CVtUiCmdCloseDialer : public CVtUiFeatureCmdBase |
|
32 { |
|
33 |
|
34 public: |
|
35 |
|
36 /** |
|
37 * Static constructor |
|
38 * |
|
39 * @param aCommandManager Reference to command manager. |
|
40 * @param aFeature Reference to minidialer feature. |
|
41 * @return Newly created instance to CVtUiCmdCloseDialer. |
|
42 */ |
|
43 static CVtUiCmdCloseDialer* NewL( MVtUiCommandManager& aCommandManager, |
|
44 MVtUiFeature& aFeature ); |
|
45 |
|
46 /** |
|
47 * Destructor |
|
48 */ |
|
49 ~CVtUiCmdCloseDialer(); |
|
50 |
|
51 private: // from CVtUiFeatureCmdBase |
|
52 |
|
53 /** |
|
54 * @see CVtUiFeatureCmdBase::HandleL |
|
55 */ |
|
56 void HandleL(); |
|
57 |
|
58 /** |
|
59 * @see CVtUiFeatureCmdBase::IsEnabled |
|
60 */ |
|
61 TBool CVtUiCmdCloseDialer::IsEnabled() const; |
|
62 |
|
63 private: |
|
64 |
|
65 /** |
|
66 * Constructor |
|
67 */ |
|
68 CVtUiCmdCloseDialer( MVtUiCommandManager& aCommandManager, |
|
69 MVtUiFeature& aFeature ); |
|
70 |
|
71 /** |
|
72 * 2nd constructor |
|
73 */ |
|
74 void ConstructL(); |
|
75 |
|
76 private: |
|
77 |
|
78 // Reference to command manager API. |
|
79 MVtUiCommandManager& iCommandManager; |
|
80 |
|
81 }; |
|
82 |
|
83 #endif // C_VTUICMDCLOSEDIALER_H |
|