aboutsummaryrefslogtreecommitdiff
path: root/paludis/resolver/job.hh
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/resolver/job.hh')
-rw-r--r--paludis/resolver/job.hh17
1 files changed, 14 insertions, 3 deletions
diff --git a/paludis/resolver/job.hh b/paludis/resolver/job.hh
index 02eba91f9..58a4974ce 100644
--- a/paludis/resolver/job.hh
+++ b/paludis/resolver/job.hh
@@ -67,6 +67,8 @@ namespace paludis
virtual const std::shared_ptr<JobState> state() const PALUDIS_ATTRIBUTE((warn_unused_result)) = 0;
virtual void set_state(const std::shared_ptr<JobState> &) = 0;
+ virtual bool was_target() const PALUDIS_ATTRIBUTE((warn_unused_result)) = 0;
+
virtual const std::shared_ptr<const JobRequirements> requirements() const PALUDIS_ATTRIBUTE((warn_unused_result)) = 0;
static const std::shared_ptr<ExecuteJob> deserialise(Deserialisation &) PALUDIS_ATTRIBUTE((warn_unused_result));
@@ -83,7 +85,8 @@ namespace paludis
public:
FetchJob(
const std::shared_ptr<const JobRequirements> &,
- const PackageDepSpec &
+ const PackageDepSpec &,
+ const bool was_target
);
~FetchJob();
@@ -92,6 +95,8 @@ namespace paludis
virtual const std::shared_ptr<JobState> state() const PALUDIS_ATTRIBUTE((warn_unused_result));
virtual void set_state(const std::shared_ptr<JobState> &);
+ virtual bool was_target() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
virtual const std::shared_ptr<const JobRequirements> requirements() const PALUDIS_ATTRIBUTE((warn_unused_result));
static const std::shared_ptr<FetchJob> deserialise(Deserialisation &) PALUDIS_ATTRIBUTE((warn_unused_result));
@@ -111,7 +116,8 @@ namespace paludis
const PackageDepSpec &,
const RepositoryName &,
const DestinationType,
- const std::shared_ptr<const Sequence<PackageDepSpec> > &);
+ const std::shared_ptr<const Sequence<PackageDepSpec> > &,
+ const bool was_target);
~InstallJob();
const PackageDepSpec origin_id_spec() const PALUDIS_ATTRIBUTE((warn_unused_result));
@@ -122,6 +128,8 @@ namespace paludis
virtual const std::shared_ptr<JobState> state() const PALUDIS_ATTRIBUTE((warn_unused_result));
virtual void set_state(const std::shared_ptr<JobState> &);
+ virtual bool was_target() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
virtual const std::shared_ptr<const JobRequirements> requirements() const PALUDIS_ATTRIBUTE((warn_unused_result));
static const std::shared_ptr<InstallJob> deserialise(Deserialisation &) PALUDIS_ATTRIBUTE((warn_unused_result));
@@ -138,7 +146,8 @@ namespace paludis
public:
UninstallJob(
const std::shared_ptr<const JobRequirements> &,
- const std::shared_ptr<const Sequence<PackageDepSpec> > &
+ const std::shared_ptr<const Sequence<PackageDepSpec> > &,
+ const bool was_target
);
~UninstallJob();
@@ -147,6 +156,8 @@ namespace paludis
virtual const std::shared_ptr<JobState> state() const PALUDIS_ATTRIBUTE((warn_unused_result));
virtual void set_state(const std::shared_ptr<JobState> &);
+ virtual bool was_target() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
virtual const std::shared_ptr<const JobRequirements> requirements() const PALUDIS_ATTRIBUTE((warn_unused_result));
static const std::shared_ptr<UninstallJob> deserialise(Deserialisation &) PALUDIS_ATTRIBUTE((warn_unused_result));