![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include <settings.hpp>

Public Member Functions | |
| Settings () | |
| Option & | addOption (std::string name, Option::OptType type, const std::string ¶m, const std::string &value="", bool enabled=true, const std::string &parent="", const std::string &limit="") |
| void | changedAll () |
| std::string | getControlPort () const |
| std::string | getLaunchParams () const |
| Option & | getOption (const std::string &opt) |
| const Option & | getOption (const std::string &opt) const |
| const std::map< std::string, std::unique_ptr< Option > > & | getOptionMap () const |
| std::string | getPreviewParams () const |
| const std::string & | getSessRndKey () const |
| bool | isAdvancedMode () |
| void | populateSettingsFromCapabilities (AvailableSettings *availSettings) |
Private Member Functions | |
| void | populateDeviceSettings (AvailableSettings *availSettings) |
| void | populateVideoCompressSettings (AvailableSettings *availSettings) |
Private Attributes | |
| const Option | dummy |
| std::map< std::string, std::unique_ptr< Option > > | options |
| std::string | sessRndKey |
Definition at line 91 of file settings.hpp.
| Settings::Settings | ( | ) |
Definition at line 258 of file settings.cpp.
References Option::addOnChangeCallback(), addOption(), getLaunchParams(), getOption(), optionCallbacks, optionList, and sessRndKey.

| Option & Settings::addOption | ( | std::string | name, |
| Option::OptType | type, | ||
| const std::string & | param, | ||
| const std::string & | value = "", | ||
| bool | enabled = true, | ||
| const std::string & | parent = "", | ||
| const std::string & | limit = "" ) |
Definition at line 397 of file settings.cpp.
References Option::addSuboption(), enabled, getOption(), limit, name, param, parent, Option::setDefaultValue(), Option::setEnabled(), Option::setParam(), Option::setType(), Option::setValue(), and type.
Referenced by Settings(), addDevOpt(), populateDeviceSettings(), and populateVideoCompressSettings().

| void Settings::changedAll | ( | ) |
Definition at line 437 of file settings.cpp.
Referenced by UltragridWindow::loadSettingsFile().
| std::string Settings::getControlPort | ( | ) | const |
Definition at line 292 of file settings.cpp.
References getOption(), and Option::getValue().
Referenced by getLaunchParams(), and getPreviewParams().

| std::string Settings::getLaunchParams | ( | ) | const |
Definition at line 299 of file settings.cpp.
References getControlPort(), Option::getLaunchOption(), getOption(), Option::getParam(), and getSessRndKey().
Referenced by Settings(), UltragridWindow::setArgs(), and SettingsUi::test().

| Option & Settings::getOption | ( | const std::string & | opt | ) |
Definition at line 371 of file settings.cpp.
| const Option & Settings::getOption | ( | const std::string & | opt | ) | const |
Definition at line 384 of file settings.cpp.
References dummy.
Referenced by Settings(), WidgetUi::~WidgetUi(), SettingsUi::addCallbacks(), addOption(), audioCompressionCallback(), CheckableUi::boxClicked(), RadioButtonUi::btnClicked(), UltragridWindow::checkPreview(), conditionsSatisfied(), fec_auto_callback(), fec_builder_callback(), getControlPort(), getLaunchParams(), CheckableUi::getOptValue(), TextOptUi::getOptValue(), getPreviewParams(), isAdvancedMode(), ComboBoxUi::itemSelected(), UltragridWindow::loadSettingsFile(), RadioButtonUi::optChangeCallback(), WidgetUi::registerCustomCallback(), ComboBoxUi::selectOption(), UltragridWindow::setupPreviewCallbacks(), TextOptUi::textEdited(), RadioButtonUi::updateUiState(), and videoCompressBitrateCallback().
| const std::map< std::string, std::unique_ptr< Option > > & Settings::getOptionMap | ( | ) | const |
Definition at line 393 of file settings.cpp.
References options.
Referenced by UltragridWindow::saveSettings().
| std::string Settings::getPreviewParams | ( | ) | const |
Definition at line 349 of file settings.cpp.
References getControlPort(), Option::getLaunchOption(), getOption(), Option::getParam(), and getSessRndKey().
Referenced by UltragridWindow::launchPreview().

|
inline |
Definition at line 117 of file settings.hpp.
References sessRndKey.
Referenced by getLaunchParams(), getPreviewParams(), and UltragridWindow::initializeUgOpts().
| bool Settings::isAdvancedMode | ( | ) |
Definition at line 433 of file settings.cpp.
References getOption(), and Option::getValue().

|
private |
Definition at line 453 of file settings.cpp.
References addDevOpt(), addOption(), Option::BoolOpt, AvailableSettings::getDevices(), Option::StringOpt, and type.
Referenced by populateSettingsFromCapabilities().

| void Settings::populateSettingsFromCapabilities | ( | AvailableSettings * | availSettings | ) |
Definition at line 518 of file settings.cpp.
References populateDeviceSettings(), and populateVideoCompressSettings().

|
private |
Definition at line 481 of file settings.cpp.
References addOption(), Option::BoolOpt, codec::encoders, AvailableSettings::getVideoCompressCodecs(), AvailableSettings::getVideoCompressModules(), codec::name, Option::SilentOpt, and Option::StringOpt.
Referenced by populateSettingsFromCapabilities().

|
private |
Definition at line 128 of file settings.hpp.
Referenced by getOption().
|
private |
Definition at line 124 of file settings.hpp.
Referenced by getOptionMap().
|
private |
Definition at line 126 of file settings.hpp.
Referenced by Settings(), and getSessRndKey().