mmsharing/livecommsui/lcui/tsrc/dummymusengineplugin/src/musengsessionmanager.cpp
branchRCL_3
changeset 33 bc78a40cd63c
parent 32 73a1feb507fb
child 35 6c57ef9392d2
equal deleted inserted replaced
32:73a1feb507fb 33:bc78a40cd63c
     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 "musenglivesession.h"
       
    22 #include "lcsession.h"
       
    23 #include "mccdatasender.h"
       
    24 #include "mccdatareceiver.h"
       
    25 #include "musenglogger.h"
       
    26 #include "mccdatastructures.h"
       
    27 
       
    28 
       
    29 // -----------------------------------------------------------------------------
       
    30 //
       
    31 // -----------------------------------------------------------------------------
       
    32 //
       
    33 CMusEngSessionManager* CMusEngSessionManager::NewL()
       
    34     {
       
    35     CMusEngSessionManager* self = new( ELeave )CMusEngSessionManager();
       
    36     CleanupStack::PushL( self );
       
    37     self->ConstructL();
       
    38     CleanupStack::Pop( self );
       
    39     return self;
       
    40     }
       
    41         
       
    42 // -----------------------------------------------------------------------------
       
    43 //
       
    44 // -----------------------------------------------------------------------------
       
    45 //  
       
    46 CMusEngSessionManager::~CMusEngSessionManager()
       
    47     {
       
    48     delete iSession;
       
    49     }
       
    50 
       
    51 // -----------------------------------------------------------------------------
       
    52 //
       
    53 // -----------------------------------------------------------------------------
       
    54 //
       
    55 CMusEngSessionManager::CMusEngSessionManager()
       
    56     {
       
    57     }
       
    58 
       
    59 // -----------------------------------------------------------------------------
       
    60 //
       
    61 // -----------------------------------------------------------------------------
       
    62 //
       
    63 void CMusEngSessionManager::ConstructL()
       
    64     {
       
    65     MUS_LOG( "mus: [ENGINE]  -> CMusEngSessionManager::ConstructL()" )
       
    66     //iMsgReceiver = CMccDataReceiver::NewL(*this);    
       
    67     //iMsgSender = CMccDataSender::NewL();
       
    68     //iSession = CMusEngTwoWaySession::NewL();
       
    69     iSession = CMusEngLiveSession::NewL();
       
    70     _LIT(KDisplayName,"+358504871872");
       
    71     iSession->SetRemoteL( KDisplayName() );
       
    72     MUS_LOG( "mus: [ENGINE]  <- CMusEngSessionManager::ConstructL()" )
       
    73     }
       
    74 
       
    75 // -----------------------------------------------------------------------------
       
    76 //
       
    77 // -----------------------------------------------------------------------------
       
    78 //
       
    79 MLcSession& CMusEngSessionManager::Session()
       
    80     {
       
    81     return *iSession;
       
    82     }
       
    83 
       
    84 // -----------------------------------------------------------------------------
       
    85 //
       
    86 // -----------------------------------------------------------------------------
       
    87 //
       
    88 void CMusEngSessionManager::DataReceived( const TDataMessage& aData )
       
    89     {
       
    90     }
       
    91 
       
    92 
       
    93 
       
    94 // End of File