public:
DirectoryDeletor();
DirectoryDeletor(std::string tempPath);
+ DirectoryDeletor(bool isPreload);
+
~DirectoryDeletor();
std::string getTempPath() const;
*
* @param widgetname name of widget
*/
- WidgetLocation(const std::string & widgetname);
+ explicit WidgetLocation(const std::string & widgetname);
/**
* @brief WidgetLocation Builds paths for widget location during
* installation
*/
WidgetLocation(const std::string & widgetname, std::string sourcePath,
WrtDB::PackagingType t = WrtDB::PKG_TYPE_NOMAL_WEB_APP,
- InstallLocationType ltype =
- INSTALL_LOCATION_TYPE_NOMAL);
+ bool isReadonly = false);
WidgetLocation(const std::string & widgetname, std::string sourcePath,
std::string dirPath,
WrtDB::PackagingType t = WrtDB::PKG_TYPE_NOMAL_WEB_APP,
- InstallLocationType ltype =
- INSTALL_LOCATION_TYPE_NOMAL);
+ bool isReadonly = false);
~WidgetLocation();
std::string getInstallationDir() const; // /opt/apps or /usr/apps
std::string getPackageInstallationDir() const; // /opt/apps/[package]
std::string getSourceDir() const; // /opt/apps/[package]/res/wgt
- std::string getBinaryDir() const; // /opt/apps/[package]/bin
+ std::string getBinaryDir() const; // /opt/apps/[package]/bin or /usr/apps/[package]/bin
+ std::string getUserBinaryDir() const; // /opt/apps/[package]/bin
std::string getExecFile() const; // /opt/apps/[package]/bin/[package]
- std::string getBackupDir() const; // /opt/apps/[package]/backup
- std::string getBackupSourceDir() const; // /opt/apps/[pkg]/backup/res/wgt
- std::string getBackupBinaryDir() const; // /opt/apps/[pkg]/backup/bin
- std::string getBackupExecFile() const; // /opt/apps/[pkg]/backup/bin/[pkg]
+ std::string getBackupDir() const; // /opt/apps/[package].backup
+ std::string getBackupSourceDir() const; // /opt/apps/[pkg].backup/res/wgt
+ std::string getBackupBinaryDir() const; // /opt/apps/[pkg].backup/bin
+ std::string getBackupExecFile() const; // /opt/apps/[pkg].backup/bin/[pkg]
+ std::string getBackupPrivateDir() const; // /opt/apps/[pkg].backup/data
std::string getUserDataRootDir() const; // /opt/usr/apps/[package]
std::string getPrivateStorageDir() const; // /opt/usr/apps/[package]/data
* @param icon path of application icon
*/
void setIconTargetFilenameForLocale(const std::string &icon);
- /**
- * @brief getIconTargetFilename gets icon path suffix for locale
- * @param languageTag language tag
- * @return value of suffix of path
- */
- DPL::String getIconTargetFilename(const DPL::String& languageTag) const;
+
/**
* @brief getIconTargetFilename gets icon full path
* @param languageTag language tag
void registerAppid(const std::string & appid);
private:
+ std::string m_pkgid; //id of package
std::string m_widgetSource; // Source widget zip
// file/widget url
std::string m_appid; //id of app
- std::string m_pkgid; //id of package
std::string m_iconPath; //installed icon path
WrtDB::PackagingType m_type;
std::shared_ptr<DirectoryDeletor> m_temp; //directory