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:
parent
d6a1f431b4
commit
e838fcc8a1
6 changed files with 46 additions and 5 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue