|
Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
|
Sets a setting for the life of the guard, then puts back the value it had. More...
#include <TestUtils.h>
Public Member Functions | |
| CScopedSetting (const std::string &id) | |
| Only puts the value back, for a test that sets the setting itself. | |
| CScopedSetting (const std::string &id, bool value) | |
| CScopedSetting (const std::string &id, const std::string &value) | |
| CScopedSetting (const std::string &id, const char *value) | |
| ~CScopedSetting () | |
| CScopedSetting (const CScopedSetting &)=delete | |
| CScopedSetting & | operator= (const CScopedSetting &)=delete |
Sets a setting for the life of the guard, then puts back the value it had.
|
explicit |
Only puts the value back, for a test that sets the setting itself.
| CScopedSetting::CScopedSetting | ( | const std::string & | id, |
| bool | value ) |
| CScopedSetting::CScopedSetting | ( | const std::string & | id, |
| const std::string & | value ) |
|
inline |
| CScopedSetting::~CScopedSetting | ( | ) |
|
delete |
|
delete |