185. OneClickInstall

185.1. Summary of Module Globals

List of Global Functions

List of Global Variables

    185.2. Global Functions

    185.2.1. FromXML

    DeSerialises this data structure from XML.

    Function parameters

    • string filename

    Return value

    • void

    185.2.2. GetDescription

    Return value

    • string - the description for this software bundle. This will be in the user's current language if there was a localised description available.

    185.2.3. GetName

    Return value

    • string - the name for this software bundle.

    185.2.4. GetNonRequiredRemoveSoftware

    Return value

    • list<string> - a list of the names of the software currently selected for removal.

    185.2.5. GetNonRequiredRepositories

    Return value

    • list<string> - a list of the URLs of the repositories currently NOT selected for addition.

    185.2.6. GetNonRequiredSoftware

    Return value

    • list<string> - a list of the names of the software currently NOT selected for installation.

    185.2.7. GetRemainSubscribed

    Return value

    • boolean - the current setting of whether the user should remain subscribed to repositories after installation.

    185.2.8. GetRepositoryDescription

    Function parameters

    • string url

    Return value

    • string - the description of the repository with the specified name. This will be in the user's current language if there was a localised description available.

    185.2.9. GetRepositoryName

    Function parameters

    • string url

    Return value

    • string - the name of the repository with the specified name.

    185.2.10. GetRepositorySummary

    Function parameters

    • string url

    Return value

    • string - the summary of the repository with the specified name. This will be in the user's current language if there was a localised summary available.

    185.2.11. GetRequiredRemoveSoftware

    Return value

    • list<string> - a list of the names of the software currently selected for removal.

    185.2.12. GetRequiredRepositories

    Return value

    • list<string> - a list of the URLs of the repositories currently selected for addition.

    185.2.13. GetRequiredSoftware

    Return value

    • list<string> - a list of the names of the software currently selected for installation.

    185.2.14. GetSoftwareDescription

    Function parameters

    • string name

    Return value

    • string - the description for the software with specified name. This will be in the user's current language if there was a localised description available.

    185.2.15. GetSoftwareSummary

    Function parameters

    • string name

    Return value

    • string - the summary for the software with specified name. This will be in the user's current language if there was a localised summary available.

    185.2.16. GetSummary

    Return value

    • string - the summary for this software bundle. This will be in the user's current language if there was a localised summary available.

    185.2.17. HaveAnyRecommended

    Return value

    • boolean - Whether we have any recommended repositories or packages If not we will have to show advanced view.

    185.2.18. HaveAnythingToDo

    Return value

    • boolean - Whether we have anything to do Determine whether we have a proper metapackage, useful as we can't throw exceptions.

    185.2.19. HaveBundleDescription

    Return value

    • boolean - Whether we have a bundle description for the whole bundle Build service isn't currently generating one for YMPs for individual packages.

    185.2.20. HaveRemovals

    Return value

    • boolean - Find out whether we have any software that needs to be removed for this installation. Useful to find out whether to display this wizard step.

    185.2.21. HaveRepositories

    Return value

    • boolean - Find out whether we have any repositories that need to be added for this installation. Useful to find out whether to display this wizard step.

    185.2.22. HaveSoftware

    Return value

    • boolean - Find out whether we have any software that needs to be installed for this installation. Useful to find out whether to display this wizard step.

    185.2.23. Load

    Load the Metapackage from the URL supplied for further processing. Converts from original form into a simple two lists, one of repositories, other of software. Uses the Product.ycp to obtain the correct version for our product. Uses the Language.ycp to obtain correct strings for our language.

    Function parameters

    • string url

    Return value

    • void

    185.2.24. SetNonRequiredRepository

    Ensures that the repository with the specified URL is NOT selected for addition.

    Function parameters

    • string url

    Return value

    • void

    185.2.25. SetNonRequiredSoftware

    Ensures the software with the specified name is NOT selected for installation or removal.

    Function parameters

    • string name

    Return value

    • void

    185.2.26. SetRemainSubscribed

    Specify whether the user should remain subscribed to the repositories after installation of this software is complete.

    Function parameters

    • boolean value

    Return value

    • void

    185.2.27. SetRequiredRepositories

    Ensures that the repositories with specified URLs are selected for addition, and all others are not.

    Function parameters

    • list<string> urls

    Return value

    • void

    185.2.28. SetRequiredRepository

    Ensures that the repository with the specified URL is selected for addition.

    Function parameters

    • string url

    Return value

    • void

    185.2.29. SetRequiredSoftware

    Ensures the software with the specified name is selected for installation or removal.

    Function parameters

    • string name

    Return value

    • void

    185.2.30. SetRequiredSoftwares

    Ensures that the repositories with specified URLs are selected for addition, and all others are not. Invalid pluralisation due to lack of proper overloading :(

    Function parameters

    • list<string> names

    Return value

    • void

    185.2.31. ToXML

    Serialises this data structure to XML.

    Function parameters

    • string filename

    Return value

    • void

    185.3. Global Variables

    185.4. Module Requirements

    185.4.1. Module Imports

    • Language
    • Product
    • XML
    • YPX

    185.4.2. Module Includes