mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-14 07:35:46 -04:00
Qt: Remove usage of QString where possible for settings
This commit is contained in:
@ -101,11 +101,26 @@ void AndroidHostInterface::ReportMessage(const char* message)
|
||||
HostInterface::ReportMessage(message);
|
||||
}
|
||||
|
||||
std::string AndroidHostInterface::GetSettingValue(const char* section, const char* key, const char* default_value)
|
||||
std::string AndroidHostInterface::GetStringSettingValue(const char* section, const char* key, const char* default_value)
|
||||
{
|
||||
return m_settings_interface.GetStringValue(section, key, default_value);
|
||||
}
|
||||
|
||||
bool AndroidHostInterface::GetBoolSettingValue(const char* section, const char* key, bool default_value /* = false */)
|
||||
{
|
||||
return m_settings_interface.GetBoolValue(section, key, default_value);
|
||||
}
|
||||
|
||||
int AndroidHostInterface::GetIntSettingValue(const char* section, const char* key, int default_value /* = 0 */)
|
||||
{
|
||||
return m_settings_interface.GetIntValue(section, key, default_value);
|
||||
}
|
||||
|
||||
float AndroidHostInterface::GetFloatSettingValue(const char* section, const char* key, float default_value /* = 0.0f */)
|
||||
{
|
||||
return m_settings_interface.GetFloatValue(section, key, default_value);
|
||||
}
|
||||
|
||||
void AndroidHostInterface::SetUserDirectory()
|
||||
{
|
||||
// TODO: Should this be customizable or use an API-determined path?
|
||||
|
@ -29,7 +29,10 @@ public:
|
||||
void ReportError(const char* message) override;
|
||||
void ReportMessage(const char* message) override;
|
||||
|
||||
std::string GetSettingValue(const char* section, const char* key, const char* default_value = "") override;
|
||||
std::string GetStringSettingValue(const char* section, const char* key, const char* default_value = "") override;
|
||||
bool GetBoolSettingValue(const char* section, const char* key, bool default_value = false) override;
|
||||
int GetIntSettingValue(const char* section, const char* key, int default_value = 0) override;
|
||||
float GetFloatSettingValue(const char* section, const char* key, float default_value = 0.0f) override;
|
||||
|
||||
bool IsEmulationThreadRunning() const { return m_emulation_thread.joinable(); }
|
||||
bool StartEmulationThread(ANativeWindow* initial_surface, SystemBootParameters boot_params);
|
||||
|
Reference in New Issue
Block a user