mirror of
https://gitee.com/drabel/LibQQt.git
synced 2025-01-04 10:18:44 +08:00
32 lines
580 B
C++
Executable File
32 lines
580 B
C++
Executable File
#ifndef QQTPLAYER_H
|
|
#define QQTPLAYER_H
|
|
|
|
#include <QProcess>
|
|
|
|
class QQTPlayer : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit QQTPlayer(QObject *parent = 0);
|
|
|
|
void play(QString filename, int wid = 0, int width = 20, int height = 20);
|
|
void pause();
|
|
void stop();
|
|
double timeLength();
|
|
double timePos();
|
|
int percent();
|
|
void seekPos(double second = 0);
|
|
void setVolume(int v = 100);
|
|
void mute(bool m = false);
|
|
void setRect(int x, int y, int width, int height);
|
|
|
|
signals:
|
|
|
|
public slots:
|
|
|
|
private:
|
|
QProcess* app;
|
|
};
|
|
|
|
#endif // QQTPLAYER_H
|