diff -r 33a5d2bbf6fc -r 73a1feb507fb mmsharing/livecommsui/lcui/tsrc/ipvtengine/src/musengsessionmanager.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mmsharing/livecommsui/lcui/tsrc/ipvtengine/src/musengsessionmanager.cpp Tue Aug 31 15:12:07 2010 +0300 @@ -0,0 +1,113 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +#include "musengsessionmanager.h" +#include "musengmcesession.h" +#include "musengtwowaysession.h" +#include "lcsession.h" +#include "mccdatasender.h" +#include "mccdatareceiver.h" +#include "musenglogger.h" +#include "mccdatastructures.h" +#include +#include + +// ----------------------------------------------------------------------------- +// +// ----------------------------------------------------------------------------- +// +CMusEngSessionManager* CMusEngSessionManager::NewL() + { + CMusEngSessionManager* self = new( ELeave )CMusEngSessionManager(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// ----------------------------------------------------------------------------- +// +// ----------------------------------------------------------------------------- +// +CMusEngSessionManager::~CMusEngSessionManager() + { + delete iSession; + } + +// ----------------------------------------------------------------------------- +// +// ----------------------------------------------------------------------------- +// +CMusEngSessionManager::CMusEngSessionManager() + { + } + +// ----------------------------------------------------------------------------- +// +// ----------------------------------------------------------------------------- +// +void CMusEngSessionManager::ConstructL() + { + MUS_LOG( "mus: [ENGINE] -> CMusEngSessionManager::ConstructL()" ) + //iMsgReceiver = CMccDataReceiver::NewL(*this); + MUS_LOG( "mus: [ENGINE] MsgQueue1 setup complete" ) + //iMsgSender = CMccDataSender::NewL(); + MUS_LOG( "mus: [ENGINE] MsgQueue2 setup complete" ) + iSession = CMusEngTwoWaySession::NewL(); + iSession->SetRemoteL( _L("Homer Simpson") ); + MUS_LOG( "mus: [ENGINE] <- CMusEngSessionManager::ConstructL()" ) + } + +// ----------------------------------------------------------------------------- +// +// ----------------------------------------------------------------------------- +// +MLcSession& CMusEngSessionManager::Session() + { + return *iSession; + } + +// ----------------------------------------------------------------------------- +// +// ----------------------------------------------------------------------------- +// +void CMusEngSessionManager::DataReceived( const TDataMessage& aData ) + { + } + +// ----------------------------------------------------------------------------- +// +// ----------------------------------------------------------------------------- +// +TBool CMusEngSessionManager::IsFeatureSupported( TLcFeature aLcFeature ) + { + TBool ret = EFalse; + if ( ELcSendVideoQuery == aLcFeature ) + { + TInt videoSendingSetting; + CRepository* repository = CRepository::NewL( KCRUidTelephonySettings ); + if ( KErrNone == repository->Get(KSettingsVTVideoSending, videoSendingSetting) ) + { + if ( VTSETTING_ALWAYS_ASK_FIRST == videoSendingSetting ) + ret = ETrue; + } + delete repository; + } + return ret; + } + +// End of File