1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-04-02 01:28:56 -04:00

Removed main window friendness from device source and sink APIs

This commit is contained in:
f4exb 2017-10-24 17:07:11 +02:00
parent 933542e289
commit f4e214a235
2 changed files with 12 additions and 13 deletions

View File

@ -41,6 +41,12 @@ class SDRANGEL_API DeviceSinkAPI : public QObject {
Q_OBJECT
public:
DeviceSinkAPI(int deviceTabIndex,
DSPDeviceSinkEngine *deviceEngine,
GLSpectrum *glSpectrum,
ChannelWindow *channelWindow);
~DeviceSinkAPI();
// Device engine stuff
void addSpectrumSink(BasebandSampleSink* sink); //!< Add the spectrum sample sink to device engine (spectrum vis)
void removeSpectrumSink(BasebandSampleSink* sink); //!< Remove the spectrum sample sink from device engine (spectrum vis)
@ -129,12 +135,6 @@ protected:
typedef QList<ChannelInstanceRegistration> ChannelInstanceRegistrations;
DeviceSinkAPI(int deviceTabIndex,
DSPDeviceSinkEngine *deviceEngine,
GLSpectrum *glSpectrum,
ChannelWindow *channelWindow);
~DeviceSinkAPI();
void renameChannelInstances();
int m_deviceTabIndex;
@ -158,7 +158,6 @@ protected:
bool m_isBuddyLeader;
const QTimer& m_masterTimer;
friend class MainWindow;
friend class DeviceSourceAPI;
};

View File

@ -43,6 +43,12 @@ class SDRANGEL_API DeviceSourceAPI : public QObject {
Q_OBJECT
public:
DeviceSourceAPI(int deviceTabIndex,
DSPDeviceSourceEngine *deviceSourceEngine,
GLSpectrum *glSpectrum,
ChannelWindow *channelWindow);
~DeviceSourceAPI();
// Device engine stuff
void addSink(BasebandSampleSink* sink); //!< Add a sample sink to device engine
void removeSink(BasebandSampleSink* sink); //!< Remove a sample sink from device engine
@ -130,11 +136,6 @@ protected:
typedef QList<ChannelInstanceRegistration> ChannelInstanceRegistrations;
DeviceSourceAPI(int deviceTabIndex,
DSPDeviceSourceEngine *deviceSourceEngine,
GLSpectrum *glSpectrum,
ChannelWindow *channelWindow);
~DeviceSourceAPI();
void renameChannelInstances();
@ -159,7 +160,6 @@ protected:
bool m_isBuddyLeader;
const QTimer& m_masterTimer;
friend class MainWindow;
friend class DeviceSinkAPI;
};