41 #ifndef YOCTO_BLUETOOTHLINK_H 42 #define YOCTO_BLUETOOTHLINK_H 63 #ifndef _Y_LINKSTATE_ENUM 64 #define _Y_LINKSTATE_ENUM 75 #define Y_OWNADDRESS_INVALID (YAPI_INVALID_STRING) 76 #define Y_PAIRINGPIN_INVALID (YAPI_INVALID_STRING) 77 #define Y_REMOTEADDRESS_INVALID (YAPI_INVALID_STRING) 78 #define Y_REMOTENAME_INVALID (YAPI_INVALID_STRING) 79 #define Y_PREAMPLIFIER_INVALID (YAPI_INVALID_UINT) 80 #define Y_VOLUME_INVALID (YAPI_INVALID_UINT) 81 #define Y_LINKQUALITY_INVALID (YAPI_INVALID_UINT) 82 #define Y_COMMAND_INVALID (YAPI_INVALID_STRING) 94 #pragma option push -w-8022 153 string get_ownAddress(
void);
156 {
return this->get_ownAddress(); }
169 string get_pairingPin(
void);
172 {
return this->get_pairingPin(); }
185 int set_pairingPin(
const string& newval);
187 {
return this->set_pairingPin(newval); }
196 string get_remoteAddress(
void);
199 {
return this->get_remoteAddress(); }
210 int set_remoteAddress(
const string& newval);
212 {
return this->set_remoteAddress(newval); }
221 string get_remoteName(
void);
224 {
return this->get_remoteName(); }
236 {
return this->get_mute(); }
250 {
return this->set_mute(newval); }
259 int get_preAmplifier(
void);
262 {
return this->get_preAmplifier(); }
273 int set_preAmplifier(
int newval);
275 {
return this->set_preAmplifier(newval); }
284 int get_volume(
void);
287 {
return this->get_volume(); }
298 int set_volume(
int newval);
300 {
return this->set_volume(newval); }
313 {
return this->get_linkState(); }
323 int get_linkQuality(
void);
326 {
return this->get_linkQuality(); }
328 string get_command(
void);
331 {
return this->get_command(); }
333 int set_command(
const string& newval);
335 {
return this->set_command(newval); }
389 virtual int connect(
void);
398 virtual int disconnect(
void);
413 {
return this->nextBluetoothLink();}
static const string REMOTEADDRESS_INVALID
Y_LINKSTATE_enum _linkState
static YBluetoothLink * FindBluetoothLink(string func)
static YBluetoothLink * FirstBluetoothLink(void)
int setPairingPin(const string &newval)
static YBluetoothLink * Find(string func)
static const string COMMAND_INVALID
#define YAPI_INVALID_UINT
YBluetoothLink * yFindBluetoothLink(const string &func)
virtual int _parseAttr(YJSONObject *json_val)
int setPreAmplifier(int newval)
YBluetoothLink * next(void)
int setRemoteAddress(const string &newval)
static YBluetoothLink * First(void)
static const string PAIRINGPIN_INVALID
YBluetoothLinkValueCallback _valueCallbackBluetoothLink
string remoteAddress(void)
Y_LINKSTATE_enum linkState(void)
int setVolume(int newval)
virtual int registerValueCallback(YFunctionValueCallback callback)
static const string OWNADDRESS_INVALID
YBluetoothLink * yFirstBluetoothLink(void)
int setCommand(const string &newval)
#define YOCTO_CLASS_EXPORT
int setMute(Y_MUTE_enum newval)
void(* YBluetoothLinkValueCallback)(YBluetoothLink *func, const string &functionValue)
static const string REMOTENAME_INVALID
virtual int _invokeValueCallback(string value)