17 #ifndef __NUGU_NETWORK_MANAGER_INTERFACE_H__
18 #define __NUGU_NETWORK_MANAGER_INTERFACE_H__
25 namespace NuguClientKit {
144 virtual bool setToken(
const std::string& token) = 0;
163 virtual bool setUserAgent(
const std::string& app_version,
const std::string& additional_info =
"") = 0;
network manager listener interface
Definition: network_manager_interface.hh:56
virtual void onStatusChanged(NetworkStatus status)
Report the connection status with the NUGU server.
virtual void onEventAttachmentSend(NuguEvent *nev, int seq, bool is_end, size_t length, unsigned char *data)
Report that the attachment will be sent to the server.
virtual void onEventSend(NuguEvent *nev)
Report that the event will be sent to the server.
virtual void onEventResponse(const char *msg_id, const char *data, bool success)
Report the response data received from the server.
virtual void onEventSendResult(const char *msg_id, bool success, int code)
Report the result of sending an event from the server.
virtual void onError(NetworkError error)
Report an error while communicating with the NUGU server.
network manager interface
Definition: network_manager_interface.hh:105
virtual void addListener(INetworkManagerListener *listener)=0
Add the Listener object.
virtual bool setToken(const std::string &token)=0
Set the access token value. The connection type is automatically set through token analysis.
virtual bool setUserAgent(const std::string &app_version, const std::string &additional_info="")=0
Set the HTTP header UserAgent information.
virtual bool setRegistryUrl(const std::string &url)=0
Set the device gateway registry url.
virtual void removeListener(INetworkManagerListener *listener)=0
Remove the Listener object.
virtual bool disconnect()=0
Request a disconnection with the NUGU server.
virtual bool connect()=0
Request a connection with the NUGU server.
NetworkStatus
Definition: network_manager_interface.hh:39
NetworkError
Definition: network_manager_interface.hh:46
struct _nugu_event NuguEvent
Event object.
Definition: nugu_event.h:59