36 ExtcapValue(QString value, QString call,
bool enabled,
bool isDefault) :
37 _value(value), _call(call), _enabled(enabled),
38 _isDefault(isDefault), _depth(0) {}
41 void setChildren(ExtcapValueList children);
42 ExtcapValueList children()
44 if (_children.length() == 0)
45 return ExtcapValueList();
49 QString value()
const {
return _value; }
50 const QString call()
const {
return _call; }
51 bool enabled()
const {
return _enabled; }
52 bool isDefault()
const {
return _isDefault; }
54 int depth() {
return _depth; }
65 ExtcapValueList _children;
80 virtual QWidget * createLabel(QWidget * parent = 0);
81 virtual QWidget * createEditor(QWidget * parent = 0);
83 virtual extcap_arg * argument() {
return _argument; }
84 virtual QString call();
85 virtual QString value();
86 virtual QString defaultValue();
89 virtual bool isValid();
93 QString prefKey(
const QString & device_name);
94 virtual QString prefValue();
98 virtual QString group()
const;
99 virtual int argNr()
const;
102 virtual bool isSetDefaultValueSupported();
105 virtual void setDefaultValue();
114 ExtcapValueList loadValues(QString parent);
117 ExtcapValueList values;
123 const QString label_style;
127 void onStringChanged(QString);
128 void onIntChanged(
int);
129 void onBoolChanged(
bool);
Definition extcap_argument.h:136