LeechCraft 0.6.70-18808-g3467692359
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
LC::Util::AN Namespace Reference

Functions

QMap< QString, QString > GetCategoryNameMap ()
 Returns the map from the category ID to its name.
QStringList GetKnownEventTypes (const QString &category)
 Returns the known events types for the given category.
QString GetCategoryName (const QString &category)
 Returns the human-readable name of the event category.
QString GetTypeName (const QString &type)
 Returns the human-readable name of the event type.
QVariant ToVariant (const LC::AN::StringMatcher &matcher)
LC::AN::StringMatcher StringMatcherFromVariant (const QVariant &var)
bool Matches (const QString &string, const LC::AN::StringMatcher &pattern)
bool Matches (const QStringList &strings, const LC::AN::StringMatcher &pattern)

Function Documentation

◆ GetCategoryName()

UTIL_XPC_API QString LC::Util::AN::GetCategoryName ( const QString & category)

Returns the human-readable name of the event category.

If the category is not known, this function just returns the category string.

Parameters
[in]categoryThe ID of the event category.
Returns
The human-readable name of the category, or category if it is not known.
See also
GetANTypeName()
GetCategoryNameMap()

Definition at line 112 of file anutil.cpp.

References GetCategoryName(), and GetCategoryNameMap().

Referenced by GetCategoryName().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetCategoryNameMap()

UTIL_XPC_API QMap< QString, QString > LC::Util::AN::GetCategoryNameMap ( )

Returns the map from the category ID to its name.

Returns
The map from the category ID to its name.

Definition at line 21 of file anutil.cpp.

References GetCategoryNameMap().

Referenced by GetCategoryName(), and GetCategoryNameMap().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetKnownEventTypes()

UTIL_XPC_API QStringList LC::Util::AN::GetKnownEventTypes ( const QString & category)

Returns the known events types for the given category.

This function returns the list of known standard event types for the category, or an empty list if the category is not known.

Returns
The list of events for the category.

Definition at line 37 of file anutil.cpp.

References GetKnownEventTypes().

Referenced by GetKnownEventTypes().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetTypeName()

UTIL_XPC_API QString LC::Util::AN::GetTypeName ( const QString & type)

Returns the human-readable name of the event type.

If the type is not known, this function just returns the type string.

Parameters
[in]typeThe ID of the event type.
Returns
The human-readable name of the type, or type if it is not known.
See also
GetANCategoryName()

Definition at line 117 of file anutil.cpp.

References GetTypeName().

Referenced by GetTypeName().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Matches() [1/2]

UTIL_XPC_API bool LC::Util::AN::Matches ( const QString & string,
const LC::AN::StringMatcher & pattern )

Definition at line 202 of file anutil.cpp.

References Matches().

Referenced by Matches(), and Matches().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Matches() [2/2]

UTIL_XPC_API bool LC::Util::AN::Matches ( const QStringList & strings,
const LC::AN::StringMatcher & pattern )

Definition at line 207 of file anutil.cpp.

References Matches().

Here is the call graph for this function:

◆ StringMatcherFromVariant()

UTIL_XPC_API LC::AN::StringMatcher LC::Util::AN::StringMatcherFromVariant ( const QVariant & var)

Definition at line 171 of file anutil.cpp.

References StringMatcherFromVariant().

Referenced by StringMatcherFromVariant().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ToVariant()

UTIL_XPC_API QVariant LC::Util::AN::ToVariant ( const LC::AN::StringMatcher & matcher)

Definition at line 159 of file anutil.cpp.

References ToVariant(), and LC::Util::Visit().

Referenced by ToVariant().

Here is the call graph for this function:
Here is the caller graph for this function: