MCPcopy Create free account
hub / github.com/Audio4Linux/JDSP4Linux / saveToPath

Method saveToPath

src/data/PresetManager.cpp:78–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78void PresetManager::saveToPath(const QString &filename)
79{
80 emit wantsToWriteConfig();
81
82 const QString src = AppConfig::instance().getDspConfPath();
83 const QString &dest = filename;
84
85 if (QFile::exists(dest))
86 {
87 QFile::remove(dest);
88 }
89
90 QFile::copy(src, dest);
91 this->_presetModel->rescan();
92 Log::debug("Saved to " + filename);
93}
94
95void PresetManager::onOutputDeviceChanged(const QString &deviceName, const QString &deviceId, const QString& outputRouteId)
96{

Callers 1

saveExternalFileMethod · 0.80

Calls 2

getDspConfPathMethod · 0.80
rescanMethod · 0.80

Tested by

no test coverage detected