KUnitConversion
unitcategory.cpp
26UnitCategoryPrivate::UnitCategoryPrivate(CategoryId id, const QString &name, const QString &description)
59 s_nam->enableStrictTransportSecurityStore(true, QStandardPaths::writableLocation(QStandardPaths::GenericCacheLocation) + QLatin1String("/org.kde.unitconversion/hsts/"));
245 // this only works by chance as apart from the ctors those parts contain no logic or data it seems
250 QLatin1String("Empty match string for unit symbol: '%1' '%2' - fix translation?").arg(unit.symbol(), unit.description()).toUtf8().constData());
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
KIOCORE_EXPORT QStringList list(const QString &fileClass)
QString name(StandardAction id)
bool isEmpty() const const
QNetworkReply * get(const QNetworkRequest &request)
void finished()
NoLessSafeRedirectPolicy
void deleteLater()
Value
GenericCacheLocation
QString writableLocation(StandardLocation type)
bool isEmpty() const const
SkipEmptyParts
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:24 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:24 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.