aboutsummaryrefslogtreecommitdiff
path: root/paludis/elike_choices.hh
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-30 10:08:18 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-30 10:11:20 +0100
commite24df2f9e772fb1aac4e02bd1dd90e333131cb27 (patch)
treefa2474dffbd4f03560073ecf9455ea1668ba4181 /paludis/elike_choices.hh
parent5bbf8ada48ba06506312eb417d7ec219cfdffcaa (diff)
downloadpaludis-e24df2f9e772fb1aac4e02bd1dd90e333131cb27.tar.gz
paludis-e24df2f9e772fb1aac4e02bd1dd90e333131cb27.tar.xz
Make UnpackagedID strip, split, preserve_work values params
Diffstat (limited to 'paludis/elike_choices.hh')
-rw-r--r--paludis/elike_choices.hh12
1 files changed, 8 insertions, 4 deletions
diff --git a/paludis/elike_choices.hh b/paludis/elike_choices.hh
index 6b551eb..832071a 100644
--- a/paludis/elike_choices.hh
+++ b/paludis/elike_choices.hh
@@ -22,6 +22,7 @@
#include <paludis/elike_choices-fwd.hh>
#include <paludis/util/attributes.hh>
+#include <paludis/util/tribool-fwd.hh>
#include <paludis/choice.hh>
#include <paludis/environment-fwd.hh>
#include <paludis/package_id-fwd.hh>
@@ -33,10 +34,11 @@ namespace paludis
{
private:
const bool _enabled;
+ const bool _forced;
public:
ELikeStripChoiceValue(const std::shared_ptr<const PackageID> &,
- const Environment * const env, const std::shared_ptr<const Choice> &);
+ const Environment * const env, const std::shared_ptr<const Choice> &, const Tribool forced_value);
virtual const UnprefixedChoiceName unprefixed_name() const PALUDIS_ATTRIBUTE((warn_unused_result));
virtual const ChoiceNameWithPrefix name_with_prefix() const PALUDIS_ATTRIBUTE((warn_unused_result));
@@ -56,10 +58,11 @@ namespace paludis
{
private:
const bool _enabled;
+ const bool _forced;
public:
ELikeSplitChoiceValue(const std::shared_ptr<const PackageID> &,
- const Environment * const env, const std::shared_ptr<const Choice> &);
+ const Environment * const env, const std::shared_ptr<const Choice> &, const Tribool forced_value);
virtual const UnprefixedChoiceName unprefixed_name() const PALUDIS_ATTRIBUTE((warn_unused_result));
virtual const ChoiceNameWithPrefix name_with_prefix() const PALUDIS_ATTRIBUTE((warn_unused_result));
@@ -195,16 +198,17 @@ namespace paludis
{
private:
const bool _enabled;
+ const bool _forced;
public:
/**
- * \since 0.48.1
+ * \since 0.51.0
*/
ELikePreserveWorkChoiceValue(
const std::shared_ptr<const PackageID> &,
const Environment * const env,
const std::shared_ptr<const Choice> &,
- const bool enabled_by_default);
+ const Tribool forced_value);
virtual const UnprefixedChoiceName unprefixed_name() const PALUDIS_ATTRIBUTE((warn_unused_result));
virtual const ChoiceNameWithPrefix name_with_prefix() const PALUDIS_ATTRIBUTE((warn_unused_result));