File indexing completed on 2024-04-28 07:39:41
0001 /*. 0002 SPDX-FileCopyrightText: 2007 Vladimir Kuznetsov <ks.vladimir@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef STEP_UNITSCALC_H 0008 #define STEP_UNITSCALC_H 0009 0010 #include <QString> 0011 0012 class UnitsCalcPrivate; 0013 class UnitsCalc 0014 { 0015 public: 0016 static UnitsCalc *self(); 0017 ~UnitsCalc(); 0018 0019 bool parseNumber(const QString& expression, const QString& units, double& result); 0020 0021 protected: 0022 UnitsCalc(); 0023 0024 UnitsCalcPrivate* d; 0025 friend class UnitsCalcHelper; 0026 }; 0027 0028 #endif 0029