#ifndef RULE_H #define RULE_H #include #include struct Rule { enum When { before, after }; int id; int entry_id; When when; QDateTime date; QString color; // consider making this a QColor instead QString highlight; // see color comment Rule( int id, int entry_id, When when, QDateTime date = QDateTime::currentDateTime(), QString color = "", QString highlight = "" ); static QList rules; }; #endif