mirror of https://github.com/Icinga/icinga2.git
parent
bb6db7978a
commit
ff974d4eee
|
@ -99,16 +99,17 @@ Object::Ptr Type::GetPrototype(void) const
|
||||||
void Type::SetPrototype(const Object::Ptr& object)
|
void Type::SetPrototype(const Object::Ptr& object)
|
||||||
{
|
{
|
||||||
m_Prototype = object;
|
m_Prototype = object;
|
||||||
|
NotifyField(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Type::SetField(int id, const Value& value)
|
void Type::SetField(int id, const Value& value, bool suppress_events, const Value& cookie)
|
||||||
{
|
{
|
||||||
if (id == 0) {
|
if (id == 0) {
|
||||||
SetPrototype(value);
|
SetPrototype(value);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object::SetField(id, value);
|
Object::SetField(id, value, suppress_events, cookie);
|
||||||
}
|
}
|
||||||
|
|
||||||
Value Type::GetField(int id) const
|
Value Type::GetField(int id) const
|
||||||
|
|
|
@ -94,7 +94,7 @@ public:
|
||||||
static void Register(const Type::Ptr& type);
|
static void Register(const Type::Ptr& type);
|
||||||
static Type::Ptr GetByName(const String& name);
|
static Type::Ptr GetByName(const String& name);
|
||||||
|
|
||||||
virtual void SetField(int id, const Value& value);
|
virtual void SetField(int id, const Value& value, bool suppress_events = false, const Value& cookie = Empty);
|
||||||
virtual Value GetField(int id) const;
|
virtual Value GetField(int id) const;
|
||||||
|
|
||||||
virtual std::vector<String> GetLoadDependencies(void) const;
|
virtual std::vector<String> GetLoadDependencies(void) const;
|
||||||
|
|
Loading…
Reference in New Issue