Child class's logic of extracting manifest can be diffrent
and add a clear function for result of extracting function
Change-Id: Ic15edf83008a7b8f7f4e6021a51b1d53e3e40ac4
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
return tmp_path;
}
+bool AppQueryInterface::ClearTemporaryFile(
+ const boost::filesystem::path& path) const {
+ return RemoveAll(path);
+}
+
} // namespace common_installer
std::string GetPkgId(const std::string& arg) const;
protected:
- boost::filesystem::path ExtractManifest(const std::string& from) const;
+ virtual boost::filesystem::path ExtractManifest(
+ const std::string& from) const;
+ virtual bool ClearTemporaryFile(const boost::filesystem::path& path) const;
private:
virtual std::string GetPkgIdFromPath(const std::string& path) const = 0;