KUnitConversion
unitcategory.h
175 * @return true if category has conversion table that needs to be updated via online access, otherwise false
Class to define a category of units of measurement.
Definition unitcategory.h:41
QStringList allUnits() const
Return all unit names, short names and unit synonyms in this category.
Definition unitcategory.cpp:148
bool operator!=(const UnitCategory &other) const
Definition unitcategory.cpp:110
UpdateJob * syncConversionTable(std::chrono::seconds updateSkipPeriod=std::chrono::hours(24))
Request an update of the online conversion table when it is older than updateSkipPeriod.
Definition unitcategory.cpp:264
bool hasOnlineConversionTable() const
Definition unitcategory.cpp:259
bool operator==(const UnitCategory &other) const
Definition unitcategory.cpp:101
Value convert(const Value &value, const QString &toUnit=QString()) const
Convert value to another unit selected by string.
Definition unitcategory.cpp:164
UnitCategory & operator=(const UnitCategory &other)
Assignment operator, assign other to this.
Definition unitcategory.cpp:89
QString description() const
Definition unitcategory.cpp:221
QList< Unit > mostCommonUnits() const
Return most common units in this category.
Definition unitcategory.cpp:140
bool hasUnit(const QString &unit) const
Check if unit category has a unit.
Definition unitcategory.cpp:156
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:54:52 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:54:52 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.