1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-01 13:47:01 -04:00

File source plugin: added seek bar to move the current pointer in the file

This commit is contained in:
f4exb
2016-02-25 14:07:39 +01:00
parent a8fc503366
commit 5ecf7ea00c
6 changed files with 77 additions and 31 deletions
@@ -114,6 +114,26 @@ public:
{ }
};
class MsgConfigureFileSourceSeek : public Message {
MESSAGE_CLASS_DECLARATION
public:
int getPercentage() const { return m_seekPercentage; }
static MsgConfigureFileSourceSeek* create(int seekPercentage)
{
return new MsgConfigureFileSourceSeek(seekPercentage);
}
protected:
int m_seekPercentage; //!< percentage of seek position from the beginning 0..100
MsgConfigureFileSourceSeek(int seekPercentage) :
Message(),
m_seekPercentage(seekPercentage)
{ }
};
class MsgReportFileSourceAcquisition : public Message {
MESSAGE_CLASS_DECLARATION
@@ -217,6 +237,7 @@ private:
const QTimer& m_masterTimer;
void openFileStream();
void seekFileStream(int seekPercentage);
};
#endif // INCLUDE_FILESOURCEINPUT_H