Mercurial > hg > orthanc-stone
comparison Applications/BasicApplicationContext.h @ 242:092db46c6291 am
improved SDL/Wasm unification
author | am@osimis.io |
---|---|
date | Wed, 20 Jun 2018 14:20:55 +0200 |
parents | 5027cb2feb51 |
children | 46c5296d867e |
comparison
equal
deleted
inserted
replaced
241:a4197519eb55 | 242:092db46c6291 |
---|---|
29 namespace OrthancStone | 29 namespace OrthancStone |
30 { | 30 { |
31 class BasicApplicationContext : public boost::noncopyable | 31 class BasicApplicationContext : public boost::noncopyable |
32 { | 32 { |
33 | 33 |
34 protected: | |
35 IWebService& webService_; | |
34 public: | 36 public: |
35 BasicApplicationContext() {} | 37 BasicApplicationContext(IWebService& webService) |
38 : webService_(webService) | |
39 { | |
40 } | |
36 | 41 |
37 virtual IWebService& GetWebService() = 0; | 42 virtual IWebService& GetWebService() {return webService_;} |
38 // virtual IWidget& SetCentralWidget(IWidget* widget) = 0; // Takes ownership | 43 // virtual IWidget& SetCentralWidget(IWidget* widget) = 0; // Takes ownership |
39 | 44 |
40 virtual ~BasicApplicationContext() {} | 45 virtual ~BasicApplicationContext() {} |
41 }; | 46 }; |
42 } | 47 } |