-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
callsigns.h
53 lines (42 loc) · 907 Bytes
/
callsigns.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
49
50
51
52
53
#ifndef CALLSIGNS_H
#define CALLSIGNS_H
#include <QDialog>
#include <QSqlDatabase>
#include <QSqlTableModel>
#include <QSqlRecord>
#include <QMessageBox>
#include <QComboBox>
#include "httpapi.h"
#include "addcallsign.h"
namespace Ui {
class Callsigns;
}
class Callsigns : public QDialog
{
Q_OBJECT
public:
explicit Callsigns(QSqlDatabase db, HttpApi *api, QWidget *parent = nullptr);
~Callsigns();
private:
Ui::Callsigns *ui;
QSqlTableModel *CallsignsModel;
QSqlDatabase db;
HttpApi *api;
Addcallsign *add_cs;
void init();
void updateTable();
public slots:
void onCallsignsUpdated();
private slots:
void onAddPressed();
void onRemovePressed();
void onSavePressed();
void onCancelPressed();
void requestQsosu();
void addCallsigng();
void on_checkCallsignBtn_clicked();
void callsignStatus(int status);
signals:
void updated();
};
#endif // CALLSIGNS_H