|
RDK Documentation (Open Sourced RDK Components)
|
21 #include "MockAampConfig.h"
39 void AampConfig::Initialize()
45 if (g_mockAampConfig !=
nullptr)
47 return g_mockAampConfig->IsConfigSet(cfg);
57 if (g_mockAampConfig !=
nullptr)
59 return g_mockAampConfig->GetConfigValue(cfg, value);
69 if (g_mockAampConfig !=
nullptr)
71 return g_mockAampConfig->GetConfigValue(cfg, value);
81 if (g_mockAampConfig !=
nullptr)
83 return g_mockAampConfig->GetConfigValue(cfg, value);
93 if (g_mockAampConfig !=
nullptr)
95 return g_mockAampConfig->GetConfigValue(cfg, value);
162 std::string AampConfig::GetUserAgentString()
void SetConfigValue(ConfigPriority owner, AAMPConfigSettings cfg, const T &value)
SetConfigValue - Set function to set bool/int/long data type configuration.
bool GetAampConfigJSONStr(std::string &str)
GetAampConfigJSONStr - Function to Complete Config as JSON str.
const char * GetChannelOverride(const std::string chName)
GetChannelOverride - Gets channel override url for channel Name.
AampConfig & operator=(const AampConfig &)
AampConfig Copy Constructor function.
bool GetConfigValue(AAMPConfigSettings cfg, std::string &value)
GetConfigValue - Gets configuration for string data type.
bool ProcessConfigJson(const char *cfg, ConfigPriority owner)
ProcessConfigJson - Function to parse and process json configuration string.
void ReadOperatorConfiguration()
ReadOperatorConfiguration - Reads Operator configuration from RFC and env variables.
bool ReadAampCfgJsonFile()
ReadAampCfgJsonFile - Function to parse and process configuration file in json format.
ConfigPriority
AAMP Config Ownership values.
void DoCustomSetting(ConfigPriority owner)
DoCustomSetting - Function to do override , to avoid complexity with multiple configs.
const char * GetChannelLicenseOverride(const std::string chName)
GetChannelLicenseOverride - Gets channel License override url for channel Url.
ConfigPriority GetConfigOwner(AAMPConfigSettings cfg)
GetConfigOwner - Gets configuration Owner.
void ReadDeviceCapability()
void RestoreConfiguration(ConfigPriority owner, AampLogManager *mLogObj)
RestoreConfiguration - Function is restore last configuration value from current ownership.
void ShowOperatorSetConfiguration()
ShowOperatorSetConfiguration - List all operator configured settings.
bool CustomSearch(std::string url, int playerId, std::string appname)
CustomSearch - Function to apply custom search.
AampConfig()
AampConfig Constructor function . Default values defined.
void ShowDevCfgConfiguration()
ShowDevCfgConfiguration - List all developer configured settings.
bool IsConfigSet(AAMPConfigSettings cfg)
Gets the boolean configuration value.
bool ReadAampCfgTxtFile()
ReadAampCfgTxtFile - Function to parse and process configuration file in text format.
AAMPConfigSettings
AAMP Config Settings.