|
gForceSDK
|
The abstract class of a gForce device. More...
#include <Device.h>
Public Member Functions | |
| virtual GF_UINT8 | getAddrType () const =0 |
| Gets the device address type. More... | |
| virtual tstring | getAddress () const =0 |
| Gets the string type of device address. More... | |
| virtual tstring | getName () const =0 |
| Gets the device name. More... | |
| virtual GF_UINT | getRssi () const =0 |
| Gets the device RSSI value. More... | |
| virtual GF_RET_CODE | identify (int msec=1000)=0 |
| Identifies a physical device using vibration or light, if the device supports. More... | |
| virtual DeviceConnectionStatus | getConnectionStatus () const =0 |
| Retrieves the connection status of the device. More... | |
| virtual GF_RET_CODE | setAlias (tstring alias)=0 |
| Sets an alias to the devie for identification. More... | |
| virtual tstring | getAlias () const =0 |
| Get the alias of the device set before. More... | |
| virtual GF_RET_CODE | connect (bool directConn=true)=0 |
| Connects to the device. More... | |
| virtual GF_RET_CODE | disconnect ()=0 |
| Disconnects from the device. More... | |
| virtual GF_RET_CODE | cancelConnect ()=0 |
| Cancels connecting to the device. More... | |
| virtual gfsPtr< DeviceSetting > | getDeviceSetting ()=0 |
| Get DeviceSetting of a device. More... | |
Protected Member Functions | |
| virtual | ~Device () |
| Virtual deconstructor. | |
The abstract class of a gForce device.
|
pure virtual |
Cancels connecting to the device.
|
pure virtual |
Connects to the device.
| directConn | - bool |
|
pure virtual |
Disconnects from the device.
|
pure virtual |
Gets the string type of device address.
DD:DD:DD:DD:DD:DD
|
pure virtual |
Gets the device address type.
|
pure virtual |
Get the alias of the device set before.
|
pure virtual |
Retrieves the connection status of the device.
|
pure virtual |
Get DeviceSetting of a device.
|
pure virtual |
Gets the device name.
|
pure virtual |
Gets the device RSSI value.
|
pure virtual |
Identifies a physical device using vibration or light, if the device supports.
|
pure virtual |
Sets an alias to the devie for identification.