17 #ifndef __NUGU_BLUETOOTH_INTERFACE_H__
18 #define __NUGU_BLUETOOTH_INTERFACE_H__
22 namespace NuguCapability {
24 using namespace NuguClientKit;
84 virtual void play(
bool by_focus =
false) = 0;
90 virtual void stop(
bool by_focus =
false) = 0;
96 virtual void pause(
bool by_focus =
false) = 0;
bluetooth handler interface
Definition: bluetooth_interface.hh:119
virtual void mediaControlNextFailed()=0
Notify the fail result of playing next media.
virtual void finishDiscoverableModeSucceeded()=0
Notify the success result of finish discoverable mode.
virtual void connectFailed()=0
Notify the fail result of connect device.
virtual void mediaControlNextSucceeded()=0
Notify the success result of playing next media.
virtual void disconnectFailed()=0
Notify the fail result of disconnect device.
virtual void startDiscoverableModeSucceeded(bool has_paired_devices)=0
Notify the success result of start discoverable mode.
virtual void mediaControlPauseFailed()=0
Notify the fail result of pausing media.
virtual void connectSucceeded()=0
Notify the success result of connect device.
virtual void setAudioPlayerState(const std::string &state)=0
Notify the audio player's state.
virtual void mediaControlPreviousSucceeded()=0
Notify the success result of playing previous media.
virtual void startDiscoverableModeFailed(bool has_paired_devices)=0
Notify the fail result of start discoverable mode.
virtual void mediaControlPauseSucceeded()=0
Notify the success result of pausing media.
virtual void mediaControlStopSucceeded()=0
Notify the success result of stopping media.
virtual void mediaControlPlayFailed()=0
Notify the fail result of playing media.
virtual void mediaControlPreviousFailed()=0
Notify the fail result of playing previous media.
virtual void mediaControlPlaySucceeded()=0
Notify the success result of playing media.
virtual void finishDiscoverableModeFailed()=0
Notify the fail result of finish discoverable mode.
virtual void mediaControlStopFailed()=0
Notify the fail result of stopping media.
virtual void disconnectSucceeded()=0
Notify the success result of disconnect device.
bluetooth listener interface
Definition: bluetooth_interface.hh:65
virtual void play(bool by_focus=false)=0
Send command to play media to bluetooth adaptor.
virtual void startDiscoverableMode(long duration_sec)=0
Send command to switch discoverable on to bluetooth adaptor.
virtual void pause(bool by_focus=false)=0
Send command to pause media to bluetooth adaptor.
virtual void finishDiscoverableMode()=0
Send command to switch discoverable off to bluetooth adaptor.
virtual void requestContext(BTDeviceInfo &device_info)=0
Request device information for bluetooth context.
virtual void next()=0
Send command to play next media to bluetooth adaptor.
virtual void previous()=0
Send command to play previous media to bluetooth adaptor.
virtual void stop(bool by_focus=false)=0
Send command to stop media to bluetooth adaptor.
capability interface
Definition: capability_interface.hh:81
capability listener interface
Definition: capability_interface.hh:59
struct NuguCapability::_BTDeviceInfo BTDeviceInfo
Bluetooth device information.
struct NuguCapability::_BTProfile BTProfile
Bluetooth profiles information.
Bluetooth device information.
Definition: bluetooth_interface.hh:50
bool power_on
Definition: bluetooth_interface.hh:52
std::string active_device_streaming
Definition: bluetooth_interface.hh:58
bool is_paired_device
Definition: bluetooth_interface.hh:54
std::vector< BTProfile > profiles
Definition: bluetooth_interface.hh:53
std::string active_device_name
Definition: bluetooth_interface.hh:57
std::string device_name
Definition: bluetooth_interface.hh:51
std::string active_device_id
Definition: bluetooth_interface.hh:56
bool is_active_device
Definition: bluetooth_interface.hh:55
Bluetooth profiles information.
Definition: bluetooth_interface.hh:41
bool enable
Definition: bluetooth_interface.hh:43
std::string name
Definition: bluetooth_interface.hh:42