File source: renamed file source name message

pull/6/head
f4exb 2015-08-06 00:10:46 +02:00
rodzic afdcf138d2
commit 0603bb41ca
3 zmienionych plików z 8 dodań i 8 usunięć

Wyświetl plik

@ -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());
}

Wyświetl plik

@ -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();

Wyświetl plik

@ -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)
{ }