* @brief
*/
-#ifndef WRT_PLUGINS_WRT_CAMERA_MANAGER_H_
-#define WRT_PLUGINS_WRT_CAMERA_MANAGER_H_
+#ifndef WRT_PLUGINS_WRT_ACCESS_H_
+#define WRT_PLUGINS_WRT_ACCESS_H_
-#include <wrt_plugin_export.h>
-#include "IWrtCameraManager.h"
+#include <dpl/singleton.h>
+#include <Commons/TypesDeclaration.h>
namespace WrtDeviceApis {
namespace Commons {
-class WrtCameraManager : public IWrtCameraManager
+class WrtAccess
{
-
public:
- WrtCameraManager(int widgetId, const engine_interface_t* interface);
-
- virtual WrtCamerasPtr getCameras();
+ void initialize(int widgetId);
+ void deinitialize(int widgetId);
+ int getWidgetId() const;
+ bool checkAccessControl(const AceFunction &aceFunction) const;
private:
- bool initialize();
+ WrtAccess();
+ virtual ~WrtAccess();
-private:
+ bool m_initialized;
int m_widgetId;
- const engine_interface_t* m_wrt;
-
- WrtCamerasPtr m_cameras;
+ friend class DPL::Singleton<WrtAccess>;
};
+typedef DPL::Singleton<WrtAccess> WrtAccessSingleton;
+
}
} // WrtDeviceApisCommon
-#endif
-
+#endif //WRT_PLUGINS_WRT_ACCESS_H_