commit 8b0478d2699872ba3be4c2c6946376a3931ab748
parent 3edc5647704bece876cdb51d35165254f354ef40
Author: cfillion <cfillion@users.noreply.github.com>
Date: Tue, 19 Jan 2016 23:19:22 -0500
refactoring: fix encapsulation issues
Diffstat:
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/src/transaction.hpp b/src/transaction.hpp
@@ -54,7 +54,6 @@ public:
void synchronize(const Remote &);
void uninstall(const Remote &);
- void install();
void cancel();
bool isCancelled() const { return m_isCancelled; }
@@ -65,17 +64,15 @@ public:
const std::set<Path> &removals() const { return m_removals; }
const ErrorList &errors() const { return m_errors; }
-private:
- friend Task;
- friend InstallTask;
- friend RemoveTask;
+ bool saveFile(Download *, const Path &);
+ void addError(const std::string &msg, const std::string &title);
+ Path prefixPath(const Path &) const;
+private:
+ void install();
void finish();
void upgradeAll(Download *);
- bool saveFile(Download *, const Path &);
- void addError(const std::string &msg, const std::string &title);
- Path prefixPath(const Path &) const;
bool allFilesExists(const std::set<Path> &) const;
void registerFiles(const std::set<Path> &);
void addTask(Task *);