mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 14:44:32 +02:00
parent
bb6db7978a
commit
ff974d4eee
@ -99,16 +99,17 @@ Object::Ptr Type::GetPrototype(void) const
|
||||
void Type::SetPrototype(const Object::Ptr& 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) {
|
||||
SetPrototype(value);
|
||||
return;
|
||||
}
|
||||
|
||||
Object::SetField(id, value);
|
||||
Object::SetField(id, value, suppress_events, cookie);
|
||||
}
|
||||
|
||||
Value Type::GetField(int id) const
|
||||
|
@ -94,7 +94,7 @@ public:
|
||||
static void Register(const Type::Ptr& type);
|
||||
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 std::vector<String> GetLoadDependencies(void) const;
|
||||
|
Loading…
x
Reference in New Issue
Block a user