Updated czech translation
[KFingerManager.git] / src / FMEnroll.h
blob1662efd62d948a832c54f5b556d7070627c949c3
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"
17 #include "EnrollStatus.h"
18 #include "SensorAnimLabel.h"
20 class FMEnroll : public KDialog {
22 Q_OBJECT
24 private slots:
25 void enrollStatus(QString result, bool done);
26 void timeout();
27 private:
28 QLabel *statusLabel;
29 QLabel *actualStatus;
30 QWidget *mainPanel;
31 EnrollStatus **stages;
32 SensorAnimLabel *animLabel;
33 QHBoxLayout *statusLayout;
34 QHBoxLayout *stagesLayout;
35 QVBoxLayout *mainLayout;
36 int finger_;
37 DeviceModel device_;
38 FMDbusConn *dbc;
39 int enrollStages;
40 int actualStage;
41 QString scanType;
42 QString login_;
43 QTimer *timer;
45 void retranslate();
46 void initComponents(int enrollStages);
47 void setStatusMessage(QString result);
48 void getIface();
49 public:
50 FMEnroll(DeviceModel device, QString login, int finger = 6, QWidget *parent = 0);
51 ~FMEnroll();
55 #endif