Remove unused message from BasebandSampleSink

pull/655/head
f4exb 2020-09-30 15:22:08 +02:00
rodzic e4f2c80172
commit f92622b45a
3 zmienionych plików z 21 dodań i 24 usunięć

Wyświetl plik

@ -24,6 +24,8 @@
#include "dsp/basebandsamplesink.h"
#include "channel/channelapi.h"
#include "util/message.h"
#include "localsinksettings.h"
class QNetworkAccessManager;

Wyświetl plik

@ -1,6 +1,23 @@
#include "basebandsamplesink.h"
///////////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2016 F4EXB //
// written by Edouard Griffiths //
// //
// This program is free software; you can redistribute it and/or modify //
// it under the terms of the GNU General Public License as published by //
// the Free Software Foundation as version 3 of the License, or //
// (at your option) any later version. //
// //
// This program is distributed in the hope that it will be useful, //
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
// GNU General Public License V3 for more details. //
// //
// You should have received a copy of the GNU General Public License //
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
///////////////////////////////////////////////////////////////////////////////////
#include "util/message.h"
MESSAGE_CLASS_DEFINITION(BasebandSampleSink::MsgThreadedSink, Message)
#include "basebandsamplesink.h"
BasebandSampleSink::BasebandSampleSink() :
m_guiMessageQueue(0)

Wyświetl plik

@ -23,34 +23,12 @@
#include "dsp/dsptypes.h"
#include "export.h"
#include "util/messagequeue.h"
#include "util/message.h"
class Message;
class SDRBASE_API BasebandSampleSink : public QObject {
Q_OBJECT
public:
/** Used to notify on which thread the sample sink is now running (with ThreadedSampleSink) */
class SDRBASE_API MsgThreadedSink : public Message {
MESSAGE_CLASS_DECLARATION
public:
const QThread* getThread() const { return m_thread; }
static MsgThreadedSink* create(const QThread* thread)
{
return new MsgThreadedSink(thread);
}
private:
const QThread *m_thread;
MsgThreadedSink(const QThread *thread) :
Message(),
m_thread(thread)
{ }
};
BasebandSampleSink();
virtual ~BasebandSampleSink();