679fc61feb
stop, next file, previous file buttons along with the added feasures the buttons represent. i've also added png versions of all of the icons just in case the svg versions are not practical to use. i also fully built out a tray icon functionality so the application can now minimize to system tray. also updated the app logo to a new flat icon type sinewave look. then finally, i've added the restore button to the tray icon so it will restore the window back in front from the tray.
44 lines
615 B
C++
44 lines
615 B
C++
#ifndef AUD_FILE_H
|
|
#define AUD_FILE_H
|
|
|
|
#include <QBuffer>
|
|
#include <QFile>
|
|
#include <QObject>
|
|
#include <QString>
|
|
#include <QTimer>
|
|
#include <QDebug>
|
|
|
|
class AudFile : public QFile
|
|
{
|
|
Q_OBJECT
|
|
|
|
private:
|
|
|
|
qint64 buffRate;
|
|
qint64 offset;
|
|
bool init;
|
|
|
|
private slots:
|
|
|
|
void delayFinished();
|
|
|
|
public:
|
|
|
|
AudFile(QObject *parent = 0);
|
|
|
|
bool openFile(const QString &path);
|
|
bool seek(qint64 off);
|
|
qint64 getOffset();
|
|
qint64 getDuration();
|
|
|
|
~AudFile();
|
|
|
|
signals:
|
|
|
|
void posChanged(qint64 off);
|
|
void endOfPlayback();
|
|
void duration(qint64 msec);
|
|
};
|
|
|
|
#endif // AUD_FILE_H
|