#include <string>
-#include <Commons/WrtWrapper/IWrtWrapper.h>
+#include <Commons/WrtAccess/WrtAccess.h>
#include <Widget/IWidget.h>
#include <WidgetDB/IWidgetDB.h>
{
public:
- explicit Widget(Commons::IWrtWrapperPtr wrtWrapper);
+ explicit Widget();
+ ~Widget();
virtual std::string getAuthor() const;
virtual std::string getAuthorEmail() const;
protected:
- Commons::IWrtWrapperPtr m_wrtWrapper;
-
mutable StringProperty m_author;
mutable StringProperty m_authorEmail;
mutable StringProperty m_authorHref;
private:
std::string getProperty(WidgetDB::Api::ConfigAttribute) const;
+ void checkWidgetId() const;
- void checkWrapperPointer() const;
+ int m_widgetId;
};
}