Ref T730, adjusted audio settings for new notification sounds

* utility functions, find most appropriate file
* PTT blocked, removed voice rooms
This commit is contained in:
Klaus Basan
2019-09-28 19:32:33 +02:00
committed by Mat Sutcliffe
parent e33e06b21e
commit b207c9c944
6 changed files with 64 additions and 23 deletions

View File

@@ -70,6 +70,14 @@ namespace BlackMisc
//! Notification directory
const QString &getNotificationSoundDirectory() const { return m_notificationSoundDir; }
//! get existing notifcation settings directory or default swift directory
const QString &getNotificationSoundDirectoryOrDefault() const;
//! Get existing file path for the given file path, either in the settings specific or default dir
//! \remark pass file only, like "foo.wav"
//! \return complete path like "/mydir/foo.wav" or empty if file not exists
QString getNotificationFilePath(const QString &fileName) const;
//! Set volume (notifications)
void setNotificationVolume(int volume);
@@ -129,7 +137,11 @@ namespace BlackMisc
static const QString &humanReadable() { static const QString name("Audio"); return name; }
//! \copydoc BlackMisc::TSettingTrait::isValid
static bool isValid(const BlackMisc::Audio::CSettings &value, QString &) { Q_UNUSED(value); return true; }
static bool isValid(const BlackMisc::Audio::CSettings &value, QString &)
{
Q_UNUSED(value)
return true;
}
};
} // namespace
} // namespace