IntroductionPage Class

(QInstaller::IntroductionPage)

The IntroductionPage class displays information about the product to install. More...

Header: #include <IntroductionPage>
Inherits: PackageManagerPage

Public Functions

IntroductionPage(PackageManagerCore *core)
void hideAll()
void setMaintenanceToolsEnabled(bool enable)
void setText(const QString &text)
void showAll()
void showMaintenanceTools()
void showMetaInfoUpdate()
bool validatePage()

Reimplemented Public Functions

virtual int nextId() const

Public Slots

void onCoreNetworkSettingsChanged()
void onProgressChanged(int progress)
void setErrorMessage(const QString &error)
void setMessage(const QString &msg)

Signals

Additional Inherited Members

Detailed Description

The IntroductionPage class displays information about the product to install.

Member Function Documentation

IntroductionPage::IntroductionPage(PackageManagerCore *core)

Constructs an introduction page with core as parent.

void IntroductionPage::hideAll()

Hides all widgets on the page.

[virtual] int IntroductionPage::nextId() const

Reimplemented from PackageManagerPage::nextId().

Determines which page should be shown next depending on whether the application is being installed, updated, or uninstalled.

[slot] void IntroductionPage::onCoreNetworkSettingsChanged()

Resets the internal page state, so that on clicking Next the metadata needs to be fetched again.

[slot] void IntroductionPage::onProgressChanged(int progress)

Updates the value of progress on the progress bar.

[signal] void IntroductionPage::packageManagerCoreTypeChanged()

This signal is emitted when the package manager core type changes.

[slot] void IntroductionPage::setErrorMessage(const QString &error)

Displays the error message error on the page.

void IntroductionPage::setMaintenanceToolsEnabled(bool enable)

Sets enable to true to enable the options to install, add, and uninstall components on the page.

[slot] void IntroductionPage::setMessage(const QString &msg)

Displays the message msg on the page.

void IntroductionPage::setText(const QString &text)

Displays the text text on the page.

void IntroductionPage::showAll()

Shows all widgets on the page.

void IntroductionPage::showMaintenanceTools()

Shows the options to install, add, and unistall components on the page.

void IntroductionPage::showMetaInfoUpdate()

Hides the widgets on the page except a text label and progress bar.

bool IntroductionPage::validatePage()

For an uninstaller, always returns true. For the package manager and updater, at least one valid repository is required. For the online installer, package manager, and updater, valid meta data has to be fetched successfully to return true.