upload tizen1.0 source
[framework/web/wrt-plugins-common.git] / src / modules / tizen / Widget / Widget.h
index 2984fd0..eb2ca30 100644 (file)
@@ -27,7 +27,7 @@
 
 #include <string>
 
-#include <Commons/WrtWrapper/IWrtWrapper.h>
+#include <Commons/WrtAccess/WrtAccess.h>
 
 #include <Widget/IWidget.h>
 #include <WidgetDB/IWidgetDB.h>
@@ -40,7 +40,8 @@ class Widget : public Api::IWidget
 {
   public:
 
-    explicit Widget(Commons::IWrtWrapperPtr wrtWrapper);
+    explicit Widget();
+    ~Widget();
 
     virtual std::string getAuthor() const;
     virtual std::string getAuthorEmail() const;
@@ -55,8 +56,6 @@ class Widget : public Api::IWidget
 
   protected:
 
-    Commons::IWrtWrapperPtr m_wrtWrapper;
-
     mutable StringProperty m_author;
     mutable StringProperty m_authorEmail;
     mutable StringProperty m_authorHref;
@@ -71,8 +70,9 @@ class Widget : public Api::IWidget
   private:
 
     std::string getProperty(WidgetDB::Api::ConfigAttribute) const;
+    void checkWidgetId() const;
 
-    void checkWrapperPointer() const;
+    int m_widgetId;
 };
 
 }