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

Inheritance diagram

 Inheritance diagram of SFBBTClass

Version

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

Reference

BREW API IBT

Member

Public Functions
SFCError Command( SInt32 command , SFXCallbackPtr callback , VoidConstPtr inBuffer , SInt32 inSize , VoidPtr outBuffer , SInt32 outSize )
Create an object based on the given class ID.
SFCError Command( SInt32 command , SFXCallbackPtr callback , SFXBufferConstRef in , SFXBufferPtr out )
Create an object based on the given class ID.
SFCError GetLocalInfo( VoidPtr info , SInt32 size )
Retrieve information on the local BT device.
SFCError GetLocalInfo( SFXBufferPtr info )
Retrieve information on the local BT device.
SFCError GetNotificationData( VoidConstPtr notification , SInt32 infoSize , VoidPtr eventData , SInt32 edSize )
The application should invoke this API to retrieve notification data.
SFCError GetNotificationData( SFXBufferConstRef notification , SFXBufferPtr eventData )
The application should invoke this API to retrieve notification data.
SFCError GetObject( AEECLSID id , VoidConstPtr inData , SInt32 size , VoidHandle object )
Create an object based on the given class ID.
SFCError GetObject( AEECLSID id , SFXBufferConstRef in , VoidHandle object )
Create an object based on the given class ID.
SFCError GetRadioState( BTRadioState * state )
Retrieve the current state of the local device's radio.
static
SFBBTSmp
NewInstance( SFCErrorPtr exception = null )
Create a new SFBBT instance.
static
SFBBTSmp
NewInstance( AEECLSID id , SFCErrorPtr exception = null )
Create a new SFBBT instance.
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.

SFBBT::Command
Create an object based on the given class ID.
[ public ]
SFCError Command(
    SInt32 command            // the command AEEBT_CMD_*
    SFXCallbackPtr callback   // callback to be invoked when command is done; can be NULL
    VoidConstPtr inBuffer     // input parameters; can be NULL
    SInt32 inSize             // size of inBuffer; ignored if inBuffer is NULL
    VoidPtr outBuffer         // destination for output data
    SInt32 outSize            // size of outBuffer; ignored if outBuffer is NULL
);
[ public ]
SFCError Command(
    SInt32 command            // the command AEEBT_CMD_*
    SFXCallbackPtr callback   // callback to be invoked when command is done; can be NULL
    SFXBufferConstRef in      // input parameters
    SFXBufferPtr out          // output data
);

Reference

BREW API IBT_Command


SFBBT::GetLocalInfo
Retrieve information on the local BT device.
[ public ]
SFCError GetLocalInfo(
    VoidPtr info   // info on the local BT device will be copied to this location
    SInt32 size    // size of BTLocalInfo info structure
);
[ public ]
SFCError GetLocalInfo(
    SFXBufferPtr info   // info on the local BT device will be copied to this buffer
);

Reference

BREW API IBT_GetLocalInfo


SFBBT::GetNotificationData
The application should invoke this API to retrieve notification data.
[ public ]
SFCError GetNotificationData(
    VoidConstPtr notification   // info to look up event
    SInt32 infoSize             // size of notification info structure
    VoidPtr eventData           // all data associated with the event of interest
    SInt32 edSize               // size of event data structure
);
[ public ]
SFCError GetNotificationData(
    SFXBufferConstRef notification   // info to look up event
    SFXBufferPtr eventData           // all data associated with the event of interest
);

Reference

BREW API IBT_GetNotificationData


SFBBT::GetObject
Create an object based on the given class ID.
[ public ]
SFCError GetObject(
    AEECLSID id           // class ID specifying the type of object to create
    VoidConstPtr inData   // input parameter; can be NULL
    SInt32 size           // size of inData; ignored if inData is NULL
    VoidHandle object     // points to the object created with cID
);
[ public ]
SFCError GetObject(
    AEECLSID id            // class ID specifying the type of object to create
    SFXBufferConstRef in   // input parameter
    VoidHandle object      // points to the object created with cID
);

Reference

BREW API IBT_GetObject


SFBBT::GetRadioState
Retrieve the current state of the local device's radio.
[ public ]
SFCError GetRadioState(
    BTRadioState * state   // destination for the current radio state
);

Reference

BREW API IBT_GetRadioState


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