11#include "../../AddonBase.h"
12#include "../../c-api/addon-instance/pvr/pvr_general.h"
71 void SetValue(
int value) { m_cStructure->iValue = value; }
74 int GetValue()
const {
return m_cStructure->iValue; }
79 ReallocAndCopyString(&m_cStructure->strDescription, description.c_str());
85 return m_cStructure->strDescription ? m_cStructure->strDescription :
"";
92 for (
unsigned int i = 0; i < source.size(); ++i)
94 values[i].iValue = source[i].GetCStructure()->iValue;
95 AllocResources(source[i].GetCStructure(), &values[i]);
104 for (
unsigned int i = 0; i < size; ++i)
106 values[i].iValue = source[i].iValue;
107 AllocResources(&source[i], &values[i]);
114 target->strDescription = AllocAndCopyString(source->strDescription);
119 FreeString(target->strDescription);
120 target->strDescription =
nullptr;
125 for (
unsigned int i = 0; i < size; ++i)
127 FreeResources(&values[i]);
134 const std::vector<PVRTypeIntValue>& values)
136 FreeResources(*source, *size);
138 *size =
static_cast<unsigned int>(values.size());
140 *source = AllocAndCopyData(values);
200 ReallocAndCopyString(&m_cStructure->strValue, value.c_str());
204 std::string
GetValue()
const {
return m_cStructure->strValue ? m_cStructure->strValue :
""; }
209 ReallocAndCopyString(&m_cStructure->strDescription, description.c_str());
215 return m_cStructure->strDescription ? m_cStructure->strDescription :
"";
222 for (
unsigned int i = 0; i < source.size(); ++i)
223 AllocResources(source[i].GetCStructure(), &values[i]);
231 for (
unsigned int i = 0; i < size; ++i)
232 AllocResources(&source[i], &values[i]);
239 target->strValue = AllocAndCopyString(source->strValue);
240 target->strDescription = AllocAndCopyString(source->strDescription);
245 FreeString(target->strValue);
246 target->strValue =
nullptr;
247 FreeString(target->strDescription);
248 target->strDescription =
nullptr;
253 for (
unsigned int i = 0; i < size; ++i)
254 FreeResources(&values[i]);
260 const std::vector<PVRTypeStringValue>& values)
262 FreeResources(*source, *size);
264 *size =
static_cast<unsigned int>(values.size());
266 *source = AllocAndCopyData(values);
347 void SetValues(
const std::vector<PVRTypeIntValue>& values,
int defaultValue = -1)
349 PVRTypeIntValue::ReallocAndCopyData(&m_cStructure->values, &m_cStructure->iValuesSize, values);
350 if (defaultValue != -1)
351 m_cStructure->iDefaultValue = defaultValue;
357 std::vector<PVRTypeIntValue> ret;
358 for (
unsigned int i = 0; i < m_cStructure->iValuesSize; ++i)
359 ret.emplace_back(m_cStructure->values[i].iValue, m_cStructure->values[i].strDescription);
365 void SetDefaultValue(
int defaultValue) { m_cStructure->iDefaultValue = defaultValue; }
372 void SetMinValue(
int minValue) { m_cStructure->iMinValue = minValue; }
379 void SetStep(
int step) { m_cStructure->iStep = step; }
382 int GetStep()
const {
return m_cStructure->iStep; }
386 void SetMaxValue(
int maxValue) { m_cStructure->iMaxValue = maxValue; }
395 AllocResources(source.GetCStructure(), def);
396 def->iDefaultValue = source.GetCStructure()->iDefaultValue;
397 def->iMinValue = source.GetCStructure()->iMinValue;
398 def->iStep = source.GetCStructure()->iStep;
399 def->iMaxValue = source.GetCStructure()->iMaxValue;
406 AllocResources(source, def);
407 def->iDefaultValue = source->iDefaultValue;
408 def->iMinValue = source->iMinValue;
409 def->iStep = source->iStep;
410 def->iMaxValue = source->iMaxValue;
417 target->values = PVRTypeIntValue::AllocAndCopyData(source->values, source->iValuesSize);
418 target->iValuesSize = source->iValuesSize;
423 PVRTypeIntValue::FreeResources(target->values, target->iValuesSize);
424 target->values =
nullptr;
425 target->iValuesSize = 0;
432 FreeResources(*source);
433 *source = AllocAndCopyData(def);
455 :
public DynamicCStructHdl<PVRStringSettingDefinition, PVR_STRING_SETTING_DEFINITION>
486 const std::string& defaultValue,
487 bool allowEmptyValue)
506 void SetValues(
const std::vector<PVRTypeStringValue>& values,
507 const std::string& defaultValue =
"")
509 PVRTypeStringValue::ReallocAndCopyData(&m_cStructure->values, &m_cStructure->iValuesSize,
511 ReallocAndCopyString(&m_cStructure->strDefaultValue, defaultValue.c_str());
517 std::vector<PVRTypeStringValue> ret;
518 for (
unsigned int i = 0; i < m_cStructure->iValuesSize; ++i)
519 ret.emplace_back(m_cStructure->values[i].strValue, m_cStructure->values[i].strDescription);
527 ReallocAndCopyString(&m_cStructure->strDefaultValue, defaultValue.c_str());
533 return m_cStructure->strDefaultValue ? m_cStructure->strDefaultValue :
"";
540 m_cStructure->bAllowEmptyValue = allowEmptyValue;
550 AllocResources(source.GetCStructure(), def);
551 def->bAllowEmptyValue = source.GetCStructure()->bAllowEmptyValue;
558 AllocResources(source, def);
559 def->bAllowEmptyValue = source->bAllowEmptyValue;
566 target->strDefaultValue = AllocAndCopyString(source->strDefaultValue);
567 target->values = PVRTypeStringValue::AllocAndCopyData(source->values, source->iValuesSize);
568 target->iValuesSize = source->iValuesSize;
573 PVRTypeStringValue::FreeResources(target->values, target->iValuesSize);
574 target->values =
nullptr;
575 target->iValuesSize = 0;
577 FreeString(target->strDefaultValue);
578 target->strDefaultValue =
nullptr;
585 FreeResources(*source);
586 *source = AllocAndCopyData(def);
644 const std::string& settingDefName,
645 uint64_t readonlyConditions,
662 const std::string& settingDefName,
663 uint64_t readonlyConditions,
682 const std::string& settingDefName,
684 uint64_t readonlyConditions,
698 void SetId(
unsigned int defId) { m_cStructure->iId = defId; }
701 unsigned int GetId()
const {
return m_cStructure->iId; }
707 ReallocAndCopyString(&m_cStructure->strName, name.c_str());
711 std::string
GetName()
const {
return m_cStructure->strName ? m_cStructure->strName :
""; }
725 m_cStructure->iReadonlyConditions = conditions;
741 PVRIntSettingDefinition::ReallocAndCopyData(&m_cStructure->intSettingDefinition, def);
748 if (m_cStructure->intSettingDefinition)
750 std::vector<PVRTypeIntValue> settingValues;
751 settingValues.reserve(m_cStructure->intSettingDefinition->iValuesSize);
752 for (
unsigned int i = 0; i < m_cStructure->intSettingDefinition->iValuesSize; ++i)
754 settingValues.emplace_back(m_cStructure->intSettingDefinition->values[i].iValue,
755 m_cStructure->intSettingDefinition->values[i].strDescription);
758 ret.
SetDefaultValue(m_cStructure->intSettingDefinition->iDefaultValue);
759 ret.
SetMinValue(m_cStructure->intSettingDefinition->iMinValue);
760 ret.
SetStep(m_cStructure->intSettingDefinition->iStep);
761 ret.
SetMaxValue(m_cStructure->intSettingDefinition->iMaxValue);
776 PVRStringSettingDefinition::ReallocAndCopyData(&m_cStructure->stringSettingDefinition, def);
783 if (m_cStructure->stringSettingDefinition)
785 std::vector<PVRTypeStringValue> settingValues;
786 settingValues.reserve(m_cStructure->stringSettingDefinition->iValuesSize);
787 for (
unsigned int i = 0; i < m_cStructure->stringSettingDefinition->iValuesSize; ++i)
789 settingValues.emplace_back(m_cStructure->stringSettingDefinition->values[i].strValue,
790 m_cStructure->stringSettingDefinition->values[i].strDescription);
793 ret.
SetDefaultValue(m_cStructure->stringSettingDefinition->strDefaultValue);
802 for (
unsigned int i = 0; i < source.size(); ++i)
805 defs[i]->iId = source[i].GetCStructure()->iId;
806 defs[i]->eType = source[i].GetCStructure()->eType;
807 defs[i]->iReadonlyConditions = source[i].GetCStructure()->iReadonlyConditions;
808 AllocResources(source[i].GetCStructure(),
818 for (
unsigned int i = 0; i < size; ++i)
821 defs[i]->iId = source[i]->iId;
822 defs[i]->eType = source[i]->eType;
823 defs[i]->iReadonlyConditions = source[i]->iReadonlyConditions;
824 AllocResources(source[i],
832 target->strName = AllocAndCopyString(source->strName);
833 if (source->intSettingDefinition)
834 target->intSettingDefinition =
835 PVRIntSettingDefinition::AllocAndCopyData(source->intSettingDefinition);
836 if (source->stringSettingDefinition)
837 target->stringSettingDefinition =
838 PVRStringSettingDefinition::AllocAndCopyData(source->stringSettingDefinition);
843 FreeString(target->strName);
844 target->strName =
nullptr;
846 if (target->intSettingDefinition)
848 PVRIntSettingDefinition::FreeResources(target->intSettingDefinition);
849 target->intSettingDefinition =
nullptr;
852 if (target->stringSettingDefinition)
854 PVRStringSettingDefinition::FreeResources(target->stringSettingDefinition);
855 target->stringSettingDefinition =
nullptr;
861 for (
unsigned int i = 0; i < size; ++i)
863 FreeResources(defs[i]);
871 const std::vector<PVRSettingDefinition>& defs)
873 FreeResources(*source, *size);
875 *size =
static_cast<unsigned int>(defs.size());
877 *source = AllocAndCopyData(defs);
956 const std::string& stringValue)
965 void SetKey(
unsigned int key) { m_cStructure->iKey = key; }
968 unsigned GetKey()
const {
return m_cStructure->iKey; }
986 ReallocAndCopyString(&m_cStructure->strValue, value.c_str());
992 return m_cStructure->strValue ? m_cStructure->strValue :
"";
997 const std::vector<PVRSettingKeyValuePair>& values)
1000 for (
unsigned int i = 0; i < values.size(); ++i)
1002 pairs[i].iKey = values[i].GetCStructure()->iKey;
1003 pairs[i].eType = values[i].GetCStructure()->eType;
1004 pairs[i].iValue = values[i].GetCStructure()->iValue;
1005 AllocResources(values[i].GetCStructure(), &pairs[i]);
1014 for (
unsigned int i = 0; i < size; ++i)
1016 pairs[i].iKey = source[i].iKey;
1017 pairs[i].eType = source[i].eType;
1018 pairs[i].iValue = source[i].iValue;
1019 AllocResources(&source[i], &pairs[i]);
1027 target->strValue = AllocAndCopyString(source->strValue);
1034 for (
unsigned int i = 0; i < size; ++i)
1035 FreeResources(&pairs[i]);
1041 const std::vector<PVRSettingKeyValuePair>& values)
1043 FreeResources(*source, *size);
1045 *size =
static_cast<unsigned int>(values.size());
1047 *source = AllocAndCopyData(values);
1153 m_cStructure->bSupportsRecordings = supportsRecordings;
1163 m_cStructure->bSupportsRecordingsUndelete = supportsRecordingsUndelete;
1183 m_cStructure->bSupportsProviders = supportsProviders;
1197 m_cStructure->bSupportsChannelGroups = supportsChannelGroups;
1210 m_cStructure->bSupportsChannelScan = supportsChannelScan;
1225 m_cStructure->bSupportsChannelSettings = supportsChannelSettings;
1235 m_cStructure->bHandlesInputStream = handlesInputStream;
1244 m_cStructure->bHandlesDemuxing = handlesDemuxing;
1253 m_cStructure->bSupportsRecordingPlayCount = supportsRecordingPlayCount;
1263 m_cStructure->bSupportsLastPlayedPosition = supportsLastPlayedPosition;
1273 m_cStructure->bSupportsRecordingEdl = supportsRecordingEdl;
1282 m_cStructure->bSupportsRecordingsRename = supportsRecordingsRename;
1292 m_cStructure->bSupportsRecordingsLifetimeChange = supportsRecordingsLifetimeChange;
1299 return m_cStructure->bSupportsRecordingsLifetimeChange;
1306 m_cStructure->bSupportsDescrambleInfo = supportsDescrambleInfo;
1317 m_cStructure->bSupportsAsyncEPGTransfer = supportsAsyncEPGTransfer;
1326 m_cStructure->bSupportsRecordingSize = supportsRecordingSize;
1336 m_cStructure->bSupportsRecordingsDelete = supportsRecordingsDelete;
1345 m_cStructure->bSupportsMultipleRecordedStreams = supportsMultipleRecordedStreams;
1351 return m_cStructure->bSupportsMultipleRecordedStreams;
1362 PVRTypeIntValue::ReallocAndCopyData(&m_cStructure->recordingsLifetimeValues,
1363 &m_cStructure->iRecordingsLifetimesSize,
1364 recordingsLifetimeValues);
1370 std::vector<PVRTypeIntValue> recordingsLifetimeValues;
1371 for (
unsigned int i = 0; i < m_cStructure->iRecordingsLifetimesSize; ++i)
1372 recordingsLifetimeValues.emplace_back(
1373 m_cStructure->recordingsLifetimeValues[i].iValue,
1374 m_cStructure->recordingsLifetimeValues[i].strDescription);
1375 return recordingsLifetimeValues;
1381 if (target->iRecordingsLifetimesSize)
1383 target->recordingsLifetimeValues = PVRTypeIntValue::AllocAndCopyData(
1384 source->recordingsLifetimeValues, source->iRecordingsLifetimesSize);
1390 PVRTypeIntValue::FreeResources(target->recordingsLifetimeValues,
1391 target->iRecordingsLifetimesSize);
1392 target->recordingsLifetimeValues =
nullptr;
1393 target->iRecordingsLifetimesSize = 0;
1491 ReallocAndCopyString(&m_cStructure->strName, name.c_str());
1495 std::string
GetName()
const {
return m_cStructure->strName ? m_cStructure->strName :
""; }
1500 ReallocAndCopyString(&m_cStructure->strValue, value.c_str());
1504 std::string
GetValue()
const {
return m_cStructure->strValue ? m_cStructure->strValue :
""; }
1509 target->strName = AllocAndCopyString(source->strName);
1510 target->strValue = AllocAndCopyString(source->strValue);
1515 FreeString(target->strName);
1516 FreeString(target->strValue);
Definition AddonBase.h:288
Definition General.h:1077
Definition General.h:1453
PVR_SETTING_TYPE
Definition pvr_general.h:176
@ INTEGER
0 : Integer
Definition pvr_general.h:178
@ STRING
1 : String
Definition pvr_general.h:181
unsigned GetKey() const
To get with the key.
Definition General.h:968
void SetIntValue(int value)
To set with the value.
Definition General.h:978
void SetStringValue(const std::string &value)
To set with the value.
Definition General.h:984
PVRSettingKeyValuePair()=default
Default class constructor.
void SetKey(unsigned int key)
To set with the key.
Definition General.h:965
PVRSettingKeyValuePair(unsigned int key, PVR_SETTING_TYPE eType, int intValue, const std::string &stringValue)
Class constructor with integrated value set.
Definition General.h:953
void SetType(PVR_SETTING_TYPE eType)
required This key value pair's type.
Definition General.h:972
PVRSettingKeyValuePair(unsigned int key, const std::string &value)
Class constructor with integrated value set.
Definition General.h:940
PVRSettingKeyValuePair(unsigned int key, int value)
Class constructor with integrated value set.
Definition General.h:929
int GetIntValue() const
To get with the value.
Definition General.h:981
std::string GetStringValue() const
To get with the value.
Definition General.h:990
PVR_SETTING_TYPE GetType() const
To get with SetType changed values.
Definition General.h:975
void SetSupportsRecordingsDelete(bool supportsRecordingsDelete)
Set true if this add-on supports delete of recordings stored on the backend.
Definition General.h:1334
void SetSupportsRecordingsUndelete(bool supportsRecordingsUndelete)
Set true if this add-on supports undelete of recordings stored on the backend.
Definition General.h:1161
void SetSupportsProviders(bool supportsProviders)
Set true if this add-on supports providers.
Definition General.h:1181
void SetSupportsEPGEdl(bool supportsEPGEdl)
Set true if the backend supports retrieving an edit decision list for an EPG tag.
Definition General.h:1132
bool GetSupportsRecordingsUndelete() const
To get with SetSupportsRecordings changed values.
Definition General.h:1167
bool GetSupportsRecordingsDelete() const
To get with SetSupportsRecordingsDelete changed values.
Definition General.h:1340
void SetSupportsChannelSettings(bool supportsChannelSettings)
Set true if this add-on supports channel edit.
Definition General.h:1223
void SetHandlesDemuxing(bool handlesDemuxing)
Set true if this add-on demultiplexes packets.
Definition General.h:1242
bool GetSupportsRecordingsLifetimeChange() const
To get with SetSupportsRecordingsLifetimeChange changed values.
Definition General.h:1297
void SetSupportsChannelGroups(bool supportsChannelGroups)
Set true if this add-on supports channel groups.
Definition General.h:1195
void SetSupportsMultipleRecordedStreams(bool supportsMultipleRecordedStreams)
Set true if this add-on supports multiple streams for recordings at a time.
Definition General.h:1343
bool GetSupportsChannelSettings() const
To get with SetSupportsChannelSettings changed values.
Definition General.h:1229
bool GetSupportsRecordings() const
To get with SetSupportsRecordings changed values.
Definition General.h:1157
void SetSupportsRadio(bool supportsRadio)
Set true if this add-on provides TV channels.
Definition General.h:1144
bool GetSupportsAsyncEPGTransfer() const
To get with SetSupportsAsyncEPGTransfer changed values.
Definition General.h:1321
void SetSupportsTV(bool supportsTV)
Set true if this add-on provides TV channels.
Definition General.h:1138
void SetSupportsLastPlayedPosition(bool supportsLastPlayedPosition)
Set true if the backend supports store/retrieve of last played position for recordings.
Definition General.h:1261
void SetSupportsRecordingSize(bool supportsRecordingSize)
Set true if this addon-on supports retrieving size of recordings.
Definition General.h:1324
void SetHandlesInputStream(bool handlesInputStream)
Set true if this add-on provides an input stream. false if Kodi handles the stream.
Definition General.h:1233
bool GetSupportsProviders() const
To get with SetSupportsProviders changed values.
Definition General.h:1187
bool GetSupportsChannelScan() const
To get with SetSupportsChannelScan changed values.
Definition General.h:1214
void SetSupportsEPG(bool supportsEPG)
Set true if the add-on provides EPG information.
Definition General.h:1125
void SetSupportsRecordingEdl(bool supportsRecordingEdl)
Set true if the backend supports retrieving an edit decision list for recordings.
Definition General.h:1271
bool GetSupportsRecordingSize() const
To get with SetSupportsRecordingSize changed values.
Definition General.h:1330
void SetSupportsAsyncEPGTransfer(bool supportsAsyncEPGTransfer)
Set true if this addon-on supports asynchronous transfer of epg events to Kodi using the callback fun...
Definition General.h:1315
bool GetSupportsEPGEdl() const
To get with SetSupportsEPGEdl changed values.
Definition General.h:1135
void SetSupportsRecordingsLifetimeChange(bool supportsRecordingsLifetimeChange)
Set true if the backend supports changing lifetime for recordings.
Definition General.h:1290
bool GetHandlesDemuxing() const
To get with SetHandlesDemuxing changed values.
Definition General.h:1248
std::vector< PVRTypeIntValue > GetRecordingsLifetimeValues() const
To get with SetRecordingsLifetimeValues changed values.
Definition General.h:1368
bool GetSupportsRadio() const
To get with SetSupportsRadio changed values.
Definition General.h:1147
void SetSupportsDescrambleInfo(bool supportsDescrambleInfo)
Set true if the backend supports descramble information for playing channels.
Definition General.h:1304
bool GetSupportsMultipleRecordedStreams() const
To get with SetSupportsMultiRecordedStreams changed values.
Definition General.h:1349
void SetSupportsTimers(bool supportsTimers)
Set true if this add-on supports the creation and editing of timers.
Definition General.h:1171
bool GetSupportsRecordingPlayCount() const
To get with SetSupportsRecordingPlayCount changed values.
Definition General.h:1257
void SetSupportsRecordingsRename(bool supportsRecordingsRename)
Set true if the backend supports renaming recordings.
Definition General.h:1280
void SetSupportsRecordings(bool supportsRecordings)
true if this add-on supports playback of recordings stored on the backend.
Definition General.h:1151
bool GetSupportsLastPlayedPosition() const
To get with SetSupportsLastPlayedPosition changed values.
Definition General.h:1267
void SetRecordingsLifetimeValues(const std::vector< PVRTypeIntValue > &recordingsLifetimeValues)
optional Set array containing the possible values for PVRRecording::SetLifetime().
Definition General.h:1360
bool GetSupportsTV() const
To get with SetSupportsTV changed values.
Definition General.h:1141
bool GetSupportsRecordingsRename() const
To get with SetSupportsRecordingsRename changed values.
Definition General.h:1286
bool GetSupportsDescrambleInfo() const
To get with SetSupportsDescrambleInfo changed values.
Definition General.h:1310
void SetSupportsRecordingPlayCount(bool supportsRecordingPlayCount)
Set true if the backend supports play count for recordings.
Definition General.h:1251
bool GetSupportsRecordingEdl() const
To get with SetSupportsRecordingEdl changed values.
Definition General.h:1277
void SetSupportsChannelScan(bool supportsChannelScan)
Set true if this add-on support scanning for new channels on the backend.
Definition General.h:1208
bool GetHandlesInputStream() const
To get with SetHandlesInputStream changed values.
Definition General.h:1239
bool GetSupportsEPG() const
To get with SetSupportsEPG changed values.
Definition General.h:1128
bool GetSupportsChannelGroups() const
To get with SetSupportsChannelGroups changed values.
Definition General.h:1201
bool GetSupportsTimers() const
To get with SetSupportsTimers changed values.
Definition General.h:1174
std::vector< PVRTypeIntValue > GetValues() const
To get with SetValues changed values.
Definition General.h:355
int GetMinValue() const
To get with SetMinValue changed values.
Definition General.h:375
void SetStep(int step)
optional The amount for increasing the values for this setting from min to max.
Definition General.h:379
void SetValues(const std::vector< PVRTypeIntValue > &values, int defaultValue=-1)
optional value definitions.
Definition General.h:347
void SetMaxValue(int maxValue)
optional The maximum value for this setting.
Definition General.h:386
void SetMinValue(int minValue)
optional The minimum value for this setting.
Definition General.h:372
int GetStep() const
To get with SetStep changed values.
Definition General.h:382
void SetDefaultValue(int defaultValue)
optional The default value for this setting.
Definition General.h:365
int GetMaxValue() const
To get with SetMaxValue changed values.
Definition General.h:389
PVRIntSettingDefinition(const std::vector< PVRTypeIntValue > &settingValues, int defaultValue, int minValue, int step, int maxValue)
Class constructor with integrated values.
Definition General.h:322
int GetDefaultValue() const
To get with SetDefaultValue changed values.
Definition General.h:368
void SetId(unsigned int defId)
required This setting definition's identifier.
Definition General.h:698
void SetStringDefinition(const PVRStringSettingDefinition &def)
optional
Definition General.h:774
PVRSettingDefinition(unsigned int settingDefId, const std::string &settingDefName, uint64_t readonlyConditions, const PVRStringSettingDefinition &settingDef)
Class constructor with integrated values.
Definition General.h:661
PVRSettingDefinition(unsigned int settingDefId, const std::string &settingDefName, PVR_SETTING_TYPE eType, uint64_t readonlyConditions, const PVRIntSettingDefinition &intSettingDef, const PVRStringSettingDefinition &stringSettingDef)
Class constructor with integrated values.
Definition General.h:681
uint64_t GetReadonlyConditions() const
To get with SetReadonlyConditions changed values.
Definition General.h:729
unsigned int GetId() const
To get with SetId changed values.
Definition General.h:701
void SetType(PVR_SETTING_TYPE eType)
required This setting definition's identifier.
Definition General.h:715
PVRIntSettingDefinition GetIntDefinition() const
To get with SetIntDefinition changed values.
Definition General.h:745
PVRSettingDefinition(unsigned int settingDefId, const std::string &settingDefName, uint64_t readonlyConditions, const PVRIntSettingDefinition &settingDef)
Class constructor with integrated values.
Definition General.h:643
void SetName(const std::string &name)
required A short localized string with the name of the setting.
Definition General.h:705
std::string GetName() const
To get with SetName changed values.
Definition General.h:711
PVRStringSettingDefinition GetStringDefinition() const
To get with SetStringDefinition changed values.
Definition General.h:780
void SetIntDefinition(const PVRIntSettingDefinition &def)
optional
Definition General.h:739
void SetReadonlyConditions(uint64_t conditions)
optional The read-only conditions value for this setting. PVR_SETTING_READONLY_CONDITION_* enum value...
Definition General.h:723
PVR_SETTING_TYPE GetType() const
To get with SetType changed values.
Definition General.h:718
void SetAllowEmptyValue(bool allowEmptyValue)
optional The allow empty values flag for this setting.
Definition General.h:538
std::string GetDefaultValue() const
To get with SetDefaultValue changed values.
Definition General.h:531
std::vector< PVRTypeStringValue > GetValues() const
To get with SetValues changed values.
Definition General.h:515
bool GetAllowEmptyValue() const
To get with SetAllowEmptyValue changed values.
Definition General.h:544
void SetValues(const std::vector< PVRTypeStringValue > &values, const std::string &defaultValue="")
optional value definitions.
Definition General.h:506
PVRStringSettingDefinition(const std::vector< PVRTypeStringValue > &settingValues, const std::string &defaultValue, bool allowEmptyValue)
Class constructor with integrated values.
Definition General.h:485
void SetDefaultValue(const std::string &defaultValue)
optional The default value for this setting.
Definition General.h:525
void SetValue(int value)
To set with the identification value.
Definition General.h:71
std::string GetDescription() const
To get with the description text of the value.
Definition General.h:83
void SetDescription(const std::string &description)
To set with the description text of the value.
Definition General.h:77
int GetValue() const
To get with the identification value.
Definition General.h:74
PVRTypeIntValue(int value, const std::string &description)
Class constructor with integrated value set.
Definition General.h:64
PVRTypeIntValue()=default
Default class constructor.
std::string GetDescription() const
To get with the description text of the value.
Definition General.h:213
std::string GetValue() const
To get with the identification value.
Definition General.h:204
void SetDescription(const std::string &description)
To set with the description text of the value.
Definition General.h:207
void SetValue(const std::string &value)
To set with the identification value.
Definition General.h:198
PVRTypeStringValue()=default
Default class constructor.
PVRTypeStringValue(const std::string &value, const std::string &description)
Class constructor with integrated value set.
Definition General.h:191
"C" PVR add-on capabilities.
Definition pvr_general.h:350
"C" Representation of an integer value, including a description.
Definition pvr_defines.h:26
"C" Representation of a string value, including a description
Definition pvr_defines.h:35
"C" Representation of an integer setting definition.
Definition pvr_general.h:388
"C" Representation of a named value.
Definition pvr_defines.h:44
"C" Representation of a setting definition.
Definition pvr_general.h:422
"C" Representation of a key-value pair, either {int,int} or {int,string}, depending on the type set.
Definition pvr_general.h:441
"C" Representation of a string setting definition.
Definition pvr_general.h:406