#include <utils/FluidHubAPIClient.hpp>
◆ WaresDetailsByID_t
◆ WaresListByType_t
◆ FluidHubAPIClient()
openfluid::utils::FluidHubAPIClient::FluidHubAPIClient |
( |
| ) |
|
|
default |
◆ ~FluidHubAPIClient()
openfluid::utils::FluidHubAPIClient::~FluidHubAPIClient |
( |
| ) |
|
|
inline |
◆ connect()
Connects to the FluidHub given by the URL
- Parameters
-
[in] | URL | the URL of the FluidHub to connect to |
[in] | SSLConfig | the SSL configuration for the connection (if needed) |
- Returns
- true if the connection is OK, false otherwise
◆ disconnect()
void openfluid::utils::FluidHubAPIClient::disconnect |
( |
| ) |
|
Disconnects from the connected FluidHub
◆ getAllAvailableWares()
WaresListByType_t openfluid::utils::FluidHubAPIClient::getAllAvailableWares |
( |
| ) |
const |
Returns the list of all available wares in the current FluidHub
- Returns
- the list of wares categorized by ware type
◆ getAvailableWaresWithDetails()
Returns the detailed list of all available wares in the current FluidHub
- Parameters
-
[in] | Type | the type of wares to list |
[in] | Username | Optional username used in returned git URL |
- Returns
- the detailed list of wares of the give type
◆ getHubAPIVersion()
QString openfluid::utils::FluidHubAPIClient::getHubAPIVersion |
( |
| ) |
const |
|
inline |
Returns the API version of the current FluidHub
- Returns
- the FluidHub API version
◆ getHubCapabilities()
std::set<QString> openfluid::utils::FluidHubAPIClient::getHubCapabilities |
( |
| ) |
const |
|
inline |
Returns the capabilities list of the current FluidHub ("news","wareshub", ...)
- Returns
- the FluidHub capabilities
◆ getHubName()
QString openfluid::utils::FluidHubAPIClient::getHubName |
( |
| ) |
const |
|
inline |
Returns the name of the current FluidHub
- Returns
- the FluidHub name
◆ getHubStatus()
QString openfluid::utils::FluidHubAPIClient::getHubStatus |
( |
| ) |
const |
|
inline |
Returns the status of the current FluidHub
- Returns
- the FluidHub status
◆ getHubURL()
QString openfluid::utils::FluidHubAPIClient::getHubURL |
( |
| ) |
const |
|
inline |
Returns the URL of the current FluidHub
- Returns
- the FluidHub URL
◆ getNews()
QString openfluid::utils::FluidHubAPIClient::getNews |
( |
const QString & |
Lang = "" | ) |
const |
Returns the news as an RSS string content
- Parameters
-
[in] | Lang | Optional lang for news content |
- Returns
- the RSS content
◆ getUserUnixname()
std::string openfluid::utils::FluidHubAPIClient::getUserUnixname |
( |
std::string |
Email, |
|
|
std::string |
Password |
|
) |
| |
Returns the corresponding user unixname if connected and not deprecated API
- Returns
- the connected user unixname
◆ isConnected()
bool openfluid::utils::FluidHubAPIClient::isConnected |
( |
| ) |
const |
|
inline |
Returns true if the client is currently connected
- Returns
- true if connected
◆ isV0ofAPI()
bool openfluid::utils::FluidHubAPIClient::isV0ofAPI |
( |
| ) |
const |
|
inline |
Returns true if the serveur uses the deprecated API (old wareshub)
- Returns
- true if connected
◆ logout()
void openfluid::utils::FluidHubAPIClient::logout |
( |
| ) |
|
Unsets the authentication informations
The documentation for this class was generated from the following file: