diff 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
line wrap: on
line diff
--- a/Applications/BasicApplicationContext.h	Wed Jun 20 09:50:25 2018 +0200
+++ b/Applications/BasicApplicationContext.h	Wed Jun 20 14:20:55 2018 +0200
@@ -31,10 +31,15 @@
   class BasicApplicationContext : public boost::noncopyable
   {
 
+  protected:
+    IWebService& webService_;
   public:
-    BasicApplicationContext() {}
+    BasicApplicationContext(IWebService& webService)
+      : webService_(webService)
+    {
+    }
 
-    virtual IWebService& GetWebService() = 0;
+    virtual IWebService& GetWebService() {return webService_;}
 //    virtual IWidget& SetCentralWidget(IWidget* widget) = 0;   // Takes ownership
 
     virtual ~BasicApplicationContext() {}