UI improvement, (added stretch).
[KFingerManager.git] / src / FMEnroll.h
blob48e4f8d7012afd5579365d56a4b4b4f1440a2777
1 #ifndef FMENROLL_H_
2 #define FMENROLL_H_
4 #include <QObject>
5 #include <QLabel>
6 #include <QWidget>
7 #include <QString>
8 #include <QCheckBox>
9 #include <QTimer>
10 #include <QVBoxLayout>
11 #include <QHBoxLayout>
12 #include <QDBusInterface>
13 #include <KDialog>
15 #include "FingerManagerDevicesModel.h"
16 #include "FMDbusConn.h"
18 class FMEnroll : public KDialog {
20 Q_OBJECT
22 private slots:
23 void enrollStatus(QString result, bool done);
24 void timeout();
25 private:
26 QLabel *statusLabel;
27 QLabel *actualStatus;
28 QWidget *mainPanel;
29 QCheckBox **stages;
30 QHBoxLayout *statusLayout;
31 QHBoxLayout *stagesLayout;
32 QVBoxLayout *mainLayout;
33 int finger_;
34 DeviceModel device_;
35 FMDbusConn *dbc;
36 int enrollStages;
37 int actualStage;
38 QString scanType;
39 QString login_;
40 QTimer *timer;
42 void retranslate();
43 void initComponents(int enrollStages);
44 void setStatusMessage(QString result);
45 void getIface();
46 public:
47 FMEnroll(DeviceModel device, QString login, int finger = 6, QWidget *parent = 0);
48 ~FMEnroll();
52 #endif