almost ready to merge into master
[avrdudequi:avrdudequi.git] / fusebyte.h
1 #ifndef FUSEBYTE_H
2 #define FUSEBYTE_H
3
4 #include <QObject>
5 #include <QWidget>
6 #include <QComboBox>
7 #include "fusewidget.h"
8
9
10 class FuseByte : public QObject
11 {
12     Q_OBJECT
13     QWidget *mcuWidget;
14     QComboBox *cBoxLowFuse;
15     QComboBox *cBoxHighFuse;
16     QComboBox *cBoxExtendedFuse;
17
18     uchar defaultLowByte;
19     uchar defaultHighByte;
20     uchar defaultExtendedByte;
21
22     uchar cBoxLFuseMask;
23     uchar cBoxHFuseMask;
24     uchar cBoxEFuseMask;
25
26     FuseWidget *lowFuseWidget;
27     FuseWidget *highFuseWidget;
28     FuseWidget *extendedFuseWidget;
29
30
31 public:
32     FuseByte(QObject *parent = 0);
33     ~FuseByte();
34     void widgetInit(QWidget *w);
35     void setFuseValue(QMap<QString, QString> &fuses);
36     QList<QMap<QString, QString> > getAllFuses();
37
38 private slots:
39     void resetLowFuse();
40     void resetHighFuse();
41     void resetExtendedFuse();
42
43 };
44
45 #endif // FUSEBYTE_H