logic: code controller communication
- Replaced CodeAccess with LocationAccess. - Implemented basic functionality for CodeController. - Added messaging to the project. - Added QtThreadedFunctor to enable our Messaging thread to invoke calls on the QtThread. - Added GraphController. fortune cookie message = Good news from someone dear is coming soon.
This commit is contained in:
@@ -1,21 +1,18 @@
|
||||
#include "component/Component.h"
|
||||
|
||||
#include "component/view/View.h"
|
||||
#include "component/controller/Controller.h"
|
||||
|
||||
Component::Component(std::shared_ptr<View> view, std::shared_ptr<Controller> controller)
|
||||
: m_controller(controller)
|
||||
, m_view(view)
|
||||
{
|
||||
m_controller->setComponent(this);
|
||||
m_view->setComponent(this);
|
||||
}
|
||||
|
||||
Component::~Component()
|
||||
{
|
||||
}
|
||||
|
||||
Controller* Component::getController() const
|
||||
{
|
||||
return m_controller.get();
|
||||
}
|
||||
|
||||
View* Component::getView() const
|
||||
{
|
||||
return m_view.get();
|
||||
m_controller->setComponent(NULL);
|
||||
m_view->setComponent(NULL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user