From 9d199b74aee76859480a7ee92d95c6db42028b43 Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Tue, 7 Oct 2008 21:47:35 +0000 Subject: QPID-1327 - Event support for Management git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@702651 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/examples/qmf-agent/example.cpp | 3 ++- cpp/examples/qmf-agent/schema.xml | 17 ++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'cpp/examples') diff --git a/cpp/examples/qmf-agent/example.cpp b/cpp/examples/qmf-agent/example.cpp index 7c514b1010..e24e729e1d 100644 --- a/cpp/examples/qmf-agent/example.cpp +++ b/cpp/examples/qmf-agent/example.cpp @@ -26,6 +26,7 @@ #include "qmf/org/apache/qpid/agent/example/Parent.h" #include "qmf/org/apache/qpid/agent/example/Child.h" #include "qmf/org/apache/qpid/agent/example/ArgsParentCreate_child.h" +#include "qmf/org/apache/qpid/agent/example/EventChildCreated.h" #include "qmf/org/apache/qpid/agent/example/Package.h" #include @@ -129,7 +130,7 @@ Manageable::status_t CoreClass::ManagementMethod(uint32_t methodId, Args& args, children.push_back(child); - mgmtObject->event_childCreated(ioArgs.i_name); + agent->raiseEvent(_qmf::EventChildCreated(ioArgs.i_name)); return STATUS_OK; } diff --git a/cpp/examples/qmf-agent/schema.xml b/cpp/examples/qmf-agent/schema.xml index 22ecabb8a5..1bf701a655 100644 --- a/cpp/examples/qmf-agent/schema.xml +++ b/cpp/examples/qmf-agent/schema.xml @@ -37,14 +37,6 @@ - - - - - - - - @@ -59,7 +51,14 @@ - + + + + + + + + -- cgit v1.2.1