[Release] wrt-installer_0.1.54
[framework/web/wrt-installer.git] / src / misc / widget_location.cpp
index adfbd44..a2905aa 100644 (file)
@@ -240,3 +240,29 @@ void WidgetLocation::registerAppid(const std::string & appid)
 {
     m_appid = appid;
 }
+
+std::string WidgetLocation::getSharedRootDir() const
+{
+    /* TODO : add wrt-commons*/
+    return getUserDataRootDir() + "/shared";
+}
+
+std::string WidgetLocation::getSharedResourceDir() const
+{
+    return getSharedRootDir() + "/res";
+}
+
+std::string WidgetLocation::getSharedDataDir() const
+{
+    return getSharedRootDir() + "/data";
+}
+
+std::string WidgetLocation::getSharedTrustedDir() const
+{
+    return getSharedRootDir() + "/trusted";
+}
+
+std::string WidgetLocation::getBackupSharedDir() const
+{
+    return getBackupDir() + "/shared";
+}