23 #ifndef _TelepathyQt_and_filter_h_HEADER_GUARD_ 24 #define _TelepathyQt_and_filter_h_HEADER_GUARD_ 26 #ifndef IN_TP_QT_HEADER 27 #error IN_TP_QT_HEADER 30 #include <TelepathyQt/Filter> 31 #include <TelepathyQt/Types> 51 if (!filter || !filter->isValid()) {
65 if (!filter->matches(t)) {
72 inline QList<SharedPtr<const Filter<T> > >
filters()
const {
return mFilters; }
78 QList<SharedPtr<const Filter<T> > > mFilters;
QList< SharedPtr< const Filter< T > > > filters() const
Definition: and-filter.h:72
static SharedPtr< AndFilter< T > > create(const QList< SharedPtr< const Filter< T > > > &filters=QList< SharedPtr< const Filter< T > > >())
Definition: and-filter.h:40
virtual ~AndFilter()
Definition: and-filter.h:46
virtual bool isValid() const
Definition: and-filter.h:48
Definition: abstract-adaptor.cpp:31
The Filter class provides a base class to be used by specialized filters such as GenericCapabilityFil...
Definition: filter.h:37
The AndFilter class provides a generic filter object to be used in conjunction of other filters...
Definition: and-filter.h:37
virtual bool matches(const SharedPtr< T > &t) const
Definition: and-filter.h:58
The SharedPtr class is a pointer to an explicitly shared object.
Definition: shared-ptr.h:39