Lumiera  0.pre.03
»edit your freedom«
stage/ctrl/facade.hpp
1 /*
2  FACADE.hpp - Manage the public facade interfaces of the UI
3 
4  Copyright (C) Lumiera.org
5  2017, Hermann Vosseler <Ichthyostega@web.de>
6 
7  This program is free software; you can redistribute it and/or
8  modify it under the terms of the GNU General Public License as
9  published by the Free Software Foundation; either version 2 of
10  the License, or (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 
21 */
22 
23 
42 #ifndef STAGE_CTRL_FACADE_H
43 #define STAGE_CTRL_FACADE_H
44 
47 #include "lib/depend-inject.hpp"
48 #include "lib/nocopy.hpp"
49 
50 
51 
52 namespace stage {
53 namespace ctrl {
54 
55 
63  class Facade
65  {
68 
69  Instance_Notification notificationService_;
70  Instance_DisplayService displayService_;
71 
72 
73  public:
77  Facade (UiBus& bus, UiManager& manager)
78  : notificationService_{bus.getAccessPoint(), manager} // opens the GuiNotificationService instance
79  , displayService_{} // opens the DisplayService instance ////////TICKET #82 obsolete
80  {
81  INFO (stage, "UI-Facade Interfaces activated.");
82  }
83 
84  private:
85  };
86 
87 
88 
89 }}// namespace stage::ctrl
90 #endif /*STAGE_CTRL_FACADE_H*/
A public service provided by the GUI, implementing the lumiera::Display facade interface.
Configuration handle to expose a service implementation through the Depend<SRV> front-end.
Any copy and copy construction prohibited.
Definition: nocopy.hpp:46
Per type specific configuration of instances created as service dependencies.
A context to hold and manage the implementation of all UI facade interfaces.
A public service provided by the GUI, implementing the stage::GuiNotification facade interface...
Backbone of the Lumiera GTK GUI.
Definition: ui-bus.hpp:159
Facade(UiBus &bus, UiManager &manager)
Activate all external UI facade interfaces.
Mix-Ins to allow or prohibit various degrees of copying and cloning.
Lumiera GTK UI implementation root.
Definition: guifacade.cpp:46
The Lumiera UI framework and backbone object.
Definition: ui-manager.hpp:97