2 * Copyright 2015, Axel Dörfler, axeld@pinc-software.de.
3 * Distributed under the terms of the MIT License.
15 class ConditionContext
{
17 virtual bool IsSafeMode() const = 0;
18 virtual bool BootVolumeIsReadOnly() const = 0;
27 virtual bool Test(ConditionContext
& context
) const = 0;
29 /*! Determines whether or not the result of this condition is fixed,
30 and will not change anymore.
32 virtual bool IsConstant(ConditionContext
& context
) const;
34 virtual BString
ToString() const = 0;
40 static Condition
* FromMessage(const BMessage
& message
);
41 static Condition
* AddNotSafeMode(Condition
* condition
);
45 #endif // CONDITIONS_H