SQL_CONNECTION_EXCEPTION_HANDLER_END("Failed to get handle list")
}
+WidgetPkgNameList WidgetDAOReadOnly::getPkgnameList()
+{
+ LogDebug("Getting Pkgname List");
+ SQL_CONNECTION_EXCEPTION_HANDLER_BEGIN
+ {
+ using namespace DPL::DB::ORM;
+ using namespace DPL::DB::ORM::wrt;
+ WRT_DB_SELECT(select, WidgetInfo, &WrtDatabase::interface())
+ return select->GetValueList<WidgetInfo::pkgname>();
+ }
+ SQL_CONNECTION_EXCEPTION_HANDLER_END("Failed to get Pkgname list")
+}
+
DbWidgetDAOReadOnlyList WidgetDAOReadOnly::getWidgetList()
{
LogDebug("Getting DbWidget List");
*/
typedef std::list<DbWidgetHandle> DbWidgetHandleList;
+typedef std::list<DPL::Optional<WidgetPkgName> > WidgetPkgNameList; //TODO: this cannot be null -> appropriate changes in db schema needed
+
class WidgetDAOReadOnly; //forward declaration
typedef std::shared_ptr<WidgetDAOReadOnly> WidgetDAOReadOnlyPtr;
/**
static DbWidgetHandleList getHandleList();
/**
+ * This method returns list of pkgname of installed packages
+ * @return list of pkgname of installed packages
+ */
+ static WidgetPkgNameList getPkgnameList();
+
+ /**
* This method returns a list of all the installed widgets.
*
* @return list of installed widgets.