0.7.1
[fapman] / blacklistselect.h
1 /*
2         This file is part of Faster Application Manager.
3
4         Faster Application Manager is free software: you can redistribute it and/or modify
5         it under the terms of the GNU General Public License as published by
6         the Free Software Foundation, either version 3 of the License, or
7         (at your option) any later version.
8
9         Faster Application Manager is distributed in the hope that it will be useful,
10         but WITHOUT ANY WARRANTY; without even the implied warranty of
11         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12         GNU General Public License for more details.
13
14         You should have received a copy of the GNU General Public License
15         along with Faster Application Manager.  If not, see <http://www.gnu.org/licenses/>.
16
17         (C) Heikki Holstila 2010
18 */
19
20 #ifndef BLACKLISTSELECT_H
21 #define BLACKLISTSELECT_H
22
23 #include <QDialog>
24
25 class Package;
26
27 namespace Ui {
28     class BlacklistSelect;
29 }
30
31 class BlacklistSelect : public QDialog
32 {
33     Q_OBJECT
34
35 public:
36
37         enum blackList { BlacklistNone, BlacklistThis, BlacklistAll };
38
39         explicit BlacklistSelect(Package* pkg, QWidget *parent = 0);
40         virtual ~BlacklistSelect();
41
42 protected:
43     void changeEvent(QEvent *e);
44
45 private:
46         BlacklistSelect(const BlacklistSelect& old);
47         BlacklistSelect operator= (const BlacklistSelect& old);
48
49     Ui::BlacklistSelect *ui;
50         Package* iPkg;
51
52 private slots:
53         void on_pushButton_Restore_clicked();
54         void on_pushButton_This_clicked();
55         void on_pushButton_Forever_clicked();
56 };
57
58 #endif // BLACKLISTSELECT_H