stringer.h
852 Bytes
#ifndef STRINGER_H
#define STRINGER_H
#include <QtCore>
#include <QDateTime>
namespace Stringer {
enum datetime_string_type{
datetime_string_type_oneline=0,
datetime_string_type_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 secs);
QString remainingTime(int secs, QString style);
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 DateTimeString(const QDateTime &dt_tm, datetime_string_type type=datetime_string_type_twoline);
}
#endif // STRINGER_H