diff -r 43824b19ee35 -r 837dcc42fd6a bluetoothengine/btserviceutil/export/btdevrepository.h --- a/bluetoothengine/btserviceutil/export/btdevrepository.h Fri May 14 16:01:46 2010 +0300 +++ b/bluetoothengine/btserviceutil/export/btdevrepository.h Thu May 27 13:01:44 2010 +0300 @@ -49,7 +49,7 @@ * registry update events. * */ - virtual void RepositoryInitialiazed() = 0; + virtual void RepositoryInitialized() = 0; /** * Callback to notify that a device has been deleted from BT registry. @@ -57,14 +57,14 @@ * * @param aAddr the bd_addr of the deleted device */ - virtual void BtDeviceDeleted( const TBTDevAddr& aAddr ) = 0; + virtual void DeletedFromRegistry( const TBTDevAddr& aAddr ) = 0; /** * Callback to notify that the device has been added to BT registry. * * @param aDevice the device that has been added to registry */ - virtual void BtDeviceAdded( const CBtDevExtension& aDevice ) = 0; + virtual void AddedToRegistry( const CBtDevExtension& aDevice ) = 0; /** * Callback to notify that the property of a device in BT registry has been @@ -77,8 +77,20 @@ * TBTNamelessDevice::TBTDeviceSet for the meanings of the bits * in this parameter. */ - virtual void BtDeviceChangedInRegistry( - const CBtDevExtension& aDevice, TUint aSimilarity ) = 0; + virtual void ChangedInRegistry( + const CBtDevExtension& aDevice, TUint aSimilarity ) = 0; + + /** + * Callback to notify that the status of service (limited to + * services maintained in btengsrv scope) connections with + * a device has changed. + * + * @param aDevice the device to which the status change refers + * @param aConnected ETrue if at least one service is currently connected. + * EFalse if no service is currently connected. + */ + virtual void ServiceConnectionChanged( + const CBtDevExtension& aDevice, TBool aConnected ) = 0; }; /** @@ -136,6 +148,16 @@ */ IMPORT_C const CBtDevExtension* Device( const TBTDevAddr& aAddr ) const; + /** + * Forces the repository to initialize its data store. + * At Initialization completion, corresponding callback will be invoked. + * Initialization completion means the repository has retieved all + * Bluetooth devices from BT registry, and it is subscribing to + * registry update events. + * + */ + IMPORT_C void ReInitialize(); + private: /**