Interim Update
[pierogi] / forms / pirmainform.h
1 #ifndef PIRMAINFORM_H
2 #define PIRMAINFORM_H
3
4 #include <QWidget>
5
6 class MainWindow;
7 class PIRKeysetManager;
8
9 namespace Ui {
10 class PIRMainForm;
11 }
12
13 class PIRMainForm : public QWidget
14 {
15   Q_OBJECT
16
17 public:
18 //  explicit PIRMainForm(QWidget *parent = 0);
19   PIRMainForm(MainWindow *mw);
20   ~PIRMainForm();
21
22   void enableButtons(
23     const PIRKeysetManager *keyset,
24     unsigned int id);
25
26 signals:
27   void powerEnabled(bool);
28   void volumeUpEnabled(bool);
29   void volumeDownEnabled(bool);
30   void channelUpEnabled(bool);
31   void channelDownEnabled(bool);
32   void muteEnabled(bool);
33
34   void keysetMakeChanged(QString);
35   void keysetNameChanged(QString);
36
37 private slots:
38   void on_powerButton_pressed();
39   void on_powerButton_released();
40   void on_mainChannelUpButton_pressed();
41   void on_mainChannelUpButton_released();
42   void on_mainChannelDownButton_pressed();
43   void on_mainChannelDownButton_released();
44   void on_mainVolumeUp_pressed();
45   void on_mainVolumeUp_released();
46   void on_mainVolumeDownButton_pressed();
47   void on_mainVolumeDownButton_released();
48   void on_muteButton_pressed();
49   void on_muteButton_released();
50
51 private:
52   Ui::PIRMainForm *ui;
53
54   MainWindow *mainWindow;
55 };
56
57 #endif // PIRMAINFORM_H