|
1 /* |
|
2 * Copyright (c) 2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "musengsessionmanager.h" |
|
19 #include "musengmcesession.h" |
|
20 #include "musengtwowaysession.h" |
|
21 #include "lcsession.h" |
|
22 #include "mccdatasender.h" |
|
23 #include "mccdatareceiver.h" |
|
24 #include "musenglogger.h" |
|
25 #include "mccdatastructures.h" |
|
26 |
|
27 |
|
28 // ----------------------------------------------------------------------------- |
|
29 // |
|
30 // ----------------------------------------------------------------------------- |
|
31 // |
|
32 CMusEngSessionManager* CMusEngSessionManager::NewL() |
|
33 { |
|
34 CMusEngSessionManager* self = new( ELeave )CMusEngSessionManager(); |
|
35 CleanupStack::PushL( self ); |
|
36 self->ConstructL(); |
|
37 CleanupStack::Pop( self ); |
|
38 return self; |
|
39 } |
|
40 |
|
41 // ----------------------------------------------------------------------------- |
|
42 // |
|
43 // ----------------------------------------------------------------------------- |
|
44 // |
|
45 CMusEngSessionManager::~CMusEngSessionManager() |
|
46 { |
|
47 delete iSession; |
|
48 } |
|
49 |
|
50 // ----------------------------------------------------------------------------- |
|
51 // |
|
52 // ----------------------------------------------------------------------------- |
|
53 // |
|
54 CMusEngSessionManager::CMusEngSessionManager() |
|
55 { |
|
56 } |
|
57 |
|
58 // ----------------------------------------------------------------------------- |
|
59 // |
|
60 // ----------------------------------------------------------------------------- |
|
61 // |
|
62 void CMusEngSessionManager::ConstructL() |
|
63 { |
|
64 MUS_LOG( "mus: [ENGINE] -> CMusEngSessionManager::ConstructL()" ) |
|
65 //iMsgReceiver = CMccDataReceiver::NewL(*this); |
|
66 MUS_LOG( "mus: [ENGINE] MsgQueue1 setup complete" ) |
|
67 //iMsgSender = CMccDataSender::NewL(); |
|
68 MUS_LOG( "mus: [ENGINE] MsgQueue2 setup complete" ) |
|
69 iSession = CMusEngTwoWaySession::NewL(); |
|
70 iSession->SetRemoteL( _L("WHAT") ); |
|
71 MUS_LOG( "mus: [ENGINE] <- CMusEngSessionManager::ConstructL()" ) |
|
72 } |
|
73 |
|
74 // ----------------------------------------------------------------------------- |
|
75 // |
|
76 // ----------------------------------------------------------------------------- |
|
77 // |
|
78 MLcSession& CMusEngSessionManager::Session() |
|
79 { |
|
80 return *iSession; |
|
81 } |
|
82 |
|
83 // ----------------------------------------------------------------------------- |
|
84 // |
|
85 // ----------------------------------------------------------------------------- |
|
86 // |
|
87 void CMusEngSessionManager::DataReceived( const TDataMessage& aData ) |
|
88 { |
|
89 } |
|
90 |
|
91 // ----------------------------------------------------------------------------- |
|
92 // |
|
93 // ----------------------------------------------------------------------------- |
|
94 // |
|
95 TBool CMusEngSessionManager::IsFeatureSupported( TLcFeature aLcFeature ) |
|
96 { |
|
97 return ( aLcFeature == ELcSendVideoQuery ); |
|
98 } |
|
99 |
|
100 |
|
101 |
|
102 |
|
103 // End of File |