mirror of
				https://github.com/f4exb/sdrangel.git
				synced 2025-10-26 02:20:26 -04:00 
			
		
		
		
	REST API device and channel actions: FileSource: added seek millis - generated code
This commit is contained in:
		
							parent
							
								
									4020f66315
								
							
						
					
					
						commit
						417b48d115
					
				| @ -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: | ||||
|           </div> | ||||
|           <div id="generator"> | ||||
|             <div class="content"> | ||||
|               Generated 2020-03-10T15:10:25.920+01:00 | ||||
|               Generated 2020-03-10T15:52:04.190+01:00 | ||||
|             </div> | ||||
|           </div> | ||||
|       </div> | ||||
|  | ||||
| @ -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 | ||||
|  | ||||
| @ -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: | ||||
|           </div> | ||||
|           <div id="generator"> | ||||
|             <div class="content"> | ||||
|               Generated 2020-03-10T15:10:25.920+01:00 | ||||
|               Generated 2020-03-10T15:52:04.190+01:00 | ||||
|             </div> | ||||
|           </div> | ||||
|       </div> | ||||
|  | ||||
| @ -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; | ||||
| } | ||||
|  | ||||
| @ -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; | ||||
| 
 | ||||
| }; | ||||
| 
 | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user