-
Notifications
You must be signed in to change notification settings - Fork 0
/
ejectdialog.h
48 lines (38 loc) · 922 Bytes
/
ejectdialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef EJECTDIALOG_H
#define EJECTDIALOG_H
#include <QDialog>
#include "jconfig.h"
#define EJECT_DEF_MIN 100
#define EJECT_DEF_MAX 15000
#define EJECT_DEF_LEN 5
#define EJECT_DEF_CASSETTES QApplication::applicationDirPath() + "/cassettes.conf"
namespace Ui {
class EjectDialog;
}
class EjectDialog : public QDialog
{
Q_OBJECT
public:
explicit EjectDialog(const JConfig &conf, QWidget *parent = 0);
~EjectDialog();
signals:
void eject(int amount);
private:
Ui::EjectDialog *ui;
int m_min, m_max, m_len, m_balance;
QString m_amount;
QString m_helperFile;
QStringList m_helperParams;
JConfig m_helperCassettes;
QProcess *m_helper;
void amountChanged();
private slots:
void open(int balance);
void on_kpCancelPb_clicked();
void on_kpBsPb_clicked();
void num();
void refresh(int amount = 0);
void on_ejectPb_clicked();
void helperRead();
};
#endif // EJECTDIALOG_H