mmsharing/mmshui/src/musuistartcontroller.cpp
branchRCL_3
changeset 23 bc78a40cd63c
parent 0 f0cf47e981f9
equal deleted inserted replaced
22:73a1feb507fb 23:bc78a40cd63c
       
     1 /*
       
     2 * Copyright (c) 2005 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:  Application's UI class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #include "musuistartcontroller.h"
       
    21 #include "musmanagercommon.h"
       
    22 #include "mussessionproperties.h"
       
    23 #include "muslogger.h" // debug logging
       
    24 
       
    25 #include <e32property.h>
       
    26 
       
    27 
       
    28 // -----------------------------------------------------------------------------
       
    29 //
       
    30 // -----------------------------------------------------------------------------
       
    31 //
       
    32 MusUiStartController::MusUiStartController()
       
    33     {
       
    34     }
       
    35 
       
    36 
       
    37 // -----------------------------------------------------------------------------
       
    38 //
       
    39 // -----------------------------------------------------------------------------
       
    40 //
       
    41 MultimediaSharing::TMusUseCase MusUiStartController::ReadUseCaseL()
       
    42     {
       
    43     MUS_LOG( "mus: [MUSUI ]  -> CMusUiStartController::UseCasePropertyL()" );
       
    44     TInt val;
       
    45     User::LeaveIfError( RProperty::Get( NMusSessionApi::KCategoryUid, 
       
    46                                         NMusSessionApi::KUseCase, 
       
    47                                         val ) );
       
    48                                         
       
    49     MUS_LOG1( "mus: [MUSUI ]     <- CMusUiStartController::UseCasePropertyL():\
       
    50                             [%d]", val );    
       
    51                             
       
    52     return static_cast< MultimediaSharing::TMusUseCase >( val );
       
    53     }