LeechCraft 0.6.70-17609-g3dde4097dd
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
anutil.h
Go to the documentation of this file.
1/**********************************************************************
2 * LeechCraft - modular cross-platform feature rich internet client.
3 * Copyright (C) 2006-2014 Georg Rudoy
4 *
5 * Distributed under the Boost Software License, Version 1.0.
6 * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7 **********************************************************************/
8
9#pragma once
10
11#include <QStringList>
12#include "xpcconfig.h"
13
14template<typename K, typename V>
15class QMap;
16
17namespace LC::AN
18{
19 struct StringMatcher;
20}
21
22namespace LC::Util::AN
23{
29
38 UTIL_XPC_API QStringList GetKnownEventTypes (const QString& category);
39
52 UTIL_XPC_API QString GetCategoryName (const QString& category);
53
65 UTIL_XPC_API QString GetTypeName (const QString& type);
66
67 UTIL_XPC_API QVariant ToVariant (const LC::AN::StringMatcher& matcher);
69
70 UTIL_XPC_API bool Matches (const QString& string, const LC::AN::StringMatcher& matcher);
71 UTIL_XPC_API bool Matches (const QStringList& strings, const LC::AN::StringMatcher& matcher);
72}
Definition anutil.h:15
QMap< QString, QString > GetCategoryNameMap()
Returns the map from the category ID to its name.
Definition anutil.cpp:21
LC::AN::StringMatcher StringMatcherFromVariant(const QVariant &var)
Definition anutil.cpp:171
QStringList GetKnownEventTypes(const QString &category)
Returns the known events types for the given category.
Definition anutil.cpp:37
QVariant ToVariant(const LC::AN::StringMatcher &matcher)
Definition anutil.cpp:159
QString GetTypeName(const QString &type)
Returns the human-readable name of the event type.
Definition anutil.cpp:117
bool Matches(const QString &string, const LC::AN::StringMatcher &pattern)
Definition anutil.cpp:202
QString GetCategoryName(const QString &category)
Returns the human-readable name of the event category.
Definition anutil.cpp:112
#define UTIL_XPC_API
Definition xpcconfig.h:16