代码拉取完成,页面将自动刷新
#ifndef VOLUMECONTROL_H
#define VOLUMECONTROL_H
#include <QWidget>
#include <QDebug>
#include <QMediaPlayer>
#include "datadictionary.h"
//#include "spkmute.h"
#include <QProcess>
#include <QThread>
#include <QTcpSocket>
#include <QMediaPlayer>
namespace Ui {
class VolumeControl;
}
typedef enum {
MediaPlay = 1,
MediaStop,
}MediaState_t;
class VolumeControl : public QWidget
{
Q_OBJECT
public:
static VolumeControl *GetInstance();
~VolumeControl();
void Show(QWidget *parent,int ax = 0, int ay = 0);
void SetVolumeValue(int V);
void SetMedia(QString M);
void Pause();
void Play();
void ButtonLock();
void ButtonUnLock();
MediaState_t GetState();
bool GetMuteState();
protected:
void showEvent(QShowEvent *event);
signals:
void VolumeValueChange(int V);
void MediaChange(QString M);
void Clicked();
void MuteClicked(bool);
private slots:
void on_VolumePB_clicked();
void on_VolumeMute_clicked();
void SaveVolume();
void connected();
void readyRead();
void error(QAbstractSocket::SocketError e);
//void MisDataChangeProcess(MisDataIndex_t Index);
void on_VolumeStrip_valueChanged(int value);
private:
void MuteShow();
protected:
private:
Ui::VolumeControl *ui;
explicit VolumeControl(QWidget *parent = nullptr);
DataDictionary *m_DataDictionary;
QMediaPlayer *m_MediaPlayer;
//QTcpSocket* m_pTcpSocket;
int state;
bool MuteState;
bool ShowState;
};
#endif // VOLUMECONTROL_H
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。