#include <bt.h>


Public Member Functions | |
| BtDevice * | GetDevice (void) const |
| Query the BtDevice associated with the session. | |
| BtService * | GetService (void) const |
| Query the service associated with the session. | |
| void | Disconnect (bool voluntary=true) |
| Request disconnection of the session. | |
| BtHub * | GetHub (void) const |
| DispatchInterface * | GetDi (void) const |
| void * | GetPrivate (void) const |
| Query the private pointer associated with the object. | |
| void | SetPrivate (void *priv) |
| Assign the private pointer associated with the object. | |
| void | Get (void) |
| Increment the reference count. | |
| void | Put (void) |
| Decrement the reference count. | |
Public Attributes | |
| Callback< void, BtManaged * > | cb_NotifyDestroy |
| Object destruction notification callback. | |
| BtDevice* GetDevice | ( | void | ) | const [inline] |
| BtService* GetService | ( | void | ) | const [inline] |
Query the service associated with the session.
Reimplemented in RfcommSession, and HfpSession.
| void Disconnect | ( | bool | voluntary = true |
) | [inline] |
Request disconnection of the session.
This abstract interface allows one to request any connection-oriented session object derived from BtSession to disconnect itself.
| voluntary | Whether the disconnection should be presented as voluntary and explicit, i.e. selecting disconnect on a list, or involuntary, i.e. exiting Bluetooth radio range. |
| DispatchInterface* GetDi | ( | void | ) | const [inline, inherited] |
Query the dispatcher interface of the presiding BtHub
| void* GetPrivate | ( | void | ) | const [inline, inherited] |
Query the private pointer associated with the object.
All BtManaged derived objects have a single pointer field reserved for the use of clients. It is always initialized to zero when the object is constructed, and clients may assign it as they wish.
| void SetPrivate | ( | void * | priv | ) | [inline, inherited] |
Assign the private pointer associated with the object.
All BtManaged derived objects have a single pointer field reserved for the use of clients. It is always initialized to zero when the object is constructed, and clients may assign it as they wish.
| priv | New value to assign to the private pointer |
| void Get | ( | void | ) | [inline, inherited] |
Increment the reference count.
As per managed objects, BtManaged derived objects are not deleted so long as they have a positive reference count.
| void Put | ( | void | ) | [inherited] |
Decrement the reference count.
As per managed objects, when the object's reference count reaches zero, the object will be destroyed in the context of a timer event.
Callback<void, BtManaged*> cb_NotifyDestroy [inherited] |
Object destruction notification callback.
This callback is invoked proir to deletion of the managed object, so that clients may release associated resources. This callback occurs in the context of a timer event, and complies with the rule of not invoking client callbacks in a nested fashion.
The decision to destroy the object is final. The client may not attempt to preserve the object by acquiring additional references from this callback.
1.5.4