From 0603bb41ca13093ce788058b62593a4564a3ac5d Mon Sep 17 00:00:00 2001 From: f4exb Date: Thu, 6 Aug 2015 00:10:46 +0200 Subject: [PATCH] File source: renamed file source name message --- plugins/samplesource/filesource/filesourcegui.cpp | 2 +- plugins/samplesource/filesource/filesourceinput.cpp | 6 +++--- plugins/samplesource/filesource/filesourceinput.h | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/samplesource/filesource/filesourcegui.cpp b/plugins/samplesource/filesource/filesourcegui.cpp index 7979db3c2..f86f6a19e 100644 --- a/plugins/samplesource/filesource/filesourcegui.cpp +++ b/plugins/samplesource/filesource/filesourcegui.cpp @@ -181,7 +181,7 @@ void FileSourceGui::on_showFileDialog_clicked(bool checked) void FileSourceGui::configureFileName() { std::cerr << "FileSourceGui::configureFileName: " << m_fileName.toStdString() << std::endl; - FileSourceInput::MsgConfigureFileName* message = FileSourceInput::MsgConfigureFileName::create(m_fileName); + FileSourceInput::MsgConfigureFileSourceName* message = FileSourceInput::MsgConfigureFileSourceName::create(m_fileName); message->submit(m_pluginAPI->getDSPEngineMessageQueue()); } diff --git a/plugins/samplesource/filesource/filesourceinput.cpp b/plugins/samplesource/filesource/filesourceinput.cpp index 7444f72ae..bd8fa74d1 100644 --- a/plugins/samplesource/filesource/filesourceinput.cpp +++ b/plugins/samplesource/filesource/filesourceinput.cpp @@ -27,7 +27,7 @@ #include "filesourcethread.h" MESSAGE_CLASS_DEFINITION(FileSourceInput::MsgConfigureFileSource, Message) -MESSAGE_CLASS_DEFINITION(FileSourceInput::MsgConfigureFileName, Message) +MESSAGE_CLASS_DEFINITION(FileSourceInput::MsgConfigureFileSourceName, Message) MESSAGE_CLASS_DEFINITION(FileSourceInput::MsgReportFileSourceAcquisition, Message) MESSAGE_CLASS_DEFINITION(FileSourceInput::MsgReportFileSourceStreamData, Message) @@ -187,9 +187,9 @@ std::time_t FileSourceInput::getStartingTimeStamp() const bool FileSourceInput::handleMessage(Message* message) { - if(MsgConfigureFileName::match(message)) { + if(MsgConfigureFileSourceName::match(message)) { std::cerr << "FileSourceInput::handleMessage: MsgConfigureFileName" << std::endl; - MsgConfigureFileName* conf = (MsgConfigureFileName*) message; + MsgConfigureFileSourceName* conf = (MsgConfigureFileSourceName*) message; m_fileName = conf->getFileName(); openFileStream(); message->completed(); diff --git a/plugins/samplesource/filesource/filesourceinput.h b/plugins/samplesource/filesource/filesourceinput.h index 46b54d89b..73e957390 100644 --- a/plugins/samplesource/filesource/filesourceinput.h +++ b/plugins/samplesource/filesource/filesourceinput.h @@ -60,21 +60,21 @@ public: { } }; - class MsgConfigureFileName : public Message { + class MsgConfigureFileSourceName : public Message { MESSAGE_CLASS_DECLARATION public: const QString& getFileName() const { return m_fileName; } - static MsgConfigureFileName* create(const QString& fileName) + static MsgConfigureFileSourceName* create(const QString& fileName) { - return new MsgConfigureFileName(fileName); + return new MsgConfigureFileSourceName(fileName); } private: QString m_fileName; - MsgConfigureFileName(const QString& fileName) : + MsgConfigureFileSourceName(const QString& fileName) : Message(), m_fileName(fileName) { }