1 /**************************************************************************
4 Copyright (C) 2010 Heli Hyvättinen
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
19 **************************************************************************/
23 #ifndef KITCHENALERTMAINWINDOW_H
24 #define KITCHENALERTMAINWINDOW_H
26 #include <QMainWindow>
28 #include "currentalertstablemodel.h"
29 #include <QItemSelection>
33 class KitchenAlertMainWindow;
36 class KitchenAlertMainWindow : public QMainWindow
44 explicit KitchenAlertMainWindow(QWidget *parent = 0);
45 ~KitchenAlertMainWindow();
49 void openTimerSequence();
50 void newTimerSequence();
52 void updateTime(int seconds);
53 void alert(QModelIndex indexOfAlerted);
54 void timerSelected(QItemSelection,QItemSelection);
60 void changeEvent(QEvent *e);
63 Ui::KitchenAlertMainWindow *ui;
65 QList <Timer *> currentTimers_;
67 CurrentAlertsTableModel model_;
69 QModelIndex selectedRow();
72 #endif // KITCHENALERTMAINWINDOW_H