webengine/device/src/DeviceBridge.cpp
changeset 10 a359256acfc6
parent 5 10e98eab6f85
equal deleted inserted replaced
5:10e98eab6f85 10:a359256acfc6
    19 
    19 
    20 // INCLUDE FILES
    20 // INCLUDE FILES
    21 #include <config.h>
    21 #include <config.h>
    22 #include "Device.h"
    22 #include "Device.h"
    23 #include "DeviceBridge.h"
    23 #include "DeviceBridge.h"
       
    24 #include "DeviceBinding.h"
    24 
    25 
    25 using namespace KJS;
    26 using namespace KJS;
    26 // ============================ LOCAL FUNCTIONS ===============================
    27 // ============================ LOCAL FUNCTIONS ===============================
    27 
    28 
    28 // ----------------------------------------------------------------------------
    29 // ----------------------------------------------------------------------------
   104 void TDeviceBridge::SetUid( const TUint& aValue)
   105 void TDeviceBridge::SetUid( const TUint& aValue)
   105     {
   106     {
   106     if(m_device)
   107     if(m_device)
   107         m_device->SetUid( aValue);
   108         m_device->SetUid( aValue);
   108     }
   109     }
       
   110     
       
   111     
       
   112 void* TDeviceBridge::GetSecuritySession()
       
   113     {
       
   114     if( m_device && (m_device->GetDeviceBinding()))
       
   115         {
       
   116         return static_cast<void*>(m_device->GetDeviceBinding()->GetSecuritySession());    
       
   117         }
       
   118     else
       
   119         {
       
   120         return NULL;
       
   121         }   
       
   122     }
       
   123 
   109 //END OF FILE
   124 //END OF FILE
   110 
   125 
   111 
   126 
   112 
   127