LeechCraft  0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
LC::Util::AN Namespace Reference

Functions

QMap< QString, QString > GetCategoryNameMap ()
 Returns the map from the category ID to its name. More...
 
QStringList GetKnownEventTypes (const QString &category)
 Returns the known events types for the given category. More...
 
QString GetCategoryName (const QString &category)
 Returns the human-readable name of the event category. More...
 
QString GetTypeName (const QString &type)
 Returns the human-readable name of the event type. More...
 

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 116 of file anutil.cpp.

References LC::AN::TypeIMAttention, and LC::AN::TypeIMIncFile.

◆ 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 25 of file anutil.cpp.

References LC::AN::CatDownloads.

◆ 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 41 of file anutil.cpp.

References LC::AN::TypeIMAttention, LC::AN::TypeIMEventActivityChange, LC::AN::TypeIMEventLocationChange, LC::AN::TypeIMEventMoodChange, LC::AN::TypeIMEventTuneChange, LC::AN::TypeIMIncFile, LC::AN::TypeIMIncMsg, LC::AN::TypeIMMUCHighlight, LC::AN::TypeIMMUCInvite, LC::AN::TypeIMMUCMsg, LC::AN::TypeIMStatusChange, LC::AN::TypeIMSubscrGrant, LC::AN::TypeIMSubscrRequest, LC::AN::TypeIMSubscrRevoke, LC::AN::TypeIMSubscrSub, and LC::AN::TypeIMSubscrUnsub.

◆ 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 121 of file anutil.cpp.

References LC::AN::TypeIMIncMsg.