phonesettings/aiwcallimageplugin/src/aiwcallimageplugin.cpp
branchRCL_3
changeset 81 c26cc2a7c548
parent 69 8baf28733c3d
equal deleted inserted replaced
73:e30d4a1b8bad 81:c26cc2a7c548
   107 void CAiwCallImagePlugin::HandleServiceCmdL(
   107 void CAiwCallImagePlugin::HandleServiceCmdL(
   108     const TInt& aCmdId,
   108     const TInt& aCmdId,
   109     const CAiwGenericParamList& aInParamList,
   109     const CAiwGenericParamList& aInParamList,
   110     CAiwGenericParamList& /*aOutParamList*/,
   110     CAiwGenericParamList& /*aOutParamList*/,
   111     TUint aCmdOptions,
   111     TUint aCmdOptions,
   112     const MAiwNotifyCallback* aCallback )
   112     const MAiwNotifyCallback* /*aCallback*/ )
   113     {
   113     {
   114     
   114     
   115     // Cancel bit must always be checked. Support can be implemented if necessary.
   115     // Cancel bit must always be checked. Support can be implemented if necessary.
   116     if( aCmdOptions & KAiwOptCancel )
   116     if( aCmdOptions & KAiwOptCancel )
   117         {
   117         {
   130             EGenericParamFile,
   130             EGenericParamFile,
   131             EVariantTypeDesC );
   131             EVariantTypeDesC );
   132             
   132             
   133         if ( index >= 0 && genericParam )
   133         if ( index >= 0 && genericParam )
   134             {
   134             {
   135             TInt err = SetCallImagePathL( genericParam );
   135              User::LeaveIfError( SetCallImagePathL( genericParam ) );
   136             if ( aCallback )
       
   137                 {
       
   138                 TInt eventId = err ? KAiwEventError : KAiwEventCompleted;
       
   139                 // Must cast this because of AIW bug
       
   140                 MAiwNotifyCallback* nonConstCallback =
       
   141                         const_cast<MAiwNotifyCallback*> ( aCallback );
       
   142                 CAiwGenericParamList* eventParamList = CAiwGenericParamList::NewL();
       
   143                 CleanupStack::PushL( eventParamList );
       
   144                 nonConstCallback->HandleNotifyL( 
       
   145                         aCmdId,
       
   146                         eventId,
       
   147                         *eventParamList,
       
   148                         aInParamList );
       
   149                 CleanupStack::PopAndDestroy( eventParamList );
       
   150                 }
       
   151             User::LeaveIfError( err );
       
   152             }
   136             }
   153         }
   137         }
   154     }
   138     }
   155     
   139     
   156 // -----------------------------------------------------------------------------
   140 // -----------------------------------------------------------------------------