NUGU SDK Linux  1.7.6
NuguClientKit::INetworkManager Class Referenceabstract

network manager interface More...

#include <network_manager_interface.hh>

Public Member Functions

virtual void addListener (INetworkManagerListener *listener)=0
 Add the Listener object. More...
 
virtual bool connect ()=0
 Request a connection with the NUGU server. More...
 
virtual bool disconnect ()=0
 Request a disconnection with the NUGU server. More...
 
virtual void removeListener (INetworkManagerListener *listener)=0
 Remove the Listener object. More...
 
virtual bool setRegistryUrl (const std::string &url)=0
 Set the device gateway registry url. More...
 
virtual bool setToken (const std::string &token)=0
 Set the access token value. The connection type is automatically set through token analysis. More...
 
virtual bool setUserAgent (const std::string &app_version, const std::string &additional_info="")=0
 Set the HTTP header UserAgent information. More...
 

Detailed Description

network manager interface

See also
INetworkManagerListener

Member Function Documentation

◆ addListener()

virtual void NuguClientKit::INetworkManager::addListener ( INetworkManagerListener listener)
pure virtual

Add the Listener object.

Parameters
[in]listenerlistener object

◆ removeListener()

virtual void NuguClientKit::INetworkManager::removeListener ( INetworkManagerListener listener)
pure virtual

Remove the Listener object.

Parameters
[in]listenerlistener object

◆ connect()

virtual bool NuguClientKit::INetworkManager::connect ( )
pure virtual

Request a connection with the NUGU server.

Returns
result
Return values
0success
-1failure

◆ disconnect()

virtual bool NuguClientKit::INetworkManager::disconnect ( )
pure virtual

Request a disconnection with the NUGU server.

Returns
result
Return values
0success
-1failure

◆ setToken()

virtual bool NuguClientKit::INetworkManager::setToken ( const std::string &  token)
pure virtual

Set the access token value. The connection type is automatically set through token analysis.

Parameters
[in]tokenaccess token
Returns
result
Return values
0success
-1failure

◆ setRegistryUrl()

virtual bool NuguClientKit::INetworkManager::setRegistryUrl ( const std::string &  url)
pure virtual

Set the device gateway registry url.

Parameters
[in]urlregistry url
Returns
result
Return values
0success
-1failure

◆ setUserAgent()

virtual bool NuguClientKit::INetworkManager::setUserAgent ( const std::string &  app_version,
const std::string &  additional_info = "" 
)
pure virtual

Set the HTTP header UserAgent information.

Parameters
[in]app_versionapplication version (e.g. "0.1.0")
[in]additional_infoadditional information or ""
Returns
result
Return values
0success
-1failure

The documentation for this class was generated from the following file: