Fixed wrong widget private path
authorSoyoung Kim <sy037.kim@samsung.com>
Thu, 31 Jan 2013 05:55:17 +0000 (14:55 +0900)
committerSoyoung Kim <sy037.kim@samsung.com>
Thu, 31 Jan 2013 05:58:40 +0000 (14:58 +0900)
Issue#] N/A
[Problem] if tizen.filesystem.resolve api's parameter is wgt-private, error callback function occur
[Cause] this issue is connected changing appid from pkgname.
[Solution] Fixed widget private path.
[SCMRequest] N/A

src/modules/tizen/WidgetDB/WidgetDB.cpp
src/modules/tizen/WidgetInterfaceDAO/WidgetInterfaceDAO.cpp

index 0618c65..444a859 100644 (file)
@@ -368,7 +368,8 @@ std::string WidgetDB::getWidgetPersistentStoragePath() const
     Try
     {
         WrtDB::WidgetDAOReadOnly dao(getWidgetId());
-        return WrtDB::WidgetConfig::GetWidgetPersistentStoragePath(dao.getPkgName());
+        return
+            WrtDB::WidgetConfig::GetWidgetPersistentStoragePath(dao.getTizenPkgId());
     }
     Catch(DPL::Exception)
     {
@@ -381,7 +382,8 @@ std::string WidgetDB::getWidgetTemporaryStoragePath() const
     Try
     {
         WrtDB::WidgetDAOReadOnly dao(getWidgetId());
-        return WrtDB::WidgetConfig::GetWidgetTemporaryStoragePath(dao.getPkgName());
+        return
+            WrtDB::WidgetConfig::GetWidgetTemporaryStoragePath(dao.getTizenPkgId());
     }
     Catch(DPL::Exception)
     {
index f78ab4a..cabc376 100644 (file)
@@ -327,9 +327,9 @@ std::string WidgetInterfaceDAO::databaseFileName(int widgetHandle)
     Try
     {
         WrtDB::WidgetDAOReadOnly widgetDAO(widgetHandle);
-        WrtDB::WidgetPkgName pkgname = widgetDAO.getPkgName();
+        WrtDB::TizenPkgId pkgid = widgetDAO.getTizenPkgId();
 
-        filename << GetWidgetPersistentStoragePath(pkgname)
+        filename << GetWidgetPersistentStoragePath(pkgid)
                  << "/"
                  << GetWidgetInterfaceDatabaseFile();
     }