/
filterswidget.h
49 lines (40 loc) · 1000 Bytes
/
filterswidget.h
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/**
* SPDX-FileCopyrightText: 2012 Giuseppe Calà <gcala@mailbox.org>
*
* SPDX-License-Identifier: GPL-3.0-only
*/
#ifndef FILTERSWIDGET_H
#define FILTERSWIDGET_H
#include <QWidget>
#include <QDate>
namespace Ui {
class FiltersWidget;
}
class FiltersWidget : public QWidget
{
Q_OBJECT
public:
explicit FiltersWidget(QWidget *parent = 0);
~FiltersWidget();
bool installedChecked();
void setInstallCB(const bool &);
bool upgradedChecked();
void setUpdatedCB(const bool &);
bool removedChecked();
void setRemovedCB(const bool &);
bool downgradedChecked();
void setDowngradedCB(const bool &);
bool reinstalledChecked();
void setReinstalledCB(const bool &);
int dateRangeIndex();
void setRangeIndex(const int &);
QDate fromDate();
void setFromDate(const QDate &);
QDate toDate();
void setToDate(const QDate &);
signals:
void filtersChanged();
private:
Ui::FiltersWidget *ui;
};
#endif // FILTERSWIDGET_H