view Platforms/Wasm/WasmPlatformApplicationAdapter.h @ 307:be2660b6e40a am-callable-and-promise

wip: commands + status update
author am@osimis.io
date Tue, 25 Sep 2018 15:14:53 +0200
parents
children 7105a0bad250
line wrap: on
line source

#pragma once

#include <string>
#include <Framework/Messages/IObserver.h>
#include <Applications/IStoneApplication.h>

namespace OrthancStone
{
  class WasmPlatformApplicationAdapter : public IObserver
  {
      IStoneApplication&  application_;
    public:
      WasmPlatformApplicationAdapter(MessageBroker& broker, IStoneApplication& application);

      virtual void HandleMessageFromWeb(std::string& output, const std::string& input);
      virtual void NotifyStatusUpdateFromCppToWeb(const std::string& statusUpdateMessage);
  };
}