/* SPDX-FileCopyrightText: 2009 Ben Cooksley SPDX-License-Identifier: GPL-2.0-or-later */ #pragma once #include class QString; template class QList; class PredicateItem { public: PredicateItem(Solid::Predicate item, PredicateItem *itsParent); ~PredicateItem(); PredicateItem *child(int index) const; PredicateItem *parent() const; QList &children() const; Solid::Predicate predicate() const; QString prettyName() const; void setTypeByInt(int item); void setComparisonByInt(int item); void updateChildrenStatus(); Solid::Predicate::Type itemType; Solid::DeviceInterface::Type ifaceType; QString property; QVariant value; Solid::Predicate::ComparisonOperator compOperator; private: class Private; Private *const d; }; Q_DECLARE_METATYPE(PredicateItem *)