| 102 | } |
| 103 | |
| 104 | void GrSettings::ClearData() { |
| 105 | this->SetDeviceId(""); |
| 106 | if (cat comp = grApp->GetCompanion(); comp) { |
| 107 | comp->UpdateDeviceId(""); |
| 108 | } |
| 109 | this->SetDeviceName(""); |
| 110 | this->SetDeviceRandomPwd(""); |
| 111 | this->SetDeviceSecurityPwd(""); |
| 112 | this->SetSpvrServerHost(""); |
| 113 | this->SetSpvrServerPort(""); |
| 114 | this->SetRelayServerHost(""); |
| 115 | this->SetRelayServerPort(""); |
| 116 | this->SetSpvrAccessInfo(""); |
| 117 | } |
| 118 | |
| 119 | void GrSettings::SetEnableResResize(bool enabled) { |
| 120 | sp_->Put(kStEncoderResResize, enabled ? kStTrue : kStFalse); |
no test coverage detected