| 
									
										
										
										
											2015-09-04 04:10:38 +02:00
										 |  |  | #ifndef INCLUDE_FCDPROPLUGIN_H
 | 
					
						
							|  |  |  | #define INCLUDE_FCDPROPLUGIN_H
 | 
					
						
							| 
									
										
										
										
											2015-09-03 03:57:54 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | #include <QObject>
 | 
					
						
							|  |  |  | #include "plugin/plugininterface.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-09-30 05:38:58 +02:00
										 |  |  | #define FCDPRO_DEVICE_TYPE_ID "sdrangel.samplesource.fcdpro"
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-17 19:26:23 +02:00
										 |  |  | class PluginAPI; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-09-04 04:10:38 +02:00
										 |  |  | class FCDProPlugin : public QObject, public PluginInterface { | 
					
						
							| 
									
										
										
										
											2015-09-03 03:57:54 +02:00
										 |  |  | 	Q_OBJECT | 
					
						
							|  |  |  | 	Q_INTERFACES(PluginInterface) | 
					
						
							| 
									
										
										
										
											2015-09-30 05:38:58 +02:00
										 |  |  | 	Q_PLUGIN_METADATA(IID FCDPRO_DEVICE_TYPE_ID) | 
					
						
							| 
									
										
										
										
											2015-09-03 03:57:54 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | public: | 
					
						
							| 
									
										
										
										
											2015-09-04 04:10:38 +02:00
										 |  |  | 	explicit FCDProPlugin(QObject* parent = NULL); | 
					
						
							| 
									
										
										
										
											2015-09-03 03:57:54 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	const PluginDescriptor& getPluginDescriptor() const; | 
					
						
							|  |  |  | 	void initPlugin(PluginAPI* pluginAPI); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-10-13 22:23:43 +02:00
										 |  |  | 	virtual SamplingDevices enumSampleSources(); | 
					
						
							| 
									
										
										
										
											2017-10-30 00:02:28 +01:00
										 |  |  | 	virtual PluginInstanceGUI* createSampleSourcePluginInstanceGUI( | 
					
						
							|  |  |  | 	        const QString& sourceId, | 
					
						
							|  |  |  | 	        QWidget **widget, | 
					
						
							|  |  |  | 	        DeviceUISet *deviceUISet); | 
					
						
							| 
									
										
										
										
											2017-09-14 13:34:32 +02:00
										 |  |  | 	virtual DeviceSampleSource* createSampleSourcePluginInstanceInput(const QString& sourceId, DeviceSourceAPI *deviceAPI); | 
					
						
							| 
									
										
										
										
											2015-09-03 03:57:54 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | private: | 
					
						
							|  |  |  | 	static const PluginDescriptor m_pluginDescriptor; | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif // INCLUDE_FCDPLUGIN_H
 |