X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FCommons%2FWrtAccess%2FWrtAccess.h;fp=src%2FCommons%2FWrtWrapper%2FWrtCameraManager.h;h=0c2137414df70c622e723ee45ec06bca4070a19c;hb=da854ef348cf918993a95adeeffa616db2dca6f7;hp=be218b269b98e7411e8e0b5a772d9c5f10a43697;hpb=9c61c076f198660f9d9683fc1f091cbc95b3286b;p=profile%2Fivi%2Fwrt-plugins-common.git diff --git a/src/Commons/WrtWrapper/WrtCameraManager.h b/src/Commons/WrtAccess/WrtAccess.h similarity index 63% rename from src/Commons/WrtWrapper/WrtCameraManager.h rename to src/Commons/WrtAccess/WrtAccess.h index be218b2..0c21374 100644 --- a/src/Commons/WrtWrapper/WrtCameraManager.h +++ b/src/Commons/WrtAccess/WrtAccess.h @@ -19,36 +19,36 @@ * @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 -#include "IWrtCameraManager.h" +#include +#include 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; }; +typedef DPL::Singleton WrtAccessSingleton; + } } // WrtDeviceApisCommon -#endif - +#endif //WRT_PLUGINS_WRT_ACCESS_H_