mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-05 10:12:46 +00:00
WIP: Add playlists/queues and add support for Sailfish back
This commit is contained in:
parent
fbc154fb56
commit
86672be051
89 changed files with 1637 additions and 849 deletions
|
@ -110,15 +110,19 @@ protected:
|
|||
void setError(QNetworkReply::NetworkError error);
|
||||
void setErrorString(const QString &newErrorString);
|
||||
|
||||
|
||||
void reloadIfNeeded() {
|
||||
if (canReload()) {
|
||||
reload();
|
||||
}
|
||||
}
|
||||
void classBegin() override {
|
||||
m_isParsing = true;
|
||||
}
|
||||
|
||||
void componentComplete() override {
|
||||
m_isParsing = false;
|
||||
if (canReload()) {
|
||||
reload();
|
||||
}
|
||||
reloadIfNeeded();
|
||||
}
|
||||
ApiClient *m_apiClient = nullptr;
|
||||
protected:
|
||||
|
@ -157,7 +161,7 @@ public:
|
|||
}
|
||||
|
||||
T *dataViewModel() const { return m_dataViewModel; }
|
||||
QObject *data() const { return m_dataViewModel; }
|
||||
QObject *data() const override { return m_dataViewModel; }
|
||||
|
||||
void reload() override {
|
||||
if (m_futureWatcher->isRunning()) return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue