You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
1.7 KiB
C
78 lines
1.7 KiB
C
|
1 year ago
|
#ifndef MAINWINDOW_H
|
||
|
|
#define MAINWINDOW_H
|
||
|
|
|
||
|
|
#include <QMainWindow>
|
||
|
|
#include <QLibrary>
|
||
|
|
#include "Global.h"
|
||
|
|
|
||
|
|
QT_BEGIN_NAMESPACE
|
||
|
|
namespace Ui { class MainWindow; }
|
||
|
|
QT_END_NAMESPACE
|
||
|
|
|
||
|
|
class MainWindow : public QMainWindow
|
||
|
|
{
|
||
|
|
Q_OBJECT
|
||
|
|
|
||
|
|
public:
|
||
|
|
MainWindow(QWidget *parent = nullptr);
|
||
|
|
~MainWindow();
|
||
|
|
|
||
|
|
private slots:
|
||
|
|
void on_pushButtonCOn_clicked();
|
||
|
|
|
||
|
|
void on_pushButtonStartPlay_clicked();
|
||
|
|
|
||
|
|
void on_pushButtonDisCon_clicked();
|
||
|
|
|
||
|
|
void on_pushButtonStopPlay_clicked();
|
||
|
|
|
||
|
|
void on_pushButtonCapture_clicked();
|
||
|
|
|
||
|
|
void on_pushButtonstartRecord_clicked();
|
||
|
|
|
||
|
|
void on_pushButtonstopRecord_clicked();
|
||
|
|
|
||
|
|
void on_pushButton_8_clicked();
|
||
|
|
|
||
|
|
void on_pushButtonSetTime_clicked();
|
||
|
|
|
||
|
|
void on_pushButtonClear_clicked();
|
||
|
|
|
||
|
|
private:
|
||
|
|
Ui::MainWindow *ui;
|
||
|
|
|
||
|
|
private:
|
||
|
|
void InitStr();
|
||
|
|
void InitFunPtr();
|
||
|
|
void InitAddChar();
|
||
|
|
int GetFunPtr();
|
||
|
|
int OpenLib();
|
||
|
|
|
||
|
|
int QStringToChar(char * dest,QString & Qsource, int iLen, int isChange =0);
|
||
|
|
|
||
|
|
void showInfo(QString qstr);
|
||
|
|
|
||
|
|
int isDigitStr(QString src);
|
||
|
|
private:
|
||
|
|
HvOpen_Fun m_HvOpenFun;
|
||
|
|
HvClose_Fun m_HvCloseFun;
|
||
|
|
HvIsConnected_Fun m_HvIsConnectedFun;
|
||
|
|
HVCapture_Fun m_HVCaptureFun;
|
||
|
|
HVCapture2_Fun m_HVCapture2Fun;
|
||
|
|
|
||
|
|
HVSetOption_Fun m_HVSetOptionFun;
|
||
|
|
HVGetOption_Fun m_HVGetOptionFun;
|
||
|
|
HVAddChar_Fun m_HVAddCharFun;
|
||
|
|
HVClearChar_Fun m_HVClearCharFun;
|
||
|
|
HVGetErrorStr_Fun m_HVGetErrorStrFun;
|
||
|
|
HVStartRecord_Fun m_HVStartRecordFun;
|
||
|
|
HVStopRecord_Fun m_HVStopRecordFun;
|
||
|
|
HVStartPlay_Fun m_HVStartPlayFun;
|
||
|
|
HVStopPlay_Fun m_HVStopPlayFun;
|
||
|
|
|
||
|
|
private:
|
||
|
|
HV_HANDLE m_HvHdl;
|
||
|
|
QLibrary m_Lib;
|
||
|
|
};
|
||
|
|
#endif // MAINWINDOW_H
|