Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
Public Member Functions | Static Public Member Functions | List of all members
DBTClientTest Class Referenceabstract

#include <dbt_client_test.hpp>

Inheritance diagram for DBTClientTest:
Collaboration diagram for DBTClientTest:

Public Member Functions

virtual void setDisconnectDevice (const bool v)=0
 Set disconnect after processing. More...
 
virtual void setDiscoveryPolicy (const DiscoveryPolicy v)=0
 Set DiscoveryPolicy. More...
 
virtual void setRemoveDevice (const bool v)=0
 Set remove device when disconnecting. More...
 
virtual HCIStatusCode startDiscovery (const std::string &msg)=0
 
virtual HCIStatusCode stopDiscovery (const std::string &msg)=0
 
- Public Member Functions inherited from DBTEndpoint
virtual ~DBTEndpoint ()=default
 
virtual void close (const std::string &msg)=0
 
virtual BTAdapterRef getAdapter ()=0
 Return the adapter for this endpoint. More...
 
virtual int getDisconnectCount ()=0
 
virtual std::string getName ()=0
 Return name of this endpoint, which becomes the adapter's name. More...
 
virtual int getProtocolSessionsDoneSuccess ()=0
 
virtual int getProtocolSessionsDoneTotal ()=0
 
virtual int getProtocolSessionsLeft ()=0
 
virtual bool initAdapter (BTAdapterRef adapter)=0
 Initialize the given adapter for this endpoint. More...
 
virtual void setAdapter (BTAdapterRef a)=0
 Set the server adapter for this endpoint. More...
 
virtual void setProtocolSessionsLeft (const int v)=0
 

Static Public Member Functions

static void startDiscovery (const DBTClientTestRef &client, const bool current_exp_discovering_state, const std::string &msg)
 
static void stopDiscovery (const DBTClientTestRef &client, const bool current_exp_discovering_state, const std::string &msg)
 
- Static Public Member Functions inherited from DBTEndpoint
static void checkInitializedState (const DBTEndpointRef &endp)
 
static ChangedAdapterSetCallback initChangedAdapterSetListener (const BTManagerRef &manager, std::vector< DBTEndpointRef > endpts)
 
static void myChangedAdapterSetFunc (const bool added, BTAdapterRef &adapter)
 
static void startDiscovery (const BTAdapterRef &adapter, const bool current_exp_discovering_state)
 
static void stopDiscovery (const BTAdapterRef &adapter, const bool current_exp_discovering_state)
 

Additional Inherited Members

- Static Public Attributes inherited from DBTEndpoint
static std::vector< DBTEndpointRefcas_endpts
 
static std::mutex mtx_cas_endpts
 

Detailed Description

Definition at line 33 of file dbt_client_test.hpp.

Member Function Documentation

◆ setDiscoveryPolicy()

virtual void DBTClientTest::setDiscoveryPolicy ( const DiscoveryPolicy  v)
pure virtual

Set DiscoveryPolicy.

Default is DiscoveryPolicy#PAUSE_CONNECTED_UNTIL_READY

Implemented in DBTClient01.

◆ setDisconnectDevice()

virtual void DBTClientTest::setDisconnectDevice ( const bool  v)
pure virtual

Set disconnect after processing.

Default is true.

Implemented in DBTClient01.

◆ setRemoveDevice()

virtual void DBTClientTest::setRemoveDevice ( const bool  v)
pure virtual

Set remove device when disconnecting.

This removes the device from all instances within adapter and hence all potential side-effects of the current instance.

Default is false, since it is good to test whether such side-effects exists.

Implemented in DBTClient01.

◆ startDiscovery() [1/2]

virtual HCIStatusCode DBTClientTest::startDiscovery ( const std::string &  msg)
pure virtual

Implemented in DBTClient01.

Here is the caller graph for this function:

◆ stopDiscovery() [1/2]

virtual HCIStatusCode DBTClientTest::stopDiscovery ( const std::string &  msg)
pure virtual

Implemented in DBTClient01.

Here is the caller graph for this function:

◆ startDiscovery() [2/2]

static void DBTClientTest::startDiscovery ( const DBTClientTestRef client,
const bool  current_exp_discovering_state,
const std::string &  msg 
)
inlinestatic

Definition at line 64 of file dbt_client_test.hpp.

◆ stopDiscovery() [2/2]

static void DBTClientTest::stopDiscovery ( const DBTClientTestRef client,
const bool  current_exp_discovering_state,
const std::string &  msg 
)
inlinestatic

Definition at line 78 of file dbt_client_test.hpp.


The documentation for this class was generated from the following file: