1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2025-09-04 01:42:44 +00:00

Added very simple photo viewer

This commit is contained in:
Chris Josten 2020-10-10 17:28:13 +02:00
parent d6a1f431b4
commit e838fcc8a1
6 changed files with 46 additions and 5 deletions

View file

@ -179,6 +179,7 @@ public slots:
* @brief Shares the capabilities of this device to the server.
*/
void postCapabilities();
QString downloadUrl(const QString &itemId) const;
protected slots:
void defaultNetworkErrorHandler(QNetworkReply::NetworkError error);

View file

@ -248,6 +248,10 @@ void ApiClient::postCapabilities() {
setDefaultErrorHandler(rep);
}
QString ApiClient::downloadUrl(const QString &itemId) const {
return m_baseUrl + "/Items/" + itemId + "/Download?api_key=" + this->m_token;
}
void ApiClient::generateDeviceProfile() {
QJsonObject root = DeviceProfile::generateProfile();
m_playbackDeviceProfile = QJsonObject(root);