#ifndef VOICEVOLUMEWATCHER_H
#define VOICEVOLUMEWATCHER_H

#include <QObject>
#include <QThread>

class voiceVolumeWatcher : public QThread
{
    Q_OBJECT
public:
    explicit voiceVolumeWatcher(QObject *parent = nullptr);
    ~voiceVolumeWatcher();
    void stopWatch();
    //void setIsRecoding(bool value);
    void run();
    int getCouldUse();

signals:
    void sigRecodeState(int couldUse);


private:
    bool m_loopwatch;
    //bool m_isRecoding;
    int m_coulduse;
    int m_failedCount;
};


#endif // VOICEVOLUMEWATCHER_H
