comparison Applications/IStoneApplication.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 8c8da145fefa
children daa04d15192c
comparison
equal deleted inserted replaced
304:6c22e0506587 307:be2660b6e40a
23 23
24 #include "StoneApplicationContext.h" 24 #include "StoneApplicationContext.h"
25 #include <boost/program_options.hpp> 25 #include <boost/program_options.hpp>
26 #include "../Framework/Viewport/WidgetViewport.h" 26 #include "../Framework/Viewport/WidgetViewport.h"
27 #include "json/json.h" 27 #include "json/json.h"
28 #include "Commands/ICommand.h"
29 #include "Commands/BaseCommandBuilder.h"
28 30
29 namespace OrthancStone 31 namespace OrthancStone
30 { 32 {
31 // a StoneApplication is an application that can actually be executed 33 // a StoneApplication is an application that can actually be executed
32 // in multiple environments. i.e: it can run natively integrated in a QtApplication 34 // in multiple environments. i.e: it can run natively integrated in a QtApplication
51 53
52 virtual std::string GetTitle() const = 0; 54 virtual std::string GetTitle() const = 0;
53 virtual IWidget* GetCentralWidget() = 0; 55 virtual IWidget* GetCentralWidget() = 0;
54 56
55 virtual void Finalize() = 0; 57 virtual void Finalize() = 0;
58
59 virtual BaseCommandBuilder& GetCommandBuilder() = 0;
60
61 virtual void ExecuteCommand(ICommand& command)
62 {
63 }
56 }; 64 };
57 65
58 } 66 }