6#include <QDBusMetaType>
20 void CLogCategoryList::appendCategoriesFromMetaObject(
const QMetaObject &metaObject,
const QMetaObject &super)
22 for (
auto *meta = &metaObject; meta != &super; meta = meta->
superClass())
44 [](
const QString &str) { return CLogCategory { str }; }),
65 qRegisterMetaType<CLogCategoryList>();
66 qDBusRegisterMetaType<CLogCategoryList>();
A log category is an arbitrary string tag which can be attached to log messages.
bool startsWith(const QString &prefix) const
Returns true if the category string starts with the given prefix.
bool endsWith(const QString &suffix) const
Returns true if the category string ends with the given suffix.
bool anyEndWith(const QString &suffix) const
Returns true if any of the categories in the list end with the given suffix.
static CLogCategoryList fromQString(const QString &string)
Convert a string, such as that returned by toQString(), into a CLogCategoryList.
static void registerMetadata()
Register metadata.
CLogCategoryList()=default
Empty constructor.
QString toQString(bool i18n=false) const
Cast as QString.
QString convertToQString(bool i18n=false) const
Cast as QString.
static CLogCategoryList fromQStringList(const QStringList &stringList)
Convert a string list, such as that returned by toQStringList(), into a CLogCategoryList.
bool anyStartWith(const QString &prefix) const
Returns true if any of the categories in the list start with the given prefix.
QStringList toQStringList() const
Convert each of the categories to a QString and return the result as a QStringList.
bool containsBy(Predicate p) const
auto transform(F function) const
void push_back(const CLogCategory &value)
iterator end()
Returns iterator one past the end of the sequence.
QString toQString(bool i18n=false) const
Cast as QString.
auto makeTransformIterator(I iterator, F function) -> TransformIterator< I, F >
Construct a TransformIterator of the appropriate type from deduced template function arguments.
Free functions in swift::misc.
auto makeRange(I begin, I2 end) -> CRange< I >
Returns a CRange constructed from begin and end iterators of deduced types.
void registerMetaValueType()
This registers the value type T with the swift::misc:: meta type system, making it available for use ...
QList< T >::iterator begin()
QString join(QChar separator) const const
#define SWIFT_DEFINE_SEQUENCE_MIXINS(Namespace, T, List)
Explicit template definition of mixins for a CSequence subclass.