diff --git a/sdrbase/resources/webapi/doc/html2/index.html b/sdrbase/resources/webapi/doc/html2/index.html
index 3f7829eb1..970f5437a 100644
--- a/sdrbase/resources/webapi/doc/html2/index.html
+++ b/sdrbase/resources/webapi/doc/html2/index.html
@@ -3181,6 +3181,10 @@ margin-bottom: 20px;
"play" : {
"type" : "integer",
"description" : "Play or Pause stream\n * 0 - Pause\n * 1 - Play\n"
+ },
+ "seekMillis" : {
+ "type" : "integer",
+ "description" : "Move play cursor to this thousands of total time from the start"
}
},
"description" : "FileSource"
@@ -33184,7 +33188,7 @@ except ApiException as e:
- Generated 2020-03-10T15:10:25.920+01:00
+ Generated 2020-03-10T15:52:04.190+01:00
diff --git a/sdrbase/resources/webapi/doc/swagger/include/FileSource.yaml b/sdrbase/resources/webapi/doc/swagger/include/FileSource.yaml
index ea78881de..7bde851de 100644
--- a/sdrbase/resources/webapi/doc/swagger/include/FileSource.yaml
+++ b/sdrbase/resources/webapi/doc/swagger/include/FileSource.yaml
@@ -69,3 +69,6 @@ FileSourceActions:
Play or Pause stream
* 0 - Pause
* 1 - Play
+ seekMillis:
+ description: Move play cursor to this thousands of total time from the start
+ type: integer
diff --git a/swagger/sdrangel/code/html2/index.html b/swagger/sdrangel/code/html2/index.html
index 3f7829eb1..970f5437a 100644
--- a/swagger/sdrangel/code/html2/index.html
+++ b/swagger/sdrangel/code/html2/index.html
@@ -3181,6 +3181,10 @@ margin-bottom: 20px;
"play" : {
"type" : "integer",
"description" : "Play or Pause stream\n * 0 - Pause\n * 1 - Play\n"
+ },
+ "seekMillis" : {
+ "type" : "integer",
+ "description" : "Move play cursor to this thousands of total time from the start"
}
},
"description" : "FileSource"
@@ -33184,7 +33188,7 @@ except ApiException as e:
- Generated 2020-03-10T15:10:25.920+01:00
+ Generated 2020-03-10T15:52:04.190+01:00
diff --git a/swagger/sdrangel/code/qt5/client/SWGFileSourceActions.cpp b/swagger/sdrangel/code/qt5/client/SWGFileSourceActions.cpp
index f45336e22..2d882fc14 100644
--- a/swagger/sdrangel/code/qt5/client/SWGFileSourceActions.cpp
+++ b/swagger/sdrangel/code/qt5/client/SWGFileSourceActions.cpp
@@ -30,6 +30,8 @@ SWGFileSourceActions::SWGFileSourceActions(QString* json) {
SWGFileSourceActions::SWGFileSourceActions() {
play = 0;
m_play_isSet = false;
+ seek_millis = 0;
+ m_seek_millis_isSet = false;
}
SWGFileSourceActions::~SWGFileSourceActions() {
@@ -40,11 +42,14 @@ void
SWGFileSourceActions::init() {
play = 0;
m_play_isSet = false;
+ seek_millis = 0;
+ m_seek_millis_isSet = false;
}
void
SWGFileSourceActions::cleanup() {
+
}
SWGFileSourceActions*
@@ -60,6 +65,8 @@ void
SWGFileSourceActions::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&play, pJson["play"], "qint32", "");
+ ::SWGSDRangel::setValue(&seek_millis, pJson["seekMillis"], "qint32", "");
+
}
QString
@@ -79,6 +86,9 @@ SWGFileSourceActions::asJsonObject() {
if(m_play_isSet){
obj->insert("play", QJsonValue(play));
}
+ if(m_seek_millis_isSet){
+ obj->insert("seekMillis", QJsonValue(seek_millis));
+ }
return obj;
}
@@ -93,6 +103,16 @@ SWGFileSourceActions::setPlay(qint32 play) {
this->m_play_isSet = true;
}
+qint32
+SWGFileSourceActions::getSeekMillis() {
+ return seek_millis;
+}
+void
+SWGFileSourceActions::setSeekMillis(qint32 seek_millis) {
+ this->seek_millis = seek_millis;
+ this->m_seek_millis_isSet = true;
+}
+
bool
SWGFileSourceActions::isSet(){
@@ -101,6 +121,9 @@ SWGFileSourceActions::isSet(){
if(m_play_isSet){
isObjectUpdated = true; break;
}
+ if(m_seek_millis_isSet){
+ isObjectUpdated = true; break;
+ }
}while(false);
return isObjectUpdated;
}
diff --git a/swagger/sdrangel/code/qt5/client/SWGFileSourceActions.h b/swagger/sdrangel/code/qt5/client/SWGFileSourceActions.h
index 24afc621a..c73af7e58 100644
--- a/swagger/sdrangel/code/qt5/client/SWGFileSourceActions.h
+++ b/swagger/sdrangel/code/qt5/client/SWGFileSourceActions.h
@@ -44,6 +44,9 @@ public:
qint32 getPlay();
void setPlay(qint32 play);
+ qint32 getSeekMillis();
+ void setSeekMillis(qint32 seek_millis);
+
virtual bool isSet() override;
@@ -51,6 +54,9 @@ private:
qint32 play;
bool m_play_isSet;
+ qint32 seek_millis;
+ bool m_seek_millis_isSet;
+
};
}