Add bugtracker to control file
[magread] / magread.h
1 /*
2     This file is part of MagRead.
3
4     MagRead 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     MagRead 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 MagRead.  If not, see <http://www.gnu.org/licenses/>.
16     
17     Written by Jeffrey Malone <ieatlint@tehinterweb.com>
18     http://blog.tehinterweb.com
19 */
20 #ifndef MAGREAD_H
21 #define MAGREAD_H
22
23 #include <QtGui/QMainWindow>
24 #include <QGridLayout>
25 #include <QWidget>
26 #include <QLabel>
27 #include <QPushButton>
28 #include <QDate>
29 #include <QCheckBox>
30 #include <QScrollArea>
31
32 #include <QMetaType>
33
34 #include <QMaemo5InformationBox>
35
36 #include "carddetect.h"
37 #include "audioinput.h"
38 #include "magcard.h"
39
40
41 class MagRead : public QMainWindow {
42         Q_OBJECT
43
44         public:
45                 MagRead( QWidget *parent = 0 );
46         
47         private:
48                 MagCard card;
49                 CardDetect cardDetect;
50                 AudioInput audioInput;
51                 bool captureAudio;
52                 bool partialRead;
53                 bool onMainPage;
54
55                 void mainPage();
56                 void creditPage();
57                 void aamvaPage();
58                 void miscPage( bool partial = false );
59
60         private slots:
61                 void cardRead( const MagCard _card );
62                 void maemoNotice( QString msg, int msec );
63                 void audioInputError( const QString msg );
64                 void toggleRead();
65                 void togglePartialRead( bool _partialRead );
66 };
67
68 #endif // MAGREAD_H