/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright (C) 2017 Simon Stuerz * * * * This file is part of nymea:app * * * * This library is free software; you can redistribute it and/or * * modify it under the terms of the GNU Lesser General Public * * License as published by the Free Software Foundation; either * * version 2.1 of the License, or (at your option) any later version. * * * * This library is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * * Lesser General Public License for more details. * * * * You should have received a copy of the GNU Lesser General Public * * License along with this library; If not, see * * . * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #ifndef TYPES_H #define TYPES_H #include class Types { Q_GADGET Q_ENUMS(InputType) Q_ENUMS(Unit) public: enum InputType { InputTypeNone, InputTypeTextLine, InputTypeTextArea, InputTypePassword, InputTypeSearch, InputTypeMail, InputTypeIPv4Address, InputTypeIPv6Address, InputTypeUrl, InputTypeMacAddress }; enum Unit { UnitNone, UnitSeconds, UnitMinutes, UnitHours, UnitUnixTime, UnitMeterPerSecond, UnitKiloMeterPerHour, UnitDegree, UnitRadiant, UnitDegreeCelsius, UnitDegreeKelvin, UnitMired, UnitMilliBar, UnitBar, UnitPascal, UnitHectoPascal, UnitAtmosphere, UnitLumen, UnitLux, UnitCandela, UnitMilliMeter, UnitCentiMeter, UnitMeter, UnitKiloMeter, UnitGram, UnitKiloGram, UnitDezibel, UnitKiloByte, UnitMegaByte, UnitGigaByte, UnitTeraByte, UnitMilliWatt, UnitWatt, UnitKiloWatt, UnitKiloWattHour, UnitPercentage, UnitPartsPerMillion, UnitEuro, UnitDollar }; Types(QObject *parent = nullptr); }; #endif // TYPES_H