144 * ?description |
144 * ?description |
145 * |
145 * |
146 * @since S60 v3.2 |
146 * @since S60 v3.2 |
147 * @return ?description |
147 * @return ?description |
148 */ |
148 */ |
149 TInt CancelNotifyConnectionEvents(); |
149 void CancelNotifyConnectionEvents(); |
150 |
|
151 /** |
|
152 * Set a pairing observer in BTEngine. |
|
153 * |
|
154 * @since S60 v3.2 |
|
155 * @param aAddr The address of the remote device that is being paired. |
|
156 * @param aActivate If ETrue, the observer will be activated, otherwise |
|
157 * the observer will be removed. |
|
158 * @return KErrNone on success, otherwise a system-wide error code. |
|
159 */ |
|
160 static TInt SetPairingObserver( const TBTDevAddr& aAddr, TBool aActivate ); |
|
161 |
150 |
162 /** |
151 /** |
163 * ?description |
152 * ?description |
164 * |
153 * |
165 * @since S60 v3.2 |
154 * @since S60 v3.2 |
166 * @return ?description |
155 * @return ?description |
167 */ |
156 */ |
168 inline TInt PrepareDiscovery(); |
157 inline TInt PrepareDiscovery(); |
169 |
|
170 |
|
171 /** |
|
172 * Pair a device |
|
173 * |
|
174 * @since S60 v5.1 |
|
175 * @param aAddr the address of the device to pair with |
|
176 * @param aDeviceClass the device class of the device to pair with |
|
177 * @return KErrNone if this request has been accepted; an error situation otherwise. |
|
178 */ |
|
179 TInt StartPairing( const TBTDevAddr& aAddr, const TBTDeviceClass& aDeviceClass ); |
|
180 |
|
181 /** |
|
182 * cancel the outstanding pairing request. |
|
183 */ |
|
184 void CancelPairing(); |
|
185 |
158 |
186 private: |
159 private: |
187 // from base class MBTEngActiveObserver |
160 // from base class MBTEngActiveObserver |
188 |
161 |
189 /** |
162 /** |
190 * From MBTEngActiveObserver. |
163 * From MBTEngActiveObserver. |
191 * Handles the notification of a change in the connection status. |
164 * Handles the notification of a change in the connection status. |
192 * |
165 * |
193 * @since S60 v3.2 |
166 * @since S60 v3.2 |
194 */ |
167 */ |
195 virtual void RequestCompletedL( CBTEngActive* aActive, TInt aId, TInt aStatus ); |
168 virtual void RequestCompletedL( CBTEngActive* aActive, TInt aStatus ); |
196 |
169 |
|
170 /** |
|
171 * Callback for handling cancelation of an outstanding request. |
|
172 * |
|
173 * @param aId The ID that identifies the outstanding request. |
|
174 */ |
|
175 virtual void CancelRequest( TInt aRequestId ); |
|
176 |
197 /** |
177 /** |
198 * From MBTEngActiveObserver. |
178 * From MBTEngActiveObserver. |
199 * Handles an error during processing of connection status event. |
179 * Handles an error during processing of connection status event. |
200 * |
180 * |
201 * @since S60 v3.2 |
181 * @since S60 v3.2 |
202 */ |
182 */ |
203 virtual void HandleError( CBTEngActive* aActive, TInt aId, TInt aError ); |
183 virtual void HandleError( CBTEngActive* aActive, TInt aError ); |
204 |
184 |
205 private: |
185 private: |
206 |
186 |
207 /** |
187 /** |
208 * C++ default constructor |
188 * C++ default constructor |