forked from gongjianbo/MyTestCode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVoicePrintSource.h
54 lines (48 loc) · 1.45 KB
/
VoicePrintSource.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
#pragma once
#include "LocalNode.h"
//接口调用--服务端部分
class VoicePrintSource : public LocalNode
{
Q_OBJECT
public:
explicit VoicePrintSource(QObject *parent = nullptr);
//【】特征提取
//新增文件
void appendFile(const QStringList &filelist);
//修改文件
void editFile(const QString &filepath);
//移除文件
void removeFile(const QStringList &filelist);
//请求发送进度过来
void requestExtractProgress();
//【】比对
//开始比对
void compareRun(const QStringList &materials, const QStringList &samples, int algorithm);
//【】聚类
//开始聚类
void clusterRun(const QStringList &filelist, int taskId);
//【】反馈给客户端的信息
//特征提取进度
void updateExtractProgress(int extract, int unextract);
//比对进度
void updateCompareProgress(int progress);
//比对结束
void compareResult(bool result);
//聚类进度
void updateClusterProgress(int progress);
//聚类结束
void clusterResult(bool result);
signals:
//发送失败,网络异常等,此时所有任务标记为失败
void errorChanged();
protected slots:
//
//void init();
//void free();
//socket连接成功
//void netConnected() override;
//socket断开连接
void netDisconnected() override;
//数据接收
void recvData(quint8 major, quint8 minor, const QByteArray &data) override;
};