mycallback.h 534 Bytes
Newer Older
1 2 3 4
#ifndef MYCALLBACK_H
#define MYCALLBACK_H

#include <sbs2callback.h>
5
#include <sbs2datahandler.h>
6 7 8 9

class MyCallback : public Sbs2Callback
{
    Q_OBJECT
10 11 12
private:
    int lowFreq;
    int highFreq;
13 14
    int lowFreq2nd;
    int highFreq2nd;
15 16 17 18

    QVector<double>* maxValues;
    QVector<double>* minValues;

19 20
    void initFilter();
    int filterReady;
21

22 23 24 25 26
public:
    explicit MyCallback(QObject *parent = 0);
    void getData(Sbs2Packet *packet);

signals:
27
    void arousalValence(double arousal, double valence);
28 29
};
#endif // MYCALLBACK_H