equal
deleted
inserted
replaced
47 * Initialization completion means the repository has retieved all |
47 * Initialization completion means the repository has retieved all |
48 * Bluetooth devices from BT registry, and it is subscribing to |
48 * Bluetooth devices from BT registry, and it is subscribing to |
49 * registry update events. |
49 * registry update events. |
50 * |
50 * |
51 */ |
51 */ |
52 virtual void RepositoryInitialiazed() = 0; |
52 virtual void RepositoryInitialized() = 0; |
53 |
53 |
54 /** |
54 /** |
55 * Callback to notify that a device has been deleted from BT registry. |
55 * Callback to notify that a device has been deleted from BT registry. |
56 * |
56 * |
57 * |
57 * |
58 * @param aAddr the bd_addr of the deleted device |
58 * @param aAddr the bd_addr of the deleted device |
59 */ |
59 */ |
60 virtual void BtDeviceDeleted( const TBTDevAddr& aAddr ) = 0; |
60 virtual void DeletedFromRegistry( const TBTDevAddr& aAddr ) = 0; |
61 |
61 |
62 /** |
62 /** |
63 * Callback to notify that the device has been added to BT registry. |
63 * Callback to notify that the device has been added to BT registry. |
64 * |
64 * |
65 * @param aDevice the device that has been added to registry |
65 * @param aDevice the device that has been added to registry |
66 */ |
66 */ |
67 virtual void BtDeviceAdded( const CBtDevExtension& aDevice ) = 0; |
67 virtual void AddedToRegistry( const CBtDevExtension& aDevice ) = 0; |
68 |
68 |
69 /** |
69 /** |
70 * Callback to notify that the property of a device in BT registry has been |
70 * Callback to notify that the property of a device in BT registry has been |
71 * changed. |
71 * changed. |
72 * |
72 * |
75 * prior to this change. |
75 * prior to this change. |
76 * Refer CBTDevice::TBTDeviceNameSelector and |
76 * Refer CBTDevice::TBTDeviceNameSelector and |
77 * TBTNamelessDevice::TBTDeviceSet for the meanings of the bits |
77 * TBTNamelessDevice::TBTDeviceSet for the meanings of the bits |
78 * in this parameter. |
78 * in this parameter. |
79 */ |
79 */ |
80 virtual void BtDeviceChangedInRegistry( |
80 virtual void ChangedInRegistry( |
81 const CBtDevExtension& aDevice, TUint aSimilarity ) = 0; |
81 const CBtDevExtension& aDevice, TUint aSimilarity ) = 0; |
|
82 |
|
83 /** |
|
84 * Callback to notify that the status of service (limited to |
|
85 * services maintained in btengsrv scope) connections with |
|
86 * a device has changed. |
|
87 * |
|
88 * @param aDevice the device to which the status change refers |
|
89 * @param aConnected ETrue if at least one service is currently connected. |
|
90 * EFalse if no service is currently connected. |
|
91 */ |
|
92 virtual void ServiceConnectionChanged( |
|
93 const CBtDevExtension& aDevice, TBool aConnected ) = 0; |
82 }; |
94 }; |
83 |
95 |
84 /** |
96 /** |
85 * Class CBtDevRepository |
97 * Class CBtDevRepository |
86 * |
98 * |
134 * @param aAddr the address of the device to be retrieved |
146 * @param aAddr the address of the device to be retrieved |
135 * @return the device pointer, NULL if the device is unavailable. |
147 * @return the device pointer, NULL if the device is unavailable. |
136 */ |
148 */ |
137 IMPORT_C const CBtDevExtension* Device( const TBTDevAddr& aAddr ) const; |
149 IMPORT_C const CBtDevExtension* Device( const TBTDevAddr& aAddr ) const; |
138 |
150 |
|
151 /** |
|
152 * Forces the repository to initialize its data store. |
|
153 * At Initialization completion, corresponding callback will be invoked. |
|
154 * Initialization completion means the repository has retieved all |
|
155 * Bluetooth devices from BT registry, and it is subscribing to |
|
156 * registry update events. |
|
157 * |
|
158 */ |
|
159 IMPORT_C void ReInitialize(); |
|
160 |
139 private: |
161 private: |
140 |
162 |
141 /** |
163 /** |
142 * C++ default constructor |
164 * C++ default constructor |
143 */ |
165 */ |