hwrmhaptics/hapticsclient/src/hwrmhapticsimpl.cpp
branchRCL_3
changeset 22 8cb079868133
parent 21 ccb4f6b3db21
equal deleted inserted replaced
21:ccb4f6b3db21 22:8cb079868133
   425                                     aDevicePropertyType,
   425                                     aDevicePropertyType,
   426                                     iReqData );
   426                                     iReqData );
   427 
   427 
   428         // send command to haptics server
   428         // send command to haptics server
   429         if ( KErrNone == err )
   429         if ( KErrNone == err )
   430             {            
   430             {
   431             err = iClient.ExecuteOperation( 
   431             if( aDevicePropertyType == EHWRMHapticsLicensekey )
       
   432                 {
       
   433                 err = iClient.ExecuteOperation( 
   432                        EHWRMHapticsSetLicenseProp, 
   434                        EHWRMHapticsSetLicenseProp, 
   433                        TIpcArgs( &iReqData, aDevicePropertyValue.Length() ) );                     
   435                        TIpcArgs( &iReqData, aDevicePropertyValue.Length() ) );
   434 	         }
   436                 }
       
   437             else
       
   438                 {
       
   439                 err = iClient.ExecuteOperation( EHWRMHaptics,  
       
   440                                                 TIpcArgs( &iReqData ) );
       
   441                 }
       
   442             }
       
   443          
   435         }
   444         }
   436     
   445     
   437     API_TRACE( ( _L( "CHWRMHapticsImpl::SetDeviceProperty() - const TDesC8 overloaded - return %d" ), err ) );
   446     API_TRACE( ( _L( "CHWRMHapticsImpl::SetDeviceProperty() - const TDesC8 overloaded - return %d" ), err ) );
   438     
   447     
   439     return err;
   448     return err;