cmmanager/cmmgr/cmmapi/src/cmdestinationwrapper.cpp
branchGCC_SURGE
changeset 49 faa5ef4f80da
parent 46 95d45f234cf3
equal deleted inserted replaced
39:f10336de0cd6 49:faa5ef4f80da
   143         {
   143         {
   144         User::Leave( KErrAlreadyExists );
   144         User::Leave( KErrAlreadyExists );
   145         }
   145         }
   146 
   146 
   147     iCmManagerApi = aCmManagerApi;
   147     iCmManagerApi = aCmManagerApi;
   148     iCmDestinationApi.ConnectAndGetConnMethodAsEmbeddedDestL( *aCmManagerApi, aConnMethodHandle, aExistingHandle );
   148     iCmDestinationApi.ConnectAndGetConnMethodAsEmbeddedDestL(
       
   149             *aCmManagerApi,
       
   150             aConnMethodHandle,
       
   151             aExistingHandle );
   149     if ( !aExistingHandle )
   152     if ( !aExistingHandle )
   150         {
   153         {
   151         iCmManagerApi->StoreDestinationWrapper( this );
   154         iCmManagerApi->StoreDestinationWrapper( this );
   152         }
   155         }
   153 
   156 
   384 
   387 
   385     OstTraceFunctionExit0( CCMDESTINATIONWRAPPER_ISEQUAL_EXIT );
   388     OstTraceFunctionExit0( CCMDESTINATIONWRAPPER_ISEQUAL_EXIT );
   386     return err;
   389     return err;
   387     }
   390     }
   388 
   391 
       
   392 TInt CCmDestinationWrapper::GetIcon( HBufC* aBuffer )
       
   393     {
       
   394     OstTraceFunctionEntry0( CCMDESTINATIONWRAPPER_GETICON_ENTRY );
       
   395 
       
   396     TInt err = iCmDestinationApi.GetIcon( aBuffer );
       
   397 
       
   398     OstTraceFunctionExit0( CCMDESTINATIONWRAPPER_GETICON_EXIT );
       
   399     return err;
       
   400     }
       
   401 
       
   402 TInt CCmDestinationWrapper::SetIcon( const TDesC& aValue)
       
   403     {
       
   404     OstTraceFunctionEntry0( CCMDESTINATIONWRAPPER_SETICON_ENTRY );
       
   405 
       
   406     TInt err = iCmDestinationApi.SetIcon( aValue );
       
   407 
       
   408     OstTraceFunctionExit0( CCMDESTINATIONWRAPPER_SETICON_EXIT );
       
   409     return err;
       
   410     }
       
   411 
   389 TBool CCmDestinationWrapper::SessionConnected()
   412 TBool CCmDestinationWrapper::SessionConnected()
   390     {
   413     {
   391     return iCmDestinationApi.SessionConnected();
   414     return iCmDestinationApi.SessionConnected();
   392     }
   415     }
   393 
   416