StorageComponentSpec
Qualified name: mv::util::StorageComponentSpec
-
class StorageComponentSpec : public mv::util::HardwareComponentSpec
Storage component spec class.
For encapsulating a storage hardware specification.
- Author
Thomas Kroes
Public Functions
-
StorageComponentSpec()
Default constructor.
-
virtual QString getFailureString(const HardwareComponentSpec &required) const override
Get the reason why the storage component spec does not meet the
requiredstorage component spec.- Parameters:
required – Storage component spec that is required
- Returns:
String containing the reason why the storage component spec does not meet the required storage component spec
-
inline std::uint64_t getNumberOfBytesAvailableInAppData() const
Get the number of available bytes in app data folder.
- Returns:
Number of bytes of available disk space in app data folder
-
inline bool operator==(const StorageComponentSpec &other) const
Get whether the storage component specification is equal to the
otherstorage component specification.- Parameters:
other – Storage component specification to compare with
- Returns:
Boolean determining whether the storage component specification is equal to the
otherstorage component specification
-
inline bool operator!=(const StorageComponentSpec &other) const
Get whether the storage component specification is not equal to the
otherstorage component specification.- Parameters:
other – Storage component specification to compare with
- Returns:
Boolean determining whether the storage component specification is not equal to the
otherstorage component specification
-
inline bool operator<(const StorageComponentSpec &other) const
Get whether the storage component specification is smaller than the
otherstorage component specification.- Returns:
Boolean determining whether the storage component specification is smaller than the
otherstorage component specification
-
inline bool operator>(const StorageComponentSpec &other) const
Get whether the storage component specification is larger than the
otherstorage component specification.- Returns:
Boolean determining whether the storage component specification is larger than the
otherstorage component specification
-
inline virtual bool lessThan(const HardwareComponentSpec &other) const override
Get whether the storage component specification is smaller than the
otherstorage component specification.- Parameters:
other – Hardware component specification to compare with
- Returns:
Boolean determining whether the hardware component specification is smaller than the
otherhardware component specification
-
inline virtual bool equals(const HardwareComponentSpec &other) const override
Get whether the storage component specification is equal to the
otherstorage component specification.- Parameters:
other – Storage component specification to compare with
- Returns:
Boolean determining whether the storage component specification is equal to the
otherstorage component specification
-
virtual bool meets(const HardwareComponentSpec &required) const override
Get whether the storage component specification meets the
requiredstorage component specification.- Parameters:
required – storage component spec that is required
- Returns:
Boolean determining whether the storage component spec meets the required storage component spec
-
virtual QStandardItem *getStandardItem() const override
Get standard item.
- Returns:
Pointer to standard item representing the hardware component spec