AliasSource Struct | Qt Installer Framework Manual

- Qt Installer Framework Manual
- AliasSource

# AliasSource Struct

struct QInstaller::AliasSource

Describes a source for alias declarations. More...

Header: | #include <AliasSource>

- List of all members, including inherited members

## Public Types

enum class | SourceFileFormat { Unknown, Xml, Json }

## Public Functions

| AliasSource()
| AliasSource(QInstaller::AliasSource::SourceFileFormat aFormat, const QString &aFilename, int aPriority)
| AliasSource(const QInstaller::AliasSource &other)

## Detailed Description

## Member Type Documentation

### enum class AliasSource::SourceFileFormat

This enum type holds the possible file formats for alias source:

Constant | Value | Description
--- | --- | ---
`QInstaller::AliasSource::SourceFileFormat::Unknown` | `-1` | Invalid or unknown file format.
`QInstaller::AliasSource::SourceFileFormat::Xml` | `0` | XML file format.
`QInstaller::AliasSource::SourceFileFormat::Json` | `1` | JSON file format.

## Member Function Documentation

### AliasSource::AliasSource()

Constructs an alias source with empty information.

### AliasSource::AliasSource(QInstaller::AliasSource::SourceFileFormat aFormat, const QString &aFilename, int aPriority)

Constructs an alias source with source file format aFormat, filename aFilename, and priority aPriority.

### AliasSource::AliasSource(const QInstaller::AliasSource &other)

Copy-constructs an alias source from other.