LeechCraft  0.6.70-18450-gabe19ee3b0
Modular cross-platform feature rich live environment.
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 
14 template<typename K, typename V>
15 class QMap;
16 
17 namespace LC::AN
18 {
19  struct StringMatcher;
20 }
21 
22 namespace 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 }
QVariant ToVariant(const LC::AN::StringMatcher &matcher)
Definition: anutil.cpp:159
QStringList GetKnownEventTypes(const QString &category)
Returns the known events types for the given category.
Definition: anutil.cpp:37
QString GetCategoryName(const QString &category)
Returns the human-readable name of the event category.
Definition: anutil.cpp:112
QString GetTypeName(const QString &type)
Returns the human-readable name of the event type.
Definition: anutil.cpp:117
QMap< QString, QString > GetCategoryNameMap()
Returns the map from the category ID to its name.
Definition: anutil.cpp:21
bool Matches(const QString &string, const LC::AN::StringMatcher &pattern)
Definition: anutil.cpp:202
LC::AN::StringMatcher StringMatcherFromVariant(const QVariant &var)
Definition: anutil.cpp:171
Definition: anutil.h:15
#define UTIL_XPC_API
Definition: xpcconfig.h:16