6 #include <QDBusMetaType>
20 void CLogCategoryList::appendCategoriesFromMetaObject(
const QMetaObject &metaObject,
const QMetaObject &super)
22 for (
auto *meta = &metaObject; meta != &super; meta = meta->superClass()) {
push_back(meta->className()); }
41 [](
const QString &str) { return CLogCategory { str }; }),
47 return fromQStringList(
string.split(
"|", Qt::SkipEmptyParts));
50 bool CLogCategoryList::anyStartWith(
const QString &prefix)
const
55 bool CLogCategoryList::anyEndWith(
const QString &suffix)
const
60 void CLogCategoryList::registerMetadata()
62 qRegisterMetaType<CLogCategoryList>();
63 qDBusRegisterMetaType<CLogCategoryList>();
64 registerMetaValueType<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.
A sequence of log categories.
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.
QStringList toQStringList() const
Convert each of the categories to a QString and return the result as a QStringList.
auto transform(F function) const
Return a new container generated by applying some transformation function to all elements of this one...
void push_back(const CLogCategory &value)
Appends an element at 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.
#define SWIFT_DEFINE_SEQUENCE_MIXINS(Namespace, T, List)
Explicit template definition of mixins for a CSequence subclass.