}
}
-void ServiceDbObject::AddComments(Service::Ptr const& service)
+void ServiceDbObject::AddComments(const Service::Ptr& service)
{
/* dump all comments */
Dictionary::Ptr comments = service->GetComments();
}
}
-void ServiceDbObject::AddComment(Service::Ptr const& service, Dictionary::Ptr const& comment)
+void ServiceDbObject::AddComment(const Service::Ptr& service, const Dictionary::Ptr& comment)
{
Host::Ptr host = service->GetHost();
}
}
-void ServiceDbObject::AddCommentByType(DynamicObject::Ptr const& object, Dictionary::Ptr const& comment)
+void ServiceDbObject::AddCommentByType(const DynamicObject::Ptr& object, const Dictionary::Ptr& comment)
{
unsigned long entry_time = static_cast<long>(comment->Get("entry_time"));
unsigned long entry_time_usec = (comment->Get("entry_time") - entry_time) * 1000 * 1000;
OnQuery(query1);
}
-void ServiceDbObject::DeleteComments(Service::Ptr const& service)
+void ServiceDbObject::DeleteComments(const Service::Ptr& service)
{
/* delete all comments associated for this host/service */
Log(LogDebug, "ido", "delete comments for '" + service->GetName() + "'");
static void CommentsChangedHandler(const Service::Ptr& service, const String& id, CommentChangedType type);
- static void AddComments(Service::Ptr const& service);
- static void AddComment(Service::Ptr const& service, Dictionary::Ptr const& comment);
- static void AddCommentByType(DynamicObject::Ptr const& object, Dictionary::Ptr const& comment);
- static void DeleteComments(Service::Ptr const& service);
+ static void AddComments(const Service::Ptr& service);
+ static void AddComment(const Service::Ptr& service, const Dictionary::Ptr& comment);
+ static void AddCommentByType(const DynamicObject::Ptr& object, const Dictionary::Ptr& comment);
+ static void DeleteComments(const Service::Ptr& service);
};
}