KUnitConversion
Go to the documentation of this file.
20 #ifndef KUNITCONVERSION_UNITCATEGORY_H
21 #define KUNITCONVERSION_UNITCATEGORY_H
25 #include <QtCore/QString>
26 #include <QtCore/QStringList>
30 namespace KUnitConversion
68 bool hasUnit(
const QString &unit)
const;
113 Value convert(
const Value& value,
int toUnit);
122 void setName(
const QString& name);
123 void setDefaultUnit(
UnitPtr defaultUnit);
124 void addUnitName(
const QString& name);
126 void addIdMapValue(
UnitPtr unit,
int id);
127 void setDescription(
const QString& desc);
128 void setUrl(
const KUrl& url);
129 void setSymbolStringFormat(
const KLocalizedString& symbolStringFormat);
130 void setMostCommonUnits(
const QList<int>& units);
131 KLocalizedString symbolStringFormat()
const;
KSharedPtr< Unit > UnitPtr
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:00 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.