1
0
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:
f4exb
2020-10-11 08:27:58 +02:00
parent 96329326b4
commit febbb4fa0f
6 changed files with 85 additions and 36 deletions
+14
View File
@@ -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();
}
}