hwrmhaptics/hapticsclient/src/hwrmhapticsimpl.cpp
branchRCL_3
changeset 61 8cb079868133
parent 60 ccb4f6b3db21
--- a/hwrmhaptics/hapticsclient/src/hwrmhapticsimpl.cpp	Tue Aug 31 16:29:05 2010 +0300
+++ b/hwrmhaptics/hapticsclient/src/hwrmhapticsimpl.cpp	Wed Sep 01 12:34:26 2010 +0100
@@ -427,11 +427,20 @@
 
         // send command to haptics server
         if ( KErrNone == err )
-            {            
-            err = iClient.ExecuteOperation( 
+            {
+            if( aDevicePropertyType == EHWRMHapticsLicensekey )
+                {
+                err = iClient.ExecuteOperation( 
                        EHWRMHapticsSetLicenseProp, 
-                       TIpcArgs( &iReqData, aDevicePropertyValue.Length() ) );                     
-	         }
+                       TIpcArgs( &iReqData, aDevicePropertyValue.Length() ) );
+                }
+            else
+                {
+                err = iClient.ExecuteOperation( EHWRMHaptics,  
+                                                TIpcArgs( &iReqData ) );
+                }
+            }
+         
         }
     
     API_TRACE( ( _L( "CHWRMHapticsImpl::SetDeviceProperty() - const TDesC8 overloaded - return %d" ), err ) );