comparison src/main.h @ 190:76afbf6508c8

Add check for last successful database backup, and show a warning dialog at startup if more than 7 days have passed since. Only if backups are enabled etc.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 08 Nov 2017 15:46:51 +0200
parents 636a24c76232
children 98eec4f3838b
comparison
equal deleted inserted replaced
189:0b94ad4ea029 190:76afbf6508c8
162 int addTransaction(qint64 id, double value, SLPersonInfo &info); 162 int addTransaction(qint64 id, double value, SLPersonInfo &info);
163 int addTransactionGUI(qint64 id, bool debt, double value); 163 int addTransactionGUI(qint64 id, bool debt, double value);
164 void updatePersonList(); 164 void updatePersonList();
165 void updateMiscValues(); 165 void updateMiscValues();
166 void backupDatabase(); 166 void backupDatabase();
167 void backupSuccess();
167 168
168 bool printDocumentPage(const bool getPageInfo, const int page, QPainter *pt, QPrinter *printer); 169 bool printDocumentPage(const bool getPageInfo, const int page, QPainter *pt, QPrinter *printer);
169 170
170 SLPersonSQLModel *model_People; 171 SLPersonSQLModel *model_People;
171 172