summaryrefslogtreecommitdiffstats
path: root/src/gui/dtmfform.h
blob: 82ad117e6cb94349e9e1c85a0125f329f6b997da (plain)
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
#ifndef DTMFFORM_H
#define DTMFFORM_H

#include <QDialog>
#include <QKeyEvent>
#include <QTimer>
#include "ui_dtmfform.h"

class DtmfForm : public QDialog, private Ui::DtmfForm
{
    Q_OBJECT

public:
    explicit DtmfForm(QWidget *parent = 0);
    ~DtmfForm();

public slots:
    void dtmf1();
    void dtmf2();
    void dtmf3();
    void dtmf4();
    void dtmf5();
    void dtmf6();
    void dtmf7();
    void dtmf8();
    void dtmf9();
    void dtmf0();
    void dtmfStar();
    void dtmfPound();
    void dtmfA();
    void dtmfB();
    void dtmfC();
    void dtmfD();

	void insertNextKey();

protected:
    void keyPressEvent(QKeyEvent* e);
signals:
    void digits(const QString&);
private:
	QTimer m_insertTimer;
	QString m_remainingKeys;
};

#endif // DTMFFORM_H