- 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.
38 lines
773 B
C++
38 lines
773 B
C++
#ifndef COMPONENT_MANAGER_H
|
|
#define COMPONENT_MANAGER_H
|
|
|
|
#include <memory>
|
|
#include <vector>
|
|
|
|
#include "component/Component.h"
|
|
#include "component/ComponentFactory.h"
|
|
#include "data/access/LocationAccess.h"
|
|
#include "data/access/GraphAccess.h"
|
|
|
|
class GuiFactory;
|
|
class ViewLayout;
|
|
|
|
class ComponentManager
|
|
{
|
|
public:
|
|
static std::shared_ptr<ComponentManager> create(
|
|
GuiFactory* guiFactory,
|
|
ViewLayout* viewLayout,
|
|
std::shared_ptr<LocationAccess> locationAccess,
|
|
std::shared_ptr<GraphAccess> graphAccess);
|
|
|
|
~ComponentManager();
|
|
|
|
void setup();
|
|
|
|
private:
|
|
ComponentManager();
|
|
ComponentManager(const ComponentManager&);
|
|
|
|
std::shared_ptr<ComponentFactory> m_componentFactory;
|
|
|
|
std::vector<std::shared_ptr<Component> > m_components;
|
|
};
|
|
|
|
#endif // COMPONENT_MANAGER_H
|