mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-04 15:04:38 -04:00
Implement MainCore in MainWindow step3: device sets
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include "loggerwithfile.h"
|
||||
#include "dsp/dsptypes.h"
|
||||
#include "feature/featureset.h"
|
||||
#include "device/deviceset.h"
|
||||
|
||||
#include "maincore.h"
|
||||
|
||||
@@ -123,3 +124,16 @@ void MainCore::removeLastFeatureSet()
|
||||
m_featureSets.pop_back();
|
||||
}
|
||||
}
|
||||
|
||||
void MainCore::appendDeviceSet(int deviceType)
|
||||
{
|
||||
int newIndex = m_deviceSets.size();
|
||||
m_deviceSets.push_back(new DeviceSet(newIndex, deviceType));
|
||||
}
|
||||
|
||||
void MainCore::removeLastDeviceSet()
|
||||
{
|
||||
if (m_deviceSets.size() != 0) {
|
||||
m_deviceSets.pop_back();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user