mmsharing/mmshavailability/src/musavaregisteravailability.cpp
branchRCL_3
changeset 21 33a5d2bbf6fc
parent 0 f0cf47e981f9
child 22 73a1feb507fb
equal deleted inserted replaced
20:2d2c7d1515f7 21:33a5d2bbf6fc
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *  Version     : %version: 42.1.4.1.3 % << Don't touch! Updated by Synergy at check-out.
     8 *  Version     : %version: be1sipx1#42.1.4.1.4 % << Don't touch! Updated by Synergy at check-out.
     9 *
     9 *
    10 * Initial Contributors:
    10 * Initial Contributors:
    11 * Nokia Corporation - initial contribution.
    11 * Nokia Corporation - initial contribution.
    12 *
    12 *
    13 * Contributors:
    13 * Contributors:
   118 //
   118 //
   119 void CMusAvaRegisterAvailability::DoExecuteL()
   119 void CMusAvaRegisterAvailability::DoExecuteL()
   120     {
   120     {
   121     MUS_LOG( "mus: [MUSAVA]  -> CMusAvaRegisterAvailability::DoExecuteL " )
   121     MUS_LOG( "mus: [MUSAVA]  -> CMusAvaRegisterAvailability::DoExecuteL " )
   122     SetState( MMusAvaObserver::EMusAvaStatusInProgress );
   122     SetState( MMusAvaObserver::EMusAvaStatusInProgress );
   123     RegisterL();
   123     TRAPD( err, RegisterL() );
       
   124     if( err != KErrNone )
       
   125        {
       
   126    		SetState( MMusAvaObserver::EMusAvaStatusNotRegistered );
       
   127        }
   124     // TBD: SetState( MMusAvaObserver::EMusAvaNameRegistration );
   128     // TBD: SetState( MMusAvaObserver::EMusAvaNameRegistration );
   125 
   129 
   126     MUS_LOG( "mus: [MUSAVA]  <- CMusAvaRegisterAvailability::DoExecuteL " )
   130     MUS_LOG( "mus: [MUSAVA]  <- CMusAvaRegisterAvailability::DoExecuteL " )
   127     }
   131     }
   128 
   132