20 #ifndef SDRSRV_MAINCORE_H_ 21 #define SDRSRV_MAINCORE_H_ 61 void addSourceDevice();
63 void removeLastDevice();
64 void changeSampleSource(
int deviceSetIndex,
int selectedDeviceIndex);
65 void changeSampleSink(
int deviceSetIndex,
int selectedDeviceIndex);
66 void addChannel(
int deviceSetIndex,
int selectedChannelIndex);
67 void deleteChannel(
int deviceSetIndex,
int channelIndex);
94 m_deviceSetIndex(deviceSetIndex)
119 m_deviceSetIndex(deviceSetIndex),
120 m_newPreset(newPreset)
175 m_direction(direction)
204 return new MsgSetDevice(deviceSetIndex, deviceIndex, deviceType);
214 m_deviceSetIndex(deviceSetIndex),
215 m_deviceIndex(deviceIndex),
216 m_deviceType(deviceType)
226 bool isTx()
const {
return m_tx; }
230 return new MsgAddChannel(deviceSetIndex, channelRegistrationIndex, tx);
240 m_deviceSetIndex(deviceSetIndex),
241 m_channelRegistrationIndex(channelRegistrationIndex),
252 bool isTx()
const {
return m_tx; }
266 m_deviceSetIndex(deviceSetIndex),
267 m_channelIndex(channelIndex),
289 void loadPresetSettings(
const Preset* preset,
int tabIndex);
290 void savePresetSettings(
Preset* preset,
int tabIndex);
291 void setLoggingOptions();
293 bool handleMessage(
const Message& cmd);
296 void handleMessages();
static MsgAddDeviceSet * create(int direction)
WebAPIAdapterSrv * m_apiAdapter
static MainCore * getInstance()
WebAPIServer * m_apiServer
const QTimer & getMasterTimer() const
std::vector< DeviceSet * > m_deviceSets
MsgSavePreset(Preset *preset, int deviceSetIndex, bool newPreset)
static MsgSavePreset * create(Preset *preset, int deviceSetIndex, bool newPreset)
int m_channelRegistrationIndex
MsgSetDevice(int deviceSetIndex, int deviceIndex, int deviceType)
const Preset * getPreset() const
Preset * getPreset() const
MessageQueue m_inputMessageQueue
MsgDeletePreset(const Preset *preset)
MsgLoadPreset(const Preset *preset, int deviceSetIndex)
int getChannelIndex() const
static MsgDeleteChannel * create(int deviceSetIndex, int channelIndex, bool tx)
MsgAddDeviceSet(int direction)
int getDeviceSetIndex() const
#define MESSAGE_CLASS_DECLARATION
static MsgDeletePreset * create(const Preset *preset)
static MsgAddChannel * create(int deviceSetIndex, int channelRegistrationIndex, bool tx)
PluginManager * m_pluginManager
int getDeviceSetIndex() const
qtwebapp::LoggerWithFile * m_logger
const MainSettings & getMainSettings() const
WebAPIRequestMapper * m_requestMapper
int getDeviceSetIndex() const
int getDeviceIndex() const
static MsgRemoveLastDeviceSet * create()
MessageQueue * getInputMessageQueue()
static MsgLoadPreset * create(const Preset *preset, int deviceSetIndex)
static MsgDeleteInstance * create()
int getDeviceType() const
MsgDeleteChannel(int deviceSetIndex, int channelIndex, bool tx)
const Preset * getPreset() const
int getDeviceSetIndex() const
int getDeviceSetIndex() const
static MainCore * m_instance
int getChannelRegistrationIndex() const
static MsgSetDevice * create(int deviceSetIndex, int deviceIndex, int deviceType)
MsgAddChannel(int deviceSetIndex, int channelRegistrationIndex, bool tx)