mirror of
				https://github.com/f4exb/sdrangel.git
				synced 2025-10-31 04:50:29 -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" : { |     "play" : { | ||||||
|       "type" : "integer", |       "type" : "integer", | ||||||
|       "description" : "Play or Pause stream\n  * 0 - Pause\n  * 1 - Play\n" |       "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" |   "description" : "FileSource" | ||||||
| @ -33184,7 +33188,7 @@ except ApiException as e: | |||||||
|           </div> |           </div> | ||||||
|           <div id="generator"> |           <div id="generator"> | ||||||
|             <div class="content"> |             <div class="content"> | ||||||
|               Generated 2020-03-10T15:10:25.920+01:00 |               Generated 2020-03-10T15:52:04.190+01:00 | ||||||
|             </div> |             </div> | ||||||
|           </div> |           </div> | ||||||
|       </div> |       </div> | ||||||
|  | |||||||
| @ -69,3 +69,6 @@ FileSourceActions: | |||||||
|         Play or Pause stream |         Play or Pause stream | ||||||
|           * 0 - Pause |           * 0 - Pause | ||||||
|           * 1 - Play |           * 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" : { |     "play" : { | ||||||
|       "type" : "integer", |       "type" : "integer", | ||||||
|       "description" : "Play or Pause stream\n  * 0 - Pause\n  * 1 - Play\n" |       "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" |   "description" : "FileSource" | ||||||
| @ -33184,7 +33188,7 @@ except ApiException as e: | |||||||
|           </div> |           </div> | ||||||
|           <div id="generator"> |           <div id="generator"> | ||||||
|             <div class="content"> |             <div class="content"> | ||||||
|               Generated 2020-03-10T15:10:25.920+01:00 |               Generated 2020-03-10T15:52:04.190+01:00 | ||||||
|             </div> |             </div> | ||||||
|           </div> |           </div> | ||||||
|       </div> |       </div> | ||||||
|  | |||||||
| @ -30,6 +30,8 @@ SWGFileSourceActions::SWGFileSourceActions(QString* json) { | |||||||
| SWGFileSourceActions::SWGFileSourceActions() { | SWGFileSourceActions::SWGFileSourceActions() { | ||||||
|     play = 0; |     play = 0; | ||||||
|     m_play_isSet = false; |     m_play_isSet = false; | ||||||
|  |     seek_millis = 0; | ||||||
|  |     m_seek_millis_isSet = false; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| SWGFileSourceActions::~SWGFileSourceActions() { | SWGFileSourceActions::~SWGFileSourceActions() { | ||||||
| @ -40,11 +42,14 @@ void | |||||||
| SWGFileSourceActions::init() { | SWGFileSourceActions::init() { | ||||||
|     play = 0; |     play = 0; | ||||||
|     m_play_isSet = false; |     m_play_isSet = false; | ||||||
|  |     seek_millis = 0; | ||||||
|  |     m_seek_millis_isSet = false; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void | void | ||||||
| SWGFileSourceActions::cleanup() { | SWGFileSourceActions::cleanup() { | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| SWGFileSourceActions* | SWGFileSourceActions* | ||||||
| @ -60,6 +65,8 @@ void | |||||||
| SWGFileSourceActions::fromJsonObject(QJsonObject &pJson) { | SWGFileSourceActions::fromJsonObject(QJsonObject &pJson) { | ||||||
|     ::SWGSDRangel::setValue(&play, pJson["play"], "qint32", ""); |     ::SWGSDRangel::setValue(&play, pJson["play"], "qint32", ""); | ||||||
|      |      | ||||||
|  |     ::SWGSDRangel::setValue(&seek_millis, pJson["seekMillis"], "qint32", ""); | ||||||
|  |      | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| QString | QString | ||||||
| @ -79,6 +86,9 @@ SWGFileSourceActions::asJsonObject() { | |||||||
|     if(m_play_isSet){ |     if(m_play_isSet){ | ||||||
|         obj->insert("play", QJsonValue(play)); |         obj->insert("play", QJsonValue(play)); | ||||||
|     } |     } | ||||||
|  |     if(m_seek_millis_isSet){ | ||||||
|  |         obj->insert("seekMillis", QJsonValue(seek_millis)); | ||||||
|  |     } | ||||||
| 
 | 
 | ||||||
|     return obj; |     return obj; | ||||||
| } | } | ||||||
| @ -93,6 +103,16 @@ SWGFileSourceActions::setPlay(qint32 play) { | |||||||
|     this->m_play_isSet = true; |     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 | bool | ||||||
| SWGFileSourceActions::isSet(){ | SWGFileSourceActions::isSet(){ | ||||||
| @ -101,6 +121,9 @@ SWGFileSourceActions::isSet(){ | |||||||
|         if(m_play_isSet){ |         if(m_play_isSet){ | ||||||
|             isObjectUpdated = true; break; |             isObjectUpdated = true; break; | ||||||
|         } |         } | ||||||
|  |         if(m_seek_millis_isSet){ | ||||||
|  |             isObjectUpdated = true; break; | ||||||
|  |         } | ||||||
|     }while(false); |     }while(false); | ||||||
|     return isObjectUpdated; |     return isObjectUpdated; | ||||||
| } | } | ||||||
|  | |||||||
| @ -44,6 +44,9 @@ public: | |||||||
|     qint32 getPlay(); |     qint32 getPlay(); | ||||||
|     void setPlay(qint32 play); |     void setPlay(qint32 play); | ||||||
| 
 | 
 | ||||||
|  |     qint32 getSeekMillis(); | ||||||
|  |     void setSeekMillis(qint32 seek_millis); | ||||||
|  | 
 | ||||||
| 
 | 
 | ||||||
|     virtual bool isSet() override; |     virtual bool isSet() override; | ||||||
| 
 | 
 | ||||||
| @ -51,6 +54,9 @@ private: | |||||||
|     qint32 play; |     qint32 play; | ||||||
|     bool m_play_isSet; |     bool m_play_isSet; | ||||||
| 
 | 
 | ||||||
|  |     qint32 seek_millis; | ||||||
|  |     bool m_seek_millis_isSet; | ||||||
|  | 
 | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user