添加网口接口协议相关
This commit is contained in:
19
mainwindow.h
19
mainwindow.h
@@ -11,6 +11,7 @@
|
||||
|
||||
#include "RecordQuery.h"
|
||||
#include "LoggerWidget.h"
|
||||
#include "msg.h"
|
||||
|
||||
#include "spdlog/spdlog.h"
|
||||
|
||||
@@ -21,14 +22,6 @@ class MainWindow;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
|
||||
enum class CallStatus{
|
||||
Idle,
|
||||
Calling,
|
||||
Incoming,
|
||||
Talking,
|
||||
};
|
||||
|
||||
|
||||
class QPolarChart;
|
||||
class QChart;
|
||||
class QBarCategoryAxis;
|
||||
@@ -83,13 +76,21 @@ private:
|
||||
bool acceptCall();
|
||||
bool rejectCall();
|
||||
bool sendShortMessage(const QString &number,const QString& message);
|
||||
void processCommand(const QByteArray& cmd);
|
||||
void processTianTongVoiceCmd(const QByteArray& cmd);
|
||||
void processUhfVoiceCmd(const QByteArray& cmd);
|
||||
void processTianTongShortMessageCmd(const QByteArray& cmd);
|
||||
void processUhfShortMessageCmd(const QByteArray& cmd);
|
||||
void processBeiDouShortMessageCmd(const QByteArray& cmd);
|
||||
void processStatusReportCmd(const QByteArray& cmd);
|
||||
void processSearchSatelliteStatusReport(const QByteArray& cmd);
|
||||
|
||||
void StartupTalkingTimer();
|
||||
void ShutdownTalkingTimer();
|
||||
void test();
|
||||
private:
|
||||
Ui::MainWindow *ui;
|
||||
CallStatus m_callStatus = CallStatus::Idle;
|
||||
CallStatus m_callStatus = CallStatus::kIdle;
|
||||
std::vector<Record> m_msgList;
|
||||
int m_unReadMsgCount = 0;
|
||||
int m_callDuration = 0;
|
||||
|
||||
Reference in New Issue
Block a user