Skip to content

Commit

Permalink
Remove CtxId check from Filetransfer Plugin. (#570)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Wenzel <[email protected]>
  • Loading branch information
alexmucde authored Oct 23, 2024
1 parent 05d05cb commit cefef97
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 17 deletions.
1 change: 0 additions & 1 deletion plugin/examples/filetransferplugin_configuration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<TAG_FLDA>FLDA</TAG_FLDA>
<TAG_FLFI>FLFI</TAG_FLFI>
<TAG_FLER>FLER</TAG_FLER>
<TAG_FLCTID>FILE</TAG_FLCTID>
<AUTOSAVE></AUTOSAVE>
<STANDARDSAVEPATH></STANDARDSAVEPATH>
</filetransferplugin_configuration>
3 changes: 0 additions & 3 deletions plugin/filetransferplugin/configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ QString Configuration::getFldaTag() {return tagFLDA;}
QString Configuration::getFlfiTag() {return tagFLFI;}
QString Configuration::getFlerTag() {return tagFLER;}
QString Configuration::getFlifTag() {return tagFLIF;}
QString Configuration::getFlCtIdTag() {return tagFLCtId;}
QString Configuration::getAutoSavePath() {return AutoSavePath;}
QString Configuration::getStandardSavePath() {return StandardSavePath;}

Expand All @@ -26,7 +25,6 @@ void Configuration::setFldaTag(QString newTag) { tagFLDA = newTag; }
void Configuration::setFlfiTag(QString newTag) { tagFLFI = newTag; }
void Configuration::setFlerTag(QString newTag) { tagFLER = newTag; }
void Configuration::setFlifTag(QString newTag) { tagFLIF = newTag; }
void Configuration::setFlCtIdTag(QString newTag) { tagFLCtId = newTag; }
void Configuration::setAutoSavePath(QString newTag) { AutoSavePath = newTag; }
void Configuration::setStandardSavePath(QString newTag) { StandardSavePath = newTag; }

Expand All @@ -37,7 +35,6 @@ void Configuration::setDefault()
tagFLFI = "FLFI";
tagFLER = "FLER";
tagFLIF = "FLIF";
tagFLCtId = "FILE";
AutoSavePath = "";
StandardSavePath = "";
}
1 change: 0 additions & 1 deletion plugin/filetransferplugin/configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ class Configuration
QString tagFLFI;
QString tagFLER;
QString tagFLIF;
QString tagFLCtId;
QString AutoSavePath;
QString StandardSavePath;
};
Expand Down
12 changes: 0 additions & 12 deletions plugin/filetransferplugin/filetransferplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,6 @@ bool FiletransferPlugin::loadConfig(QString filename)
{
config.setFlerTag( xml.readElementText() );
}
if(xml.name() == QString("TAG_FLCTID"))
{
config.setFlCtIdTag( xml.readElementText() );
}
if(xml.name() == QString("AUTOSAVE"))
{
config.setAutoSavePath( xml.readElementText() );
Expand Down Expand Up @@ -169,7 +165,6 @@ QStringList FiletransferPlugin::infoConfig()
{
QStringList list;

list.append("TAG_FLCTID: "+ config.getFlCtIdTag());
list.append("TAG_FLST: "+ config.getFlstTag());
list.append("TAG_FLDA: "+ config.getFldaTag());
list.append("TAG_FLFI: "+ config.getFlfiTag());
Expand Down Expand Up @@ -262,13 +257,6 @@ void FiletransferPlugin::updateFiletransfer(int index, QDltMsg &msg)
return;
}


if(config.getFlCtIdTag()!=msg.getCtid())
{
// message is not of CTID defined to indicate file transfer
return;
}

if(!msg.getArgument(PROTOCOL_ALL_STARTFLAG,msgFirstArgument))
{
return;
Expand Down

0 comments on commit cefef97

Please sign in to comment.