stringer.h 801 Bytes
#ifndef STRINGER_H
#define STRINGER_H


#include <QtCore>
#include <QDateTime>

namespace Stringer {

enum DateTimeType { OneLine, TwoLine };

const QString fontSize14("\
<style>\
span { font-size: 14pt; }\
span.heavy { font-size: 16pt; }\
span.light { font-size: 11pt; }\
span.lightest { font-size: 9pt; }\
</style>");

QString remainingTime(int msecs);
QString remainingTime(int msecs, QString style);
QString remainingTime(qint64 msecs);
QString temperature(int celsius);
QString temperature(int celsius, QString style);
QString temperature(int current, int target);
QString temperature(int current, int target, QString style);
QString unusedTemperature();
QString unusedTemperature(QString style);
QString dateTime(const QDateTime &dateTime, DateTimeType type = TwoLine);

}

#endif // STRINGER_H