PrevNextUpHome SophiaFramework UNIVERSE 5.3
SFBBTA2DP
Wrapper Class for the IBTA2DP interface.
#include <SFBBTA2DP.h.hpp>
class SFBBTA2DP : public SFBQuery;
SFMTYPEDEFWRAPPER(SFBBTA2DP)

Inheritance diagram

 Inheritance diagram of SFBBTA2DPClass

Version

BREW 2.0 BREW 2.1 BREW 3.1 BREW 4.0
X X O O

Reference

BREW API IBTA2DP

Member

Public Functions
SFCError Configure( BDAddress const * address , BTA2DPConfig config , ACharConstPtr string )
Used for fine grained control of audio engine, mostly useful for interop with devices.
SFCError Configure( BDAddress const * address , BTA2DPConfig config , SFXAnsiStringConstRef string )
Used for fine grained control of audio engine, mostly useful for interop with devices.
SFCError Connect( BDAddress const * address )
Connect to a Bluetooth Audio sink device.
SFCError Disable( Void )
The Bluetooth device ceases to be connectable.
SFCError Disconnect( BDAddress const * address )
SFCError Enable( BTSecurityLevel security )
Calling this API causes the Bluetooth device to be connectable
SFCError GetConfig( BDAddress const * address , ACharPtr string , SInt32 length , SInt32Ptr reqlen )
Get the currently used configuration parameters for the specified device.
SFCError GetConfig( BDAddress const * address , SFXAnsiStringPtr string )
Get the currently used configuration parameters for the specified device.
static
SFBBTA2DPSmp
NewInstance( SFCErrorPtr exception = null )
Create a new SFBBTA2DP instance.
static
SFBBTA2DPSmp
NewInstance( AEECLSID id , SFCErrorPtr exception = null )
Create a new SFBBTA2DP instance.
SFCError SetDevice( BDAddress const * address )
SFCError QueryInterface( AEECLSID clsid , VoidHandle handle ) (inherits from SFBQuery)
Ask an object for another API contract from the object in question.
SFCError QueryInterface( AEECLSID clsid , SFBBaseSmpPtr handle ) (inherits from SFBQuery)
Ask an object for another API contract from the object in question.
SFBBaseSmp QueryInterface( AEECLSID clsid ) (inherits from SFBQuery)
Ask an object for another API contract from the object in question.
Void Self( AEECLSID clsidReq , SFBQuerySmpPtr clone , AEECLSID clsidImp ) (inherits from SFBQuery)
Helper macro for those implementing an object with a single interface.
SFBQuerySmp Self( AEECLSID clsidReq , AEECLSID clsidImp ) (inherits from SFBQuery)
Helper macro for those implementing an object with a single interface.
Protected Functions
static
SFBBaseSmp
FactoryByCreate( AEECLSID id , SFCErrorPtr exception = null ) (inherits from SFBBase)
Create the instance for the specified ClassID's interface.
static
SFBBaseSmp
FactoryByQuery( SFBQuerySmpConstRef query , AEECLSID id , SFCErrorPtr exception = null ) (inherits from SFBBase)
Create the instance for the specified ClassID's interface using the SFBQuery instance.

SFBBTA2DP::Configure
Used for fine grained control of audio engine, mostly useful for interop with devices.
[ public ]
SFCError Configure(
    BDAddress const * address   // Bluetooth device address. If NULL, this configuration will apply to all devices and will override any existing device specific configuration
    BTA2DPConfig config         // A2DP configuration
    ACharConstPtr string        // configuration string consisting of name value pairs separated by a delimiter
);
[ public ]
SFCError Configure(
    BDAddress const * address      // Bluetooth device address. If NULL, this configuration will apply to all devices and will override any existing device specific configuration
    BTA2DPConfig config            // A2DP configuration
    SFXAnsiStringConstRef string   // configuration string consisting of name value pairs separated by a delimiter
);

Reference

BREW API IBTA2DP_Configure


SFBBTA2DP::Connect
Connect to a Bluetooth Audio sink device.
[ public ]
SFCError Connect(
    BDAddress const * address   // Bluetooth device address of the sink
);

Reference

BREW API IBTA2DP_Connect


SFBBTA2DP::Disable
The Bluetooth device ceases to be connectable.
[ public ]
SFCError Disable(Void);

Reference

BREW API IBTA2DP_Disable


SFBBTA2DP::Disconnect
[ public ]
SFCError Disconnect(
    BDAddress const * address   // Bluetooth device address of the sink
);

Reference

BREW API IBTA2DP_Disconnect


SFBBTA2DP::Enable
Calling this API causes the Bluetooth device to be connectable
[ public ]
SFCError Enable(
    BTSecurityLevel security   // Bluetooth service security level
);

Reference

BREW API IBTA2DP_Enable


SFBBTA2DP::GetConfig
Get the currently used configuration parameters for the specified device.
[ public ]
SFCError GetConfig(
    BDAddress const * address   // bluetooth device address of the sink
    ACharPtr string             // configuration string consisting of name value pairs separated by a delimiter
    SInt32 length               // length of buffer allocated for the configuration string
    SInt32Ptr reqlen            // length of buffer required to return configuration string
);
[ public ]
SFCError GetConfig(
    BDAddress const * address   // bluetooth device address of the sink
    SFXAnsiStringPtr string     // configuration string consisting of name value pairs separated by a delimiter
);

Reference

BREW API IBTA2DP_GetConfig


SFBBTA2DP::NewInstance
Create a new SFBBTA2DP instance.
[ public, static ]
SFBBTA2DPSmp NewInstance(
    SFCErrorPtr exception = null   // Error
);
[ public, static ]
SFBBTA2DPSmp NewInstance(
    AEECLSID id                    // Class ID
    SFCErrorPtr exception = null   // Error
);

SFBBTA2DP::SetDevice
[ public ]
SFCError SetDevice(
    BDAddress const * address   // bluetooth device address of the sink
);

Reference

BREW API IBTA2DP_SetDevice