1 /* |
|
2 * Copyright (c) 2006 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: Mini dialer open command implementation. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <cvtlogger.h> |
|
20 |
|
21 #include "cvtuicmdopendialer.h" |
|
22 #include "mvtuicommandmanager.h" |
|
23 #include "videotelui.hrh" |
|
24 |
|
25 // --------------------------------------------------------------------------- |
|
26 // CVtUiCmdOpenDialer::NewL |
|
27 // --------------------------------------------------------------------------- |
|
28 // |
|
29 CVtUiCmdOpenDialer* CVtUiCmdOpenDialer::NewL( |
|
30 MVtUiCommandManager& aCommandManager, MVtUiFeature& aFeature ) |
|
31 { |
|
32 __VTPRINTENTER( "CmdOpenDial.NewL" ) |
|
33 CVtUiCmdOpenDialer* self = |
|
34 new ( ELeave ) CVtUiCmdOpenDialer( aCommandManager, aFeature ); |
|
35 CleanupStack::PushL( self ); |
|
36 self->ConstructL(); |
|
37 CleanupStack::Pop(); // self |
|
38 __VTPRINTEXIT( "CmdOpenDial.NewL" ) |
|
39 return self; |
|
40 } |
|
41 |
|
42 // --------------------------------------------------------------------------- |
|
43 // CVtUiCmdOpenDialer::~CVtUiCmdOpenDialer |
|
44 // --------------------------------------------------------------------------- |
|
45 // |
|
46 CVtUiCmdOpenDialer::~CVtUiCmdOpenDialer() |
|
47 { |
|
48 __VTPRINTENTER( "CmdOpenDial.~" ) |
|
49 iCommandManager.UnregisterCommand( *this ); |
|
50 __VTPRINTEXIT( "CmdOpenDial.~" ) |
|
51 } |
|
52 |
|
53 // --------------------------------------------------------------------------- |
|
54 // CVtUiCmdOpenDialer::CVtUiCmdOpenDialer |
|
55 // --------------------------------------------------------------------------- |
|
56 // |
|
57 CVtUiCmdOpenDialer::CVtUiCmdOpenDialer( |
|
58 MVtUiCommandManager& aCommandManager, MVtUiFeature& aFeature ) |
|
59 : CVtUiFeatureCmdBase( aFeature, EVtUiCmdSendDTMF ), |
|
60 iCommandManager( aCommandManager ) |
|
61 { |
|
62 __VTPRINTENTER( "CmdOpenDial.ctor" ) |
|
63 __VTPRINTEXIT( "CmdOpenDial.ctor" ) |
|
64 } |
|
65 |
|
66 // --------------------------------------------------------------------------- |
|
67 // CVtUiCmdOpenDialer::ConstructL |
|
68 // --------------------------------------------------------------------------- |
|
69 // |
|
70 void CVtUiCmdOpenDialer::ConstructL() |
|
71 { |
|
72 __VTPRINTENTER( "CmdOpenDial.ConstructL" ) |
|
73 iCommandManager.RegisterCommandL( *this ); |
|
74 __VTPRINTEXIT( "CmdOpenDial.ConstructL" ) |
|
75 } |
|
76 |
|