Abstract base class for items that can go into a software package.
#include <Package/packageitem.h>
◆ addToCMakePackScript()
virtual bool addToCMakePackScript |
( |
QStringList & |
cmakeScript | ) |
const |
|
pure virtual |
- Parameters
-
cmakeScript | Upon entry, this will hold the contents of the CMake script that have been assembled so far. These contents would normally not be modified, but this is permitted if required. Normally, the subclass implementation would simply append to cmakeScript and in some circumstances, it may search for things in cmakeScript to customize entries that will be appended. |
- Returns
- True upon success, or false if an error was encountered that results in the CMake script incomplete or invalid.
Implemented in PackageEnvironmentVariableItemData, PackageDirectoryItemData, PackageExecutableItemData, PackageFileItemData, and PackageItemContainer.
◆ clone()
◆ getApplicationIcons()
- Returns
- A list of ApplicationIconDetails objects describing the set of application icons provided by this package item. Only those icons needed by ExecutableDetails objects in the package need to be present in this list. Other icons used by the package internally do not need to be included in the list.
The default implementation returns an empty list.
Reimplemented in PackageItemContainer.
◆ getEnvironmentVariables()
◆ getExecutables()
- Returns
- A list of ExecutableDetails objects describing the set of executables provided by this package item. Only those executables for which a desktop menu entry is required need to be present in this list. Executables used by the package internally do not need to be included in the list.
The default implementation returns an empty list.
Reimplemented in PackageExecutableItemData, and PackageItemContainer.