}
/**
- * widgets share directory path
- */
-inline const char* GetWidgetSharePath()
-{
- return "share";
-}
-
-/**
* widgets desktop files path
*/
inline const char* GetUserWidgetDesktopPath()
{
return "/opt/share/widget/temp_info";
}
+
+inline const char* GetWidgetSharedPath()
+{
+ return "/shared";
+}
+
+inline const char* GetWidgetDataPath()
+{
+ return "/data";
+}
+
+inline const char* GetWidgetTrustedPath()
+{
+ return "/trusted";
+}
+
+inline const char* GetWidgetResPath()
+{
+ return "/res";
+}
} // namespace GlobalConfig
} // namespace WrtDB
.Concat(".desktop")
.GetFullPath();
}
+
+inline std::string GetWidgetSharedStoragePath(DPL::String tzPkgId)
+{
+ return PathBuilder()
+ .Append(GlobalConfig::GetWidgetUserDataPath())
+ .Append(DPL::ToUTF8String(tzPkgId))
+ .Concat(GlobalConfig::GetWidgetSharedPath())
+ .GetFullPath();
+}
+
+inline std::string GetWidgetSharedDataStoragePath(DPL::String tzPkgId)
+{
+ return PathBuilder(GetWidgetSharedStoragePath(tzPkgId))
+ .Concat(GlobalConfig::GetWidgetDataPath())
+ .GetFullPath();
+}
+
+inline std::string GetWidgetSharedTrustedStoragePath(DPL::String tzPkgId)
+{
+ return PathBuilder(GetWidgetSharedStoragePath(tzPkgId))
+ .Concat(GlobalConfig::GetWidgetTrustedPath())
+ .GetFullPath();
+}
+
+inline std::string GetWidgetSharedResStoragePath(DPL::String tzPkgId)
+{
+ return PathBuilder(GetWidgetSharedStoragePath(tzPkgId))
+ .Concat(GlobalConfig::GetWidgetResPath())
+ .GetFullPath();
+}
} // namespace WidgetConfig
} // namespace WrtDB