File: sndplayer.h

package info (click to toggle)
qabcs 1.0.2-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 44,724 kB
  • sloc: cpp: 2,226; sh: 2,001; xml: 25; makefile: 5
file content (26 lines) | stat: -rw-r--r-- 403 bytes parent folder | download | duplicates (3)
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
#ifndef SNDPLAYER_H
#define SNDPLAYER_H

#include <QThread>
#include <QMediaPlayer>

class SndPlayer : public QThread
{
    Q_OBJECT

public:
    SndPlayer(QObject *parent, const QString &file);
    ~SndPlayer();

protected slots:
    void open();
    void close();
    void mediaStatusChanged(QMediaPlayer::MediaStatus);

private:
    QString fileName;
    QMediaPlayer *mp;

};

#endif // SNDPLAYER_H