Checkpoint
This commit is contained in:
+13
-2
@@ -41,6 +41,7 @@
|
||||
#include "AtomConverter.hpp"
|
||||
#include "FileEntry.hpp"
|
||||
#include <unordered_map>
|
||||
#include "Tone3000Downloader.hpp"
|
||||
|
||||
namespace pipedal
|
||||
{
|
||||
@@ -51,7 +52,6 @@ namespace pipedal
|
||||
class Updater;
|
||||
class AvahiService;
|
||||
class Lv2PluginState;
|
||||
class Tone3000Downloader;
|
||||
|
||||
class IPiPedalModelSubscriber
|
||||
{
|
||||
@@ -92,6 +92,11 @@ namespace pipedal
|
||||
|
||||
// virtual void OnPatchPropertyChanged(int64_t clientId, int64_t instanceId,const std::string& propertyUri,const json_variant& value) = 0;
|
||||
virtual void OnErrorMessage(const std::string &message) = 0;
|
||||
|
||||
virtual void OnTone3000DownloadStarted(int64_t handle, const std::string &title) = 0;
|
||||
virtual void OnTone3000DownloadProgress(const Tone3000DownloadProgress &progress) = 0;
|
||||
virtual void OnTone3000DownloadComplete(int64_t handle, const std::string &resultPath) = 0;
|
||||
virtual void OnTone3000DownloadError(int64_t handle, const std::string &errorMessage) = 0;
|
||||
virtual void OnLv2PluginsChanging() = 0;
|
||||
|
||||
virtual void OnNetworkChanging(bool hotspotConnected) = 0;
|
||||
@@ -102,7 +107,7 @@ namespace pipedal
|
||||
|
||||
class HotspotManager;
|
||||
|
||||
class PiPedalModel : private IAudioHostCallbacks
|
||||
class PiPedalModel : private IAudioHostCallbacks, private Tone3000Downloader::Listener
|
||||
{
|
||||
public:
|
||||
using clock = std::chrono::steady_clock;
|
||||
@@ -114,6 +119,12 @@ namespace pipedal
|
||||
private:
|
||||
PedalboardItem *GetPedalboardItemForFileProperty(const UiFileProperty &fileProperty);
|
||||
|
||||
// Tone3000Downloader::Listener implementation
|
||||
virtual void OnStartTone3000Download(int64_t handle, const std::string &title) override;
|
||||
virtual void OnTone3000Progress(const Tone3000DownloadProgress &progress) override;
|
||||
virtual void OnTone3000DownloadComplete(int64_t handle, const std::string &resultPath) override;
|
||||
virtual void OnTone3000DownloadError(int64_t handle, const std::string &errorMessage) override;
|
||||
|
||||
std::shared_ptr<Tone3000Downloader> tone3000Downloader;
|
||||
void CancelAudioRetry();
|
||||
clock::time_point lastRestartTime = clock::time_point::min();
|
||||
|
||||
Reference in New Issue
Block a user