add two placeholder functions for now

...soon to be replaced by the actual stuff, but right now
I am only concerned with getting all the boilerplate straight
This commit is contained in:
Fischlurch 2016-12-12 03:16:29 +01:00
parent 4975712b5e
commit c144d15e65
4 changed files with 16 additions and 18 deletions

View file

@ -67,13 +67,11 @@ namespace control {
public: public:
static lumiera::facade::Accessor<SessionCommand> facade; static lumiera::facade::Accessor<SessionCommand> facade;
/** push a user visible notification text */ /** @todo dummy placeholder, actual operation to be defined soon (12/16) */
virtual void displayInfo (string const& text) =0; virtual void bla_TODO (string const& text) =0;
/** causes the GUI to shut down unconditionally /** @todo dummy placeholder, actual operation to be defined soon (12/16) */
* @param cause user visible explanation of the virtual void blubb_TODO (string const& cause) =0;
* reason causing this shutdown */
virtual void triggerGuiShutdown (string const& cause) =0;
protected: protected:
@ -92,8 +90,8 @@ extern "C" {
#include "common/interface.h" #include "common/interface.h"
LUMIERA_INTERFACE_DECLARE (lumieraorg_SessionCommand, 0, LUMIERA_INTERFACE_DECLARE (lumieraorg_SessionCommand, 0,
LUMIERA_INTERFACE_SLOT (void, displayInfo, (const char*)), LUMIERA_INTERFACE_SLOT (void, bla_TODO, (const char*)),
LUMIERA_INTERFACE_SLOT (void, triggerGuiShutdown, (const char*)), LUMIERA_INTERFACE_SLOT (void, blubb_TODO, (const char*)),
); );

View file

@ -65,8 +65,8 @@ namespace facade {
{ {
//----Proxy-Implementation-of-SessionCommand-------- //----Proxy-Implementation-of-SessionCommand--------
void displayInfo (string const& text) override { _i_.displayInfo (cStr(text)); } void bla_TODO (string const& text) override { _i_.bla_TODO (cStr(text)); }
void triggerGuiShutdown (string const& cause) override { _i_.triggerGuiShutdown (cStr(cause)); } void blubb_TODO (string const& cause) override { _i_.blubb_TODO (cStr(cause)); }
public: public:

View file

@ -48,7 +48,7 @@ namespace control {
void void
SessionCommandService::displayInfo (string const& text) SessionCommandService::bla_TODO (string const& text)
{ {
INFO (gui, "@Session: display '%s' as notification message.", cStr(text)); INFO (gui, "@Session: display '%s' as notification message.", cStr(text));
UNIMPLEMENTED ("do bla"); ////////////////////////TODO actually do something UNIMPLEMENTED ("do bla"); ////////////////////////TODO actually do something
@ -56,7 +56,7 @@ namespace control {
void void
SessionCommandService::triggerGuiShutdown (string const& cause) SessionCommandService::blubb_TODO (string const& cause)
{ {
NOTICE (gui, "@Session: shutdown triggered with explanation '%s'....", cStr(cause)); NOTICE (gui, "@Session: shutdown triggered with explanation '%s'....", cStr(cause));
UNIMPLEMENTED ("do blubb"); ////////////////////////TODO actually do something UNIMPLEMENTED ("do blubb"); ////////////////////////TODO actually do something
@ -150,20 +150,20 @@ namespace control {
, LUMIERA_INTERFACE_REF(lumieraorg_interfacedescriptor, 0, lumieraorg_SessionCommandFacade_descriptor) , LUMIERA_INTERFACE_REF(lumieraorg_interfacedescriptor, 0, lumieraorg_SessionCommandFacade_descriptor)
, NULL /* on open */ , NULL /* on open */
, NULL /* on close */ , NULL /* on close */
, LUMIERA_INTERFACE_INLINE (displayInfo, , LUMIERA_INTERFACE_INLINE (bla_TODO,
void, (const char* text), void, (const char* text),
{ {
if (!_instance) lumiera_error_set(LUMIERA_ERROR_FACADE_LIFECYCLE, text); if (!_instance) lumiera_error_set(LUMIERA_ERROR_FACADE_LIFECYCLE, text);
else else
_instance->displayInfo(text); _instance->bla_TODO(text);
} }
) )
, LUMIERA_INTERFACE_INLINE (triggerGuiShutdown, , LUMIERA_INTERFACE_INLINE (blubb_TODO,
void, (const char* cause), void, (const char* cause),
{ {
if (!_instance) lumiera_error_set(LUMIERA_ERROR_FACADE_LIFECYCLE, cause); if (!_instance) lumiera_error_set(LUMIERA_ERROR_FACADE_LIFECYCLE, cause);
else else
_instance->triggerGuiShutdown(cause); _instance->blubb_TODO(cause);
} }
) )
); );

View file

@ -69,8 +69,8 @@ namespace control {
/* === Implementation of the Facade Interface === */ /* === Implementation of the Facade Interface === */
void displayInfo (string const& text); void bla_TODO (string const& text) override;
void triggerGuiShutdown (string const& cause); void blubb_TODO (string const& cause) override;
/* === Interface Lifecycle === */ /* === Interface Lifecycle === */