mmsharing/mmshengine/inc/musengsessionmanager.h
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 #ifndef CMUSENGSESSIONMANAGER_H
       
    19 #define CMUSENGSESSIONMANAGER_H
       
    20 
       
    21 // INCLUDES
       
    22 #include "musunittesting.h"
       
    23 #include "muspropertyobserver.h"
       
    24 #include <lcengine.h>
       
    25 #include <musmanagercommon.h>
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class MLcSession;
       
    29 class CMusEngMceSession;
       
    30 class MLcUiProvider;
       
    31 class CMusPropertyWatch;
       
    32 
       
    33 
       
    34 class CMusEngSessionManager : public CLcEngine, public MMusPropertyObserver
       
    35     {
       
    36     public:
       
    37     
       
    38         static CMusEngSessionManager* NewL();
       
    39         ~CMusEngSessionManager();
       
    40     
       
    41     public: // From CLcEngine
       
    42     
       
    43         MLcSession& Session();
       
    44        
       
    45         TBool IsFeatureSupported( TLcFeature aLcFeature );
       
    46        
       
    47     public: // From MMusPropertyObserver
       
    48         
       
    49         virtual void PropertyChanged( const TUint aKey, const TInt aValue );    
       
    50             
       
    51         virtual void HandlePropertyError( const TInt aReason );
       
    52             
       
    53     private: // Constructors
       
    54 
       
    55         CMusEngSessionManager();
       
    56         void ConstructL();
       
    57        
       
    58     private: // New functions
       
    59         
       
    60         CMusEngMceSession* CreateMusSessionL( 
       
    61             MultimediaSharing::TMusUseCase aUseCase );
       
    62         
       
    63     private: // Data
       
    64         
       
    65         CMusEngMceSession* iSession;
       
    66         
       
    67         CMusPropertyWatch* iUseCaseWatch;
       
    68         
       
    69         MultimediaSharing::TMusUseCase iCurrentUseCase;
       
    70         
       
    71     MUS_UNITTEST( UT_CMusEngSessionManager )
       
    72     };  
       
    73     
       
    74 #endif // CMUSENGSESSIONMANAGER_H
       
    75 
       
    76 // end of file