bluetoothengine/btnotif/btnotifsrv/src/btnotifconnectiontracker.cpp
changeset 40 997690c3397a
parent 33 837dcc42fd6a
equal deleted inserted replaced
37:91746b151f97 40:997690c3397a
    25 #include <btservices/btdevrepository.h>
    25 #include <btservices/btdevrepository.h>
    26 
    26 
    27 #include "btnotifsession.h"
    27 #include "btnotifsession.h"
    28 #include "btnotifclientserver.h"
    28 #include "btnotifclientserver.h"
    29 #include "bluetoothtrace.h"
    29 #include "bluetoothtrace.h"
    30 #include "btnotifpairingmanager.h"
    30 #include "btnotifsecuritymanager.h"
    31 
    31 
    32 /**  Time window for determining if there are too many requests. */
    32 /**  Time window for determining if there are too many requests. */
    33 #ifndef __WINS__
    33 #ifndef __WINS__
    34 #define KDENYTHRESHOLD TTimeIntervalSeconds(3)
    34 #define KDENYTHRESHOLD TTimeIntervalSeconds(3)
    35 #else   //__WINS__
    35 #else   //__WINS__
    60     BOstraceFunctionEntry0( DUMMY_DEVLIST );
    60     BOstraceFunctionEntry0( DUMMY_DEVLIST );
    61     // Open a handle to the registry server
    61     // Open a handle to the registry server
    62     User::LeaveIfError( iBTRegistrySession.Connect() );
    62     User::LeaveIfError( iBTRegistrySession.Connect() );
    63     // Open a handle to the socket server
    63     // Open a handle to the socket server
    64     User::LeaveIfError( iSockServ.Connect() );
    64     User::LeaveIfError( iSockServ.Connect() );
    65     iPairingManager = CBTNotifPairingManager::NewL(*this, iServer->DevRepository() );
    65     iPairingManager = CBTNotifSecurityManager::NewL(*this, iServer->DevRepository() );
    66     BOstraceFunctionExit0( DUMMY_DEVLIST );
    66     BOstraceFunctionExit0( DUMMY_DEVLIST );
    67     }
    67     }
    68 
    68 
    69 
    69 
    70 // ---------------------------------------------------------------------------
    70 // ---------------------------------------------------------------------------
    97 
    97 
    98 // ---------------------------------------------------------------------------
    98 // ---------------------------------------------------------------------------
    99 // Process notifier message related to pairing notifiers.
    99 // Process notifier message related to pairing notifiers.
   100 // ---------------------------------------------------------------------------
   100 // ---------------------------------------------------------------------------
   101 //
   101 //
   102 void CBTNotifConnectionTracker::HandlePairingNotifierRequestL( const RMessage2& aMessage )
   102 void CBTNotifConnectionTracker::HandleNotifierRequestL( const RMessage2& aMessage )
   103     {
   103     {
   104     BOstraceFunctionEntryExt ( DUMMY_LIST, this, aMessage.Function() );
   104     BOstraceFunctionEntryExt ( DUMMY_LIST, this, aMessage.Function() );
   105     iPairingManager->HandlePairingNotifierRequestL(aMessage);
   105     iPairingManager->HandleNotifierRequestL(aMessage);
   106     BOstraceFunctionExit1( DUMMY_DEVLIST, this );
   106     BOstraceFunctionExit1( DUMMY_DEVLIST, this );
   107     }
   107     }
   108 
   108 
   109 // ---------------------------------------------------------------------------
   109 // ---------------------------------------------------------------------------
   110 // Handle a request related to pairing.
   110 // Handle a request related to pairing.