blob: 7d2b518e0c10cac378fe651f4f65c62a786f597b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#pragma once
#include "map/framework.hpp"
#include "map/framework_light.hpp"
// Implemented in assume that delegate lifetime is shorter than Framework lifetime.
// In other words lightweight::Framework lifetime should be shorter than Framework lifetime.
class FrameworkLightDelegate : public lightweight::Framework::Delegate
{
public:
explicit FrameworkLightDelegate(Framework & framework) : m_framework(framework) {}
notifications::NotificationManager & GetNotificationManager() override
{
return m_framework.GetNotificationManager();
}
private:
Framework & m_framework;
};
|