From 20fb95d0a77da2a28e30648bd91e3fa29ce5bc6b Mon Sep 17 00:00:00 2001 From: that Date: Sat, 12 Sep 2015 11:27:47 +0200 Subject: gui: extract methods for condition list handling This is a preparation for list item conditions. Change-Id: Iec731d1986a53b0362c534adf504dfe8db87d3f0 --- gui/objects.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gui/objects.hpp') diff --git a/gui/objects.hpp b/gui/objects.hpp index 624db07f9..99bf0dbfa 100644 --- a/gui/objects.hpp +++ b/gui/objects.hpp @@ -151,8 +151,10 @@ protected: std::vector mConditions; protected: - bool isMounted(std::string vol); - bool isConditionTrue(Condition* condition); + static void LoadConditions(xml_node<>* node, std::vector& conditions); + static bool isMounted(std::string vol); + static bool isConditionTrue(Condition* condition); + static bool UpdateConditions(std::vector& conditions, const std::string& varName); bool mConditionsResult; }; -- cgit v1.2.3