virtual GF_RET_CODE identify(int msec=1000)=0
Identifies a physical device using vibration or light, if the device supports.
virtual GF_RET_CODE cancelConnect()=0
Cancels connecting to the device.
virtual GF_UINT8 getAddrType() const =0
Gets the device address type.
DeviceConnectionStatus
Possible gForce device connection status.
Definition: gfTypes.h:205
virtual GF_RET_CODE connect(bool directConn=true)=0
Connects to the device.
unsigned int GF_UINT
type definition
Definition: gfTypes.h:58
virtual tstring getAlias() const =0
Get the alias of the device set before.
virtual GF_RET_CODE setAlias(tstring alias)=0
Sets an alias to the devie for identification.
The abstract class of a gForce device.
Definition: Device.h:53
std::string tstring
std::string type definition for ANSI/UNICODE convenience
Definition: gfTypes.h:98
virtual GF_RET_CODE disconnect()=0
Disconnects from the device.
virtual gfsPtr< DeviceSetting > getDeviceSetting()=0
Get DeviceSetting of a device.
The namespace in which all of the gForceSDK project definitions are contained.
Definition: Device.h:42
virtual ~Device()
Virtual deconstructor.
Definition: Device.h:157
virtual GF_UINT getRssi() const =0
Gets the device RSSI value.
std::shared_ptr< T > gfsPtr
The strong pointer.
Definition: gfTypes.h:113
virtual tstring getName() const =0
Gets the device name.
virtual tstring getAddress() const =0
Gets the string type of device address.
GF_RET_CODE
Defines possible return values of methods.
Definition: gfTypes.h:138
virtual DeviceConnectionStatus getConnectionStatus() const =0
Retrieves the connection status of the device.
The abstract of the device setting handler of a gForce device.
Definition: DeviceSetting.h:60
The basic type definitions using in gForceSDK.
unsigned char GF_UINT8
type definition
Definition: gfTypes.h:65