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 CPhoneDataPortMessage class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include <videotelcontrolmediatorapi.h> |
|
21 #include <MediatorDomainUIDs.h> |
|
22 #include "phonelogger.h" |
|
23 #include "cphonedataportmessage.h" |
|
24 #include "cphonemediatorsender.h" |
|
25 #include "phoneui.pan" |
|
26 |
|
27 // ================= MEMBER FUNCTIONS ======================= |
|
28 |
|
29 // --------------------------------------------------------- |
|
30 // CPhoneDataPortMessage::CPhoneDataPortMessage |
|
31 // --------------------------------------------------------- |
|
32 // |
|
33 CPhoneDataPortMessage::CPhoneDataPortMessage( MPEEngineInfo& aEngineInfo ) : |
|
34 iEngineInfo( aEngineInfo ) |
|
35 { |
|
36 } |
|
37 |
|
38 // --------------------------------------------------------- |
|
39 // CPhoneDataPortMessage::ConstructL |
|
40 // --------------------------------------------------------- |
|
41 // |
|
42 void CPhoneDataPortMessage::ConstructL() |
|
43 { |
|
44 } |
|
45 |
|
46 // --------------------------------------------------------- |
|
47 // CPhoneDataPortMessage::NewL |
|
48 // --------------------------------------------------------- |
|
49 // |
|
50 CPhoneDataPortMessage* CPhoneDataPortMessage::NewL( MPEEngineInfo& aEngineInfo ) |
|
51 { |
|
52 __LOGMETHODSTARTEND( EPhoneMediatorCenter, "CPhoneDataPortMessage::NewL( ) "); |
|
53 CPhoneDataPortMessage* self = new( ELeave ) CPhoneDataPortMessage( aEngineInfo ); |
|
54 |
|
55 CleanupStack::PushL( self ); |
|
56 self->ConstructL(); |
|
57 CleanupStack::Pop( self ); |
|
58 |
|
59 return self; |
|
60 } |
|
61 |
|
62 // --------------------------------------------------------- |
|
63 // CPhoneDataPortMessage::~CPhoneDataPortMessage |
|
64 // --------------------------------------------------------- |
|
65 // |
|
66 CPhoneDataPortMessage::~CPhoneDataPortMessage() |
|
67 { |
|
68 } |
|
69 |
|
70 // --------------------------------------------------------- |
|
71 // CPhoneDataPortMessage::ExecuteL |
|
72 // --------------------------------------------------------- |
|
73 // |
|
74 void CPhoneDataPortMessage::ExecuteL() |
|
75 { |
|
76 __LOGMETHODSTARTEND( EPhoneMediatorCenter, "CPhoneDataPortMessage::ExecuteL( ) "); |
|
77 const TName& dataPortName = iEngineInfo.DataPortName(); |
|
78 TDataPortPackage dataPortPackage( dataPortName ); |
|
79 CPhoneMediatorSender::Instance()->IssueCommand( KMediatorVideoTelephonyDomain, |
|
80 KCatPhoneToVideotelCommands, |
|
81 EVtCmdUseDataport, |
|
82 TVersion( KPhoneToVideotelCmdVersionMajor, |
|
83 KPhoneToVideotelCmdVersionMinor, |
|
84 KPhoneToVideotelCmdVersionBuild ), |
|
85 dataPortPackage ); |
|
86 } |
|
87 |
|
88 // End of File |
|