ComponentAlias Class | Qt Installer Framework Manual

- Qt Installer Framework Manual
- ComponentAlias

# ComponentAlias Class

(QInstaller::ComponentAlias)

The ComponentAlias class represents an alias for single or multiple components. More...

Header: | #include <ComponentAlias>

- List of all members, including inherited members

## Public Types

enum | UnstableError { ReferenceToUnstable, MissingComponent, UnselectableComponent, MissingAlias, ComponentNameConfict }

## Public Functions

| ComponentAlias(QInstaller::PackageManagerCore *core)
virtual | ~ComponentAlias()
QList<QInstaller::ComponentAlias *> | aliases()
QList<QInstaller::Component *> | components()
QString | description() const
QString | displayName() const
bool | isSelected() const
bool | isUnstable() const
bool | isVirtual() const
QStringList | keys() const
QString | name() const
void | setSelected(bool selected)
void | setUnstable(QInstaller::ComponentAlias::UnstableError error, const QString &message = QString())
void | setValue(const QString &key, const QString &value)
QString | value(const QString &key, const QString &defaultValue = QString()) const
QString | version() const

## Static Public Members

const QMetaObject | staticMetaObject

## Detailed Description

The ComponentAlias class represents an alias for single or multiple components.

## Member Type Documentation

### enum ComponentAlias::UnstableError

This enum type holds the possible reasons for marking an alias unstable:

Constant | Value | Description
--- | --- | ---
`QInstaller::ComponentAlias::ReferenceToUnstable` | `0` | Alias requires another alias that is marked unstable.
`QInstaller::ComponentAlias::MissingComponent` | `1` | Alias requires a component that is missing.
`QInstaller::ComponentAlias::UnselectableComponent` | `2` | Alias requires a component that cannot be selected.
`QInstaller::ComponentAlias::MissingAlias` | `3` | Alias requires another alias that is missing.
`QInstaller::ComponentAlias::ComponentNameConfict` | `4` | Alias has a name that conflicts with a name of a component

## Member Function Documentation

### ComponentAlias::ComponentAlias(QInstaller::PackageManagerCore *core)

Default constructs an instance of ComponentAlias.

### `[virtual]` ComponentAlias::~ComponentAlias()

Destroys the instance of ComponentAlias. The destructor is virtual.

### QList<QInstaller::ComponentAlias *> ComponentAlias::aliases()

### QList<QInstaller::Component *> ComponentAlias::components()

### QString ComponentAlias::description() const

### QString ComponentAlias::displayName() const

### bool ComponentAlias::isSelected() const

### bool ComponentAlias::isUnstable() const

### bool ComponentAlias::isVirtual() const

### QStringList ComponentAlias::keys() const

### QString ComponentAlias::name() const

### void ComponentAlias::setSelected(bool selected)

See also isSelected().

### void ComponentAlias::setUnstable(QInstaller::ComponentAlias::UnstableError error, const QString &message = QString())

See also isUnstable().

### void ComponentAlias::setValue(const QString &key, const QString &value)

See also value().

### QString ComponentAlias::value(const QString &key, const QString &defaultValue = QString()) const

See also setValue().

### QString ComponentAlias::version() const