summaryrefslogtreecommitdiff
path: root/src/rule.h
blob: 212040142352173aa78aad85affa62e699168131 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef RULE_H
#define RULE_H

#include <QDateTime>
#include <QString>

struct Rule {
	enum When { before, after };
	int id;
	int entry_id;
	When when;
	QDateTime date;
	QString color = "";
	QString highlight = "";

	Rule(
			int id,
			int entry_id,
			When when,
			QDateTime date,
			QString color,
			QString highlight
		);
};

#endif