180. OneClickInstall

180.1. Authors

    180.2. Summary of Module Globals

    List of Global Functions

    List of Global Variables

      180.3. Global Functions

      180.3.1. FromXML

      DeSerialises this data structure from XML.

      Function parameters

      • string filename

      Return value

      • void

      180.3.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.

      180.3.3. GetName

      Return value

      • string - the name for this software bundle.

      180.3.4. GetNonRequiredRemoveSoftware

      Return value

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

      180.3.5. GetNonRequiredRepositories

      Return value

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

      180.3.6. GetNonRequiredSoftware

      Return value

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

      180.3.7. GetRemainSubscribed

      Return value

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

      180.3.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.

      180.3.9. GetRepositoryName

      Function parameters

      • string url

      Return value

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

      180.3.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.

      180.3.11. GetRequiredRemoveSoftware

      Return value

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

      180.3.12. GetRequiredRepositories

      Return value

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

      180.3.13. GetRequiredSoftware

      Return value

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

      180.3.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.

      180.3.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.

      180.3.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.

      180.3.17. HaveAnyRecommended

      Return value

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

      180.3.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.

      180.3.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.

      180.3.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.

      180.3.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.

      180.3.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.

      180.3.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

      180.3.24. SetNonRequiredRepository

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

      Function parameters

      • string url

      Return value

      • void

      180.3.25. SetNonRequiredSoftware

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

      Function parameters

      • string name

      Return value

      • void

      180.3.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

      180.3.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

      180.3.28. SetRequiredRepository

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

      Function parameters

      • string url

      Return value

      • void

      180.3.29. SetRequiredSoftware

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

      Function parameters

      • string name

      Return value

      • void

      180.3.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

      180.3.31. ToXML

      Serialises this data structure to XML.

      Function parameters

      • string filename

      Return value

      • void

      180.4. Global Variables

      180.5. Module Requirements

      180.5.1. Module Imports

      • Language
      • Product
      • XML
      • YPX

      180.5.2. Module Includes