1 /* |
|
2 * Copyright (c) 2008 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: Implementation of CPhoneSwitchToVideoOrVoiceCommand class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include "phonelogger.h" |
|
21 #include "cphoneswitchtovideoorvoicecommand.h" |
|
22 #include "pevirtualengine.h" |
|
23 |
|
24 // ================= MEMBER FUNCTIONS ======================= |
|
25 |
|
26 // --------------------------------------------------------- |
|
27 // CPhoneSwitchToVideoOrVoiceCommand::CPhoneSwitchToVideoOrVoiceCommand |
|
28 // --------------------------------------------------------- |
|
29 // |
|
30 CPhoneSwitchToVideoOrVoiceCommand::CPhoneSwitchToVideoOrVoiceCommand( |
|
31 MPhoneEngineMessageSender& aEngineMessageSender ) : |
|
32 iEngineMessageSender( aEngineMessageSender ) |
|
33 { |
|
34 } |
|
35 |
|
36 // --------------------------------------------------------- |
|
37 // CPhoneSwitchToVideoOrVoiceCommand::ConstructL |
|
38 // --------------------------------------------------------- |
|
39 // |
|
40 void CPhoneSwitchToVideoOrVoiceCommand::ConstructL() |
|
41 { |
|
42 } |
|
43 |
|
44 // --------------------------------------------------------- |
|
45 // CPhoneSwitchToVideoOrVoiceCommand::NewL |
|
46 // --------------------------------------------------------- |
|
47 // |
|
48 EXPORT_C CPhoneSwitchToVideoOrVoiceCommand* CPhoneSwitchToVideoOrVoiceCommand::NewL( |
|
49 MPhoneEngineMessageSender& aEngineMessageSender ) |
|
50 { |
|
51 __LOGMETHODSTARTEND( EPhoneMediatorCenter, "CPhoneSwitchToVideoOrVoiceCommand::NewL( ) "); |
|
52 CPhoneSwitchToVideoOrVoiceCommand* self = new( ELeave ) |
|
53 CPhoneSwitchToVideoOrVoiceCommand( aEngineMessageSender ); |
|
54 |
|
55 CleanupStack::PushL( self ); |
|
56 self->ConstructL(); |
|
57 CleanupStack::Pop( self ); |
|
58 |
|
59 return self; |
|
60 } |
|
61 |
|
62 // --------------------------------------------------------- |
|
63 // CPhoneSwitchToVideoOrVoiceCommand::~CPhoneSwitchToVideoOrVoiceCommand |
|
64 // --------------------------------------------------------- |
|
65 // |
|
66 CPhoneSwitchToVideoOrVoiceCommand::~CPhoneSwitchToVideoOrVoiceCommand() |
|
67 { |
|
68 } |
|
69 |
|
70 // --------------------------------------------------------- |
|
71 // CPhoneSwitchToVideoOrVoiceCommand::ExecuteL |
|
72 // --------------------------------------------------------- |
|
73 // |
|
74 void CPhoneSwitchToVideoOrVoiceCommand::ExecuteLD() |
|
75 { |
|
76 __LOGMETHODSTARTEND( EPhoneMediatorCenter, |
|
77 "CPhoneSwitchToVideoOrVoiceCommand::ExecuteL( ) "); |
|
78 iEngineMessageSender.SendPhoneEngineMessage( |
|
79 MPEPhoneModel::EPEMessageSwitchToVideoOrVoice ); |
|
80 delete this; |
|
81 } |
|
82 |
|
83 // End of File |
|