Mercurial > hg > syntilista
diff src/main.h @ 157:325e7590f93e
Move most of the printing related code to printing.cpp
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 12 Sep 2017 15:56:40 +0300 |
parents | 0a7aff5dce3b |
children | 1c2f9d09e87b |
line wrap: on
line diff
--- a/src/main.h Fri Sep 08 03:22:54 2017 +0300 +++ b/src/main.h Tue Sep 12 15:56:40 2017 +0300 @@ -44,8 +44,9 @@ #define BACKUP_HTTP 1 // HTTP(s) POST to a PHP script + // -// Custom SQL models +// Person information record // class PersonInfo : public QObject { @@ -74,7 +75,25 @@ }; +// +// Global functions +// +double slMoneyStrToValue(const QString &str); +QString slMoneyValueToStr(double val); +QString slCleanupStr(const QString &str); +const QDateTime slDateTimeToLocal(const QDateTime &val); +const QString slDateTimeToStr(const QDateTime &val); +void slLog(const QString &mtype, const QString &msg); +int slErrorMsg(QString title, QString msg); +bool slCheckAndReportSQLError(const QString where, const QSqlError &err, bool report = false); + +void slGetPersonInfoRec(QSqlQuery &query, PersonInfo &info); + + +// +// Custom SQL models +// class PersonSQLModel : public QSqlQueryModel { Q_OBJECT