[config] String zone;
[config, internal, get_protected] Array::Ptr templates;
[config] Dictionary::Ptr methods;
- [config] Dictionary::Ptr vars (VarsRaw);
[get_protected] bool active;
[get_protected] bool paused {
default {{{ return true; }}}
[get_protected] bool pause_called;
[get_protected] bool resume_called;
[enum] HAMode ha_mode (HAMode);
- Dictionary::Ptr authority_info;
[protected] Dictionary::Ptr extensions;
- [state] Value override_vars;
-
[protected] bool state_loaded;
};
if (!GetOverrideCheckPeriod().IsEmpty())
attrs |= ModAttrCheckTimeperiod;
- if (!GetOverrideVars().IsEmpty())
+ if (GetOverrideVars())
attrs |= ModAttrCustomVariable;
// TODO: finish
{
int attrs = 0;
- if (!GetOverrideVars().IsEmpty())
+ if (GetOverrideVars())
attrs |= ModAttrCustomVariable;
return attrs;
Dictionary::Ptr CustomVarObject::GetVars(void) const
{
- if (!GetOverrideVars().IsEmpty())
+ if (GetOverrideVars())
return GetOverrideVars();
else
return GetVarsRaw();
{
[config] Dictionary::Ptr vars (VarsRaw);
- [state] Value override_vars;
+ [state] Dictionary::Ptr override_vars;
};
}
default {{{ return 1800; }}}
};
[config] String period (PeriodRaw);
- [config] Dictionary::Ptr macros;
[config, protected] Array::Ptr users (UsersRaw);
[config, protected] Array::Ptr user_groups (UserGroupsRaw);
[config] Dictionary::Ptr times;
{
int attrs = 0;
- if (!GetOverrideVars().IsEmpty())
+ if (GetOverrideVars())
attrs |= ModAttrCustomVariable;
return attrs;