KIconThemes 5.109.0
Public Types | Signals | Public Slots | Public Member Functions | Static Public Member Functions | Related Symbols | List of all members
KIconLoader

Iconloader for KDE. More...

#include <KIconLoader>

Public Types

enum  Context {
  Any , Action , Application , Device ,
  MimeType , Animation , Category , Emblem ,
  Emote , International , Place , StatusIcon
}
 Defines the context of the icon. More...
 
enum  Group {
  NoGroup = -1 , Desktop = 0 , FirstGroup = 0 , Toolbar ,
  MainToolbar , Small , Panel_DEPRECATED_DO_NOT_USE , Dialog ,
  LastGroup , User
}
 The group of the icon. More...
 
enum  MatchType { MatchExact , MatchBest }
 The type of a match. More...
 
enum  States {
  DefaultState , ActiveState , DisabledState , SelectedState ,
  LastState
}
 Defines the possible states of an icon. More...
 
enum  StdSizes {
  SizeSmall = 16 , SizeSmallMedium = 22 , SizeMedium = 32 , SizeLarge = 48 ,
  SizeHuge = 64 , SizeEnormous = 128
}
 These are the standard sizes for icons. More...
 
enum  Type { Fixed , Scalable , Threshold }
 The type of the icon. More...
 

Signals

void iconChanged (int group)
 Emitted when the system icon theme changes.
 
void iconLoaderSettingsChanged ()
 Emitted by newIconLoader once the new settings have been loaded.
 

Public Slots

static void emitChange (Group group)
 Emits an iconChanged() signal on all the KIconLoader instances in the system indicating that a system's icon group has changed in some way.
 
void newIconLoader ()
 Re-initialize the global icon loader.
 

Public Member Functions

 KIconLoader (const QString &appname=QString(), const QStringList &extraSearchPaths=QStringList(), QObject *parent=nullptr)
 Constructs an iconloader.
 
 ~KIconLoader () override
 Cleanup.
 
void addAppDir (const QString &appname, const QString &themeBaseDir=QString())
 Adds appname to the list of application specific directories with themeBaseDir as its base directory.
 
int currentSize (KIconLoader::Group group) const
 Returns the current size of the icon group.
 
QPalette customPalette () const
 The colors that will be used for the svg stylesheet in case the loaded icons are svg-based, icons can be colored in different ways in different areas of the application.
 
void drawOverlays (const QStringList &overlays, QPixmap &pixmap, KIconLoader::Group group, int state=KIconLoader::DefaultState) const
 Draws overlays on the specified pixmap, it takes the width and height of the pixmap into consideration.
 
bool hasContext (KIconLoader::Context context) const
 
bool hasCustomPalette () const
 
bool hasIcon (const QString &iconName) const
 
KIconEffecticonEffect () const
 Returns a pointer to the KIconEffect object used by the icon loader.
 
QString iconPath (const QString &name, int group_or_size, bool canReturnNull, qreal scale) const
 Returns the path of an icon.
 
QString iconPath (const QString &name, int group_or_size, bool canReturnNull=false) const
 Returns the path of an icon.
 
QStringList loadAnimated (const QString &name, KIconLoader::Group group, int size=0) const
 Loads an animated icon as a series of still frames.
 
QPixmap loadIcon (const QString &name, KIconLoader::Group group, int size=0, int state=KIconLoader::DefaultState, const QStringList &overlays=QStringList(), QString *path_store=nullptr, bool canReturnNull=false) const
 Loads an icon.
 
QPixmap loadMimeTypeIcon (const QString &iconName, KIconLoader::Group group, int size=0, int state=KIconLoader::DefaultState, const QStringList &overlays=QStringList(), QString *path_store=nullptr) const
 Loads an icon for a mimetype.
 
QMovie * loadMovie (const QString &name, KIconLoader::Group group, int size=0, QObject *parent=nullptr) const
 Loads an animated icon.
 
KPixmapSequence loadPixmapSequence (const QString &iconName, int size=SizeSmall) const
 Loads a pixmapSequence given the xdg icon name.
 
QPixmap loadScaledIcon (const QString &name, KIconLoader::Group group, qreal scale, const QSize &size={}, int state=KIconLoader::DefaultState, const QStringList &overlays=QStringList(), QString *path_store=nullptr, bool canReturnNull=false) const
 Loads an icon.
 
QPixmap loadScaledIcon (const QString &name, KIconLoader::Group group, qreal scale, int size=0, int state=KIconLoader::DefaultState, const QStringList &overlays=QStringList(), QString *path_store=nullptr, bool canReturnNull=false) const
 Loads an icon.
 
QString moviePath (const QString &name, KIconLoader::Group group, int size=0) const
 Returns the path to an animated icon.
 
QStringList queryIcons (int group_or_size, KIconLoader::Context context=KIconLoader::Any) const
 Queries all available icons for a specific group, having a specific context.
 
QStringList queryIconsByContext (int group_or_size, KIconLoader::Context context=KIconLoader::Any) const
 Queries all available icons for a specific context.
 
QStringList queryIconsByDir (const QString &iconsDir) const
 Returns a list of all icons (*.png or *.xpm extension) in the given directory.
 
void reconfigure (const QString &appname, const QStringList &extraSearchPaths=QStringList())
 Reconfigure the icon loader, for instance to change the associated app name or extra search paths.
 
void resetPalette ()
 Resets the custom palette used by the KIconLoader to use the QGuiApplication::palette() again (and to follow it in case the application's palette changes)
 
QStringList searchPaths () const
 Returns all the search paths for this icon loader, either absolute or relative to GenericDataLocation.
 
void setCustomPalette (const QPalette &palette)
 Sets the colors for this KIconLoader.
 
KIconTheme * theme () const
 Returns a pointer to the current theme.
 

Static Public Member Functions

static KIconLoaderglobal ()
 Returns the global icon loader initialized with the application name.
 
static QPixmap unknown ()
 Returns the unknown icon.
 

Related Symbols

(Note that these are not member symbols.)

QIcon icon (const QString &iconName, const QStringList &overlays, KIconLoader *iconLoader=nullptr)
 Returns a QIcon for the given icon, with additional overlays.
 
QIcon icon (const QString &iconName, KIconLoader *iconLoader=nullptr)
 Returns a QIcon with an appropriate KIconEngine to perform loading and rendering.
 

Detailed Description

Iconloader for KDE.

KIconLoader will load the current icon theme and all its base themes. Icons will be searched in any of these themes. Additionally, it caches icons and applies effects according to the user's preferences.

In KDE, it is encouraged to load icons by "Group". An icon group is a location on the screen where icons are being used. Standard groups are: Desktop, Toolbar, MainToolbar, Small and Panel. Each group has some centrally configured properties bound to it, including the icon size and effects. This makes it possible to offer a consistent icon look in all KDE applications.

The standard groups are defined below.

The icons are stored on disk in an icon theme or in a standalone directory. The icon theme directories contain multiple sizes and/or depths for the same icon. The iconloader will load the correct one based on the icon group and the current theme. Icon themes are stored globally in share/icons, or, application specific in share/apps/$appdir/icons.

The standalone directories contain just one version of an icon. The directories that are searched are: $appdir/pics and $appdir/toolbar. Icons in these directories can be loaded by using the special group "User".

Member Enumeration Documentation

◆ Context

Defines the context of the icon.

Enumerator
Any 

Some icon with unknown purpose.

Action 

An action icon (e.g. 'save', 'print').

Application 

An icon that represents an application.

Device 

An icon that represents a device.

MimeType 

An icon that represents a mime type (or file type).

Animation 

An icon that is animated.

Category 

An icon that represents a category.

Emblem 

An icon that adds information to an existing icon.

Emote 

An icon that expresses an emotion.

International 

An icon that represents a country's flag.

Place 

An icon that represents a location (e.g. 'home', 'trash').

StatusIcon 

An icon that represents an event.

◆ Group

The group of the icon.

Enumerator
NoGroup 

No group.

Desktop 

Desktop icons.

FirstGroup 

First group.

Toolbar 

Toolbar icons.

MainToolbar 

Main toolbar icons.

Small 

Small icons, e.g. for buttons.

Dialog 

Icons for use in dialog titles, page lists, etc.

LastGroup 

Last group.

User 

User icons.

◆ MatchType

The type of a match.

Enumerator
MatchExact 

Only try to find an exact match.

MatchBest 

Take the best match if there is no exact match.

◆ States

Defines the possible states of an icon.

Enumerator
DefaultState 

The default state.

ActiveState 

Icon is active.

DisabledState 

Icon is disabled.

SelectedState 

Icon is selected.

Since
5.22
LastState 

Last state (last constant)

◆ StdSizes

These are the standard sizes for icons.

Enumerator
SizeSmall 

small icons for menu entries

SizeSmallMedium 

slightly larger small icons for toolbars, panels, etc

SizeMedium 

medium sized icons for the desktop

SizeLarge 

large sized icons for the panel

SizeHuge 

huge sized icons for iconviews

SizeEnormous 

enormous sized icons for iconviews

◆ Type

The type of the icon.

Enumerator
Fixed 

Fixed-size icon.

Scalable 

Scalable-size icon.

Threshold 

A threshold icon.

Constructor & Destructor Documentation

◆ KIconLoader()

KIconLoader::KIconLoader ( const QString &  appname = QString(),
const QStringList &  extraSearchPaths = QStringList(),
QObject *  parent = nullptr 
)
explicit

Constructs an iconloader.

Parameters
appnameAdd the data directories of this application to the icon search path for the "User" group. The default argument adds the directories of the current application.
extraSearchPathsadditional search paths, either absolute or relative to GenericDataLocation

Usually, you use the default iconloader, which can be accessed via KIconLoader::global(), so you hardly ever have to create an iconloader object yourself. That one is the application's iconloader.

◆ ~KIconLoader()

KIconLoader::~KIconLoader ( )
override

Cleanup.

Member Function Documentation

◆ addAppDir()

void KIconLoader::addAppDir ( const QString &  appname,
const QString &  themeBaseDir = QString() 
)

Adds appname to the list of application specific directories with themeBaseDir as its base directory.

Assume the icons are in /home/user/app/icons/hicolor/48x48/my_app.png, the base directory would be /home/user/app/icons; KIconLoader automatically searches themeBaseDir + "/hicolor" This directory must contain a dir structure as defined by the XDG icons specification

Parameters
appnameThe application name.
themeBaseDirThe base directory of the application's theme (eg. "/home/user/app/icons")

◆ currentSize()

int KIconLoader::currentSize ( KIconLoader::Group  group) const

Returns the current size of the icon group.

Using e.g. KIconLoader::SmallIcon will retrieve the icon size that is currently set from System Settings->Appearance->Icon sizes. SmallIcon for instance, would typically be 16x16, but the user could increase it and this setting would change as well.

Parameters
groupthe group to check.
Returns
the current size for an icon group.

◆ customPalette()

QPalette KIconLoader::customPalette ( ) const

The colors that will be used for the svg stylesheet in case the loaded icons are svg-based, icons can be colored in different ways in different areas of the application.

Returns
the palette, if any, an invalid one if the user didn't set it
Since
5.39

◆ drawOverlays()

void KIconLoader::drawOverlays ( const QStringList &  overlays,
QPixmap &  pixmap,
KIconLoader::Group  group,
int  state = KIconLoader::DefaultState 
) const

Draws overlays on the specified pixmap, it takes the width and height of the pixmap into consideration.

Parameters
overlaysList of up to 4 overlays to blend over the pixmap. The first overlay will be in the bottom right corner, followed by bottom left, top left and top right. An empty QString can be used to leave the specific position blank.
pixmapto draw on
Since
4.7

◆ emitChange

static void KIconLoader::emitChange ( Group  group)
staticslot

Emits an iconChanged() signal on all the KIconLoader instances in the system indicating that a system's icon group has changed in some way.

It will also trigger a reload in all of them to update to the new theme.

group indicates the group that has changed

Since
5.0

◆ global()

static KIconLoader * KIconLoader::global ( )
static

Returns the global icon loader initialized with the application name.

Returns
global icon loader

◆ hasCustomPalette()

bool KIconLoader::hasCustomPalette ( ) const
Returns
whether we have set a custom palette using @f setCustomPalette
Since
5.85
See also
resetPalette, setCustomPalette

◆ iconChanged

void KIconLoader::iconChanged ( int  group)
signal

Emitted when the system icon theme changes.

Since
5.0

◆ iconEffect()

KIconEffect * KIconLoader::iconEffect ( ) const

Returns a pointer to the KIconEffect object used by the icon loader.

Returns
the KIconEffect.

◆ iconLoaderSettingsChanged

void KIconLoader::iconLoaderSettingsChanged ( )
signal

Emitted by newIconLoader once the new settings have been loaded.

◆ iconPath() [1/2]

QString KIconLoader::iconPath ( const QString &  name,
int  group_or_size,
bool  canReturnNull,
qreal  scale 
) const

Returns the path of an icon.

Parameters
nameThe name of the icon, without extension. If an absolute path is supplied for this parameter, iconPath will return it directly.
group_or_sizeIf positive, search icons whose size is specified by the icon group group_or_size. If negative, search icons whose size is - group_or_size. See KIconLoader::Group and KIconLoader::StdSizes
canReturnNullCan return a null string? If not, a path to the "unknown" icon will be returned.
scaleThe scale of the icon group.
Returns
the path of an icon, can be null or the "unknown" icon when not found, depending on canReturnNull.
Since
5.48

◆ iconPath() [2/2]

QString KIconLoader::iconPath ( const QString &  name,
int  group_or_size,
bool  canReturnNull = false 
) const

Returns the path of an icon.

Parameters
nameThe name of the icon, without extension. If an absolute path is supplied for this parameter, iconPath will return it directly.
group_or_sizeIf positive, search icons whose size is specified by the icon group group_or_size. If negative, search icons whose size is - group_or_size. See KIconLoader::Group and KIconLoader::StdSizes
canReturnNullCan return a null string? If not, a path to the "unknown" icon will be returned.
Returns
the path of an icon, can be null or the "unknown" icon when not found, depending on canReturnNull.

◆ loadAnimated()

QStringList KIconLoader::loadAnimated ( const QString &  name,
KIconLoader::Group  group,
int  size = 0 
) const

Loads an animated icon as a series of still frames.

If you want to load a .mng animation as QMovie instead, please use loadMovie() instead.

Parameters
nameThe name of the icon.
groupThe icon group. See loadIcon().
sizeOverride the default size for group. See KIconLoader::StdSizes.
Returns
A QStringList containing the absolute path of all the frames making up the animation.

◆ loadIcon()

QPixmap KIconLoader::loadIcon ( const QString &  name,
KIconLoader::Group  group,
int  size = 0,
int  state = KIconLoader::DefaultState,
const QStringList &  overlays = QStringList(),
QString *  path_store = nullptr,
bool  canReturnNull = false 
) const

Loads an icon.

It will try very hard to find an icon which is suitable. If no exact match is found, a close match is searched. If neither an exact nor a close match is found, a null pixmap or the "unknown" pixmap is returned, depending on the value of the canReturnNull parameter.

Parameters
nameThe name of the icon, without extension.
groupThe icon group. This will specify the size of and effects to be applied to the icon.
sizeIf nonzero, this overrides the size specified by group. See KIconLoader::StdSizes.
stateThe icon state: DefaultState, ActiveState or DisabledState. Depending on the user's preferences, the iconloader may apply a visual effect to hint about its state.
overlaysa list of emblem icons to overlay, by name
See also
drawOverlays
Parameters
path_storeIf not null, the path of the icon is stored here, if the icon was found. If the icon was not found path_store is unaltered even if the "unknown" pixmap was returned.
canReturnNullCan return a null pixmap? If false, the "unknown" pixmap is returned when no appropriate icon has been found. Note: a null pixmap can still be returned in the event of invalid parameters, such as empty names, negative sizes, and etc.
Returns
the QPixmap. Can be null when not found, depending on canReturnNull.

◆ loadMimeTypeIcon()

QPixmap KIconLoader::loadMimeTypeIcon ( const QString &  iconName,
KIconLoader::Group  group,
int  size = 0,
int  state = KIconLoader::DefaultState,
const QStringList &  overlays = QStringList(),
QString *  path_store = nullptr 
) const

Loads an icon for a mimetype.

This is basically like loadIcon except that extra desktop themes are loaded if necessary.

Consider using QIcon::fromTheme() with a fallback to "application-octet-stream" instead.

Parameters
iconNameThe name of the icon, without extension, usually from KMimeType.
groupThe icon group. This will specify the size of and effects to be applied to the icon.
sizeIf nonzero, this overrides the size specified by group. See KIconLoader::StdSizes.
stateThe icon state: DefaultState, ActiveState or DisabledState. Depending on the user's preferences, the iconloader may apply a visual effect to hint about its state.
path_storeIf not null, the path of the icon is stored here.
overlaysa list of emblem icons to overlay, by name
See also
drawOverlays
Returns
the QPixmap. Can not be null, the "unknown" pixmap is returned when no appropriate icon has been found.

◆ loadMovie()

QMovie * KIconLoader::loadMovie ( const QString &  name,
KIconLoader::Group  group,
int  size = 0,
QObject *  parent = nullptr 
) const

Loads an animated icon.

Parameters
nameThe name of the icon.
groupThe icon group. See loadIcon().
sizeOverride the default size for group. See KIconLoader::StdSizes.
parentThe parent object of the returned QMovie.
Returns
A QMovie object. Can be null if not found or not valid. Ownership is passed to the caller.

◆ loadPixmapSequence()

KPixmapSequence KIconLoader::loadPixmapSequence ( const QString &  iconName,
int  size = SizeSmall 
) const

Loads a pixmapSequence given the xdg icon name.

Parameters
iconNameThe name of the icon, without extension.
sizethe size/group to be used
Since
5.0

◆ loadScaledIcon() [1/2]

QPixmap KIconLoader::loadScaledIcon ( const QString &  name,
KIconLoader::Group  group,
qreal  scale,
const QSize &  size = {},
int  state = KIconLoader::DefaultState,
const QStringList &  overlays = QStringList(),
QString *  path_store = nullptr,
bool  canReturnNull = false 
) const

Loads an icon.

It will try very hard to find an icon which is suitable. If no exact match is found, a close match is searched. If neither an exact nor a close match is found, a null pixmap or the "unknown" pixmap is returned, depending on the value of the canReturnNull parameter.

Parameters
nameThe name of the icon, without extension.
groupThe icon group. This will specify the size of and effects to be applied to the icon.
scaleThe scale of the icon group to use. If no icon exists in the scaled group, a 1x icon with its size multiplied by the scale will be loaded instead.
sizeIf nonzero, this overrides the size specified by group. See KIconLoader::StdSizes. The icon will be fit into size without changing the aspect ratio, which particularly matters for non-square icons.
stateThe icon state: DefaultState, ActiveState or DisabledState. Depending on the user's preferences, the iconloader may apply a visual effect to hint about its state.
overlaysa list of emblem icons to overlay, by name
See also
drawOverlays
Parameters
path_storeIf not null, the path of the icon is stored here, if the icon was found. If the icon was not found path_store is unaltered even if the "unknown" pixmap was returned.
canReturnNullCan return a null pixmap? If false, the "unknown" pixmap is returned when no appropriate icon has been found. Note: a null pixmap can still be returned in the event of invalid parameters, such as empty names, negative sizes, and etc.
Returns
the QPixmap. Can be null when not found, depending on canReturnNull.
Since
5.81

◆ loadScaledIcon() [2/2]

QPixmap KIconLoader::loadScaledIcon ( const QString &  name,
KIconLoader::Group  group,
qreal  scale,
int  size = 0,
int  state = KIconLoader::DefaultState,
const QStringList &  overlays = QStringList(),
QString *  path_store = nullptr,
bool  canReturnNull = false 
) const

Loads an icon.

It will try very hard to find an icon which is suitable. If no exact match is found, a close match is searched. If neither an exact nor a close match is found, a null pixmap or the "unknown" pixmap is returned, depending on the value of the canReturnNull parameter.

Parameters
nameThe name of the icon, without extension.
groupThe icon group. This will specify the size of and effects to be applied to the icon.
scaleThe scale of the icon group to use. If no icon exists in the scaled group, a 1x icon with its size multiplied by the scale will be loaded instead.
sizeIf nonzero, this overrides the size specified by group. See KIconLoader::StdSizes.
stateThe icon state: DefaultState, ActiveState or DisabledState. Depending on the user's preferences, the iconloader may apply a visual effect to hint about its state.
overlaysa list of emblem icons to overlay, by name
See also
drawOverlays
Parameters
path_storeIf not null, the path of the icon is stored here, if the icon was found. If the icon was not found path_store is unaltered even if the "unknown" pixmap was returned.
canReturnNullCan return a null pixmap? If false, the "unknown" pixmap is returned when no appropriate icon has been found. Note: a null pixmap can still be returned in the event of invalid parameters, such as empty names, negative sizes, and etc.
Returns
the QPixmap. Can be null when not found, depending on canReturnNull.
Since
5.48

◆ moviePath()

QString KIconLoader::moviePath ( const QString &  name,
KIconLoader::Group  group,
int  size = 0 
) const

Returns the path to an animated icon.

Parameters
nameThe name of the icon.
groupThe icon group. See loadIcon().
sizeOverride the default size for group. See KIconLoader::StdSizes.
Returns
the full path to the movie, ready to be passed to QMovie's constructor. Empty string if not found.

◆ newIconLoader

void KIconLoader::newIconLoader ( )
slot

Re-initialize the global icon loader.

Deprecated:
Since 5.0, use emitChange(Group)

◆ queryIcons()

QStringList KIconLoader::queryIcons ( int  group_or_size,
KIconLoader::Context  context = KIconLoader::Any 
) const

Queries all available icons for a specific group, having a specific context.

Parameters
group_or_sizeIf positive, search icons whose size is specified by the icon group group_or_size. If negative, search icons whose size is - group_or_size. See KIconLoader::Group and KIconLoader::StdSizes
contextThe icon context.
Returns
a list of all icons

◆ queryIconsByContext()

QStringList KIconLoader::queryIconsByContext ( int  group_or_size,
KIconLoader::Context  context = KIconLoader::Any 
) const

Queries all available icons for a specific context.

Parameters
group_or_sizeThe icon preferred group or size. If available at this group or size, those icons will be returned, in other case, icons of undefined size will be returned. Positive numbers are groups, negative numbers are negated sizes. See KIconLoader::Group and KIconLoader::StdSizes
contextThe icon context.
Returns
A QStringList containing the icon names available for that context

◆ queryIconsByDir()

QStringList KIconLoader::queryIconsByDir ( const QString &  iconsDir) const

Returns a list of all icons (*.png or *.xpm extension) in the given directory.

Parameters
iconsDirthe directory to search in
Returns
A QStringList containing the icon paths

◆ reconfigure()

void KIconLoader::reconfigure ( const QString &  appname,
const QStringList &  extraSearchPaths = QStringList() 
)

Reconfigure the icon loader, for instance to change the associated app name or extra search paths.

This also clears the in-memory pixmap cache (even if the appname didn't change, which is useful for unittests)

Parameters
appnamethe application name (empty for the global iconloader)
extraSearchPathsadditional search paths, either absolute or relative to GenericDataLocation

◆ resetPalette()

void KIconLoader::resetPalette ( )

Resets the custom palette used by the KIconLoader to use the QGuiApplication::palette() again (and to follow it in case the application's palette changes)

Since
5.39

◆ searchPaths()

QStringList KIconLoader::searchPaths ( ) const

Returns all the search paths for this icon loader, either absolute or relative to GenericDataLocation.

Mostly internal (for KIconDialog).

Since
5.0

◆ setCustomPalette()

void KIconLoader::setCustomPalette ( const QPalette &  palette)

Sets the colors for this KIconLoader.

NOTE: if you set a custom palette, if you are using some colors from application's palette, you need to track the application palette changes by yourself. If you no longer wish to use a custom palette, use resetPalette()

See also
resetPalette
Since
5.39

◆ theme()

KIconTheme * KIconLoader::theme ( ) const

Returns a pointer to the current theme.

Can be used to query available and default sizes for groups.

Note
The KIconTheme will change if reconfigure() is called and therefore it's not recommended to store the pointer anywhere.
Returns
a pointer to the current theme. 0 if no theme set.

◆ unknown()

static QPixmap KIconLoader::unknown ( )
static

Returns the unknown icon.

An icon that is used when no other icon can be found.

Returns
the unknown pixmap

Friends And Related Symbol Documentation

◆ icon() [1/2]

QIcon icon ( const QString &  iconName,
const QStringList &  overlays,
KIconLoader iconLoader = nullptr 
)
related

Returns a QIcon for the given icon, with additional overlays.

Since
5.0

◆ icon() [2/2]

QIcon icon ( const QString &  iconName,
KIconLoader iconLoader = nullptr 
)
related

Returns a QIcon with an appropriate KIconEngine to perform loading and rendering.

KIcons thus adhere to KDE style and effect standards.

Since
5.0