Cleanup
[kitchenalert] / src / stickydialog.h
1 /**************************************************************************
2
3         KitchenAlert
4
5         Copyright (C) 2010-2011  Heli Hyvättinen
6
7         This file is part of KitchenAlert.
8
9         Kitchen Alert is free software: you can redistribute it and/or modify
10         it under the terms of the GNU General Public License as published by
11         the Free Software Foundation, either version 3 of the License, or
12         (at your option) any later version.
13
14         This program is distributed in the hope that it will be useful,
15         but WITHOUT ANY WARRANTY; without even the implied warranty of
16         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17         GNU General Public License for more details.
18
19         You should have received a copy of the GNU General Public License
20         along with this program.  If not, see <http://www.gnu.org/licenses/>.
21
22 **************************************************************************/
23
24 #ifndef STICKYDIALOG_H
25 #define STICKYDIALOG_H
26
27 #include <QDialog>
28 #include <QListView>
29 #include <QStringListModel>
30
31 class StickyDialog : public QDialog
32
33
34         /*! The class for dialog for selecting sticky timers of KitchenAlert'
35
36           @author Heli Hyvättinen
37           @date 2011-08-14
38           @version 0.4.0
39
40         The class for dialog for selecting sticky timers of KitchenAlert.
41
42         */
43 {
44     Q_OBJECT
45 public:
46     explicit StickyDialog(QString defaultDirectory,  QWidget *parent = 0);
47
48     QStringList getStickyList();
49
50
51 signals:
52
53 public slots:
54
55     void add();
56     void remove();
57
58 protected:
59
60     QListView * pStickiesView_;
61     QStringListModel * pStickiesModel_;
62
63     QString defaultDirectory_;
64
65
66
67 };
68
69 #endif // STICKYDIALOG_H