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
49 QString description()
const;
68 bool hasUnit(
const QString &unit)
const;
75 UnitPtr unit(
const QString& s)
const;
89 QList<UnitPtr> units()
const;
96 QList<UnitPtr> mostCommonUnits()
const;
103 QStringList allUnits()
const;
112 Value convert(
const Value& value,
const QString& toUnit = QString());
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);
125 void addUnitMapValues(
UnitPtr unit,
const QString& names);
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-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:00 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.