struct AppInstallHelper {
AppInstallHelper(const std::string &name)
- : m_name(name)
+ : m_appName(name), m_pkgName(name)
+ {}
+
+ AppInstallHelper(const std::string &appName, const std::string &pkgName)
+ : m_appName(appName), m_pkgName(pkgName)
{}
std::string getInstallDir() {
return getPrivateDir() + "shareme" + std::to_string(i);
}
std::string getAppId() {
- return m_name + "_app_id";
+ return m_appName + "_app_id";
}
std::string getPkgId() {
- return m_name + "_pkg_id";
+ return m_pkgName + "_pkg_id";
}
void createInstallDir() {
}
protected:
- std::string m_name;
+ std::string m_appName;
+ std::string m_pkgName;
std::vector<std::string> m_dirs;
std::vector<std::string> m_files;
};