List:NDB Connectors« Previous MessageNext Message »
From:Monty Taylor Date:December 6 2007 11:13am
Subject:Rev 342: Readded Connected events... where did those manage to run off to? in http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/devel
View as plain text  
At http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/devel

------------------------------------------------------------
revno: 342
revision-id: mtaylor@stripped
parent: mtaylor@stripped
committer: Monty Taylor <mtaylor@stripped>
branch nick: devel
timestamp: Thu 2007-12-06 03:13:17 -0800
message:
  Readded Connected events... where did those manage to run off to? 
modified:
  mgmpp/listeners.cpp            listeners.cpp-20071206045946-ugo2x6q480oerp8f-8
  mgmpp/listeners.hpp            listeners.hpp-20071206045946-ugo2x6q480oerp8f-9
=== modified file 'mgmpp/listeners.cpp'
--- a/mgmpp/listeners.cpp	2007-12-06 08:07:23 +0000
+++ b/mgmpp/listeners.cpp	2007-12-06 11:13:17 +0000
@@ -164,6 +164,16 @@
 }
 
 
+Ndb_logevent_type  ConnectedTypeListener::getEventType() {
+  return NDB_LE_Connected;
+}
+void  ConnectedTypeListener::le_handleEvent(const ndb_logevent & event) {
+//  ndb_logevent &theEvent = *event;
+  wrappedEvent=new Connected(event);
+  handleEvent(wrappedEvent);
+  delete wrappedEvent;
+}
+
 Ndb_logevent_type  DisconnectedTypeListener::getEventType() {
   return NDB_LE_Disconnected;
 }

=== modified file 'mgmpp/listeners.hpp'
--- a/mgmpp/listeners.hpp	2007-12-06 08:07:23 +0000
+++ b/mgmpp/listeners.hpp	2007-12-06 11:13:17 +0000
@@ -210,6 +210,19 @@
 
 };
 
+class ConnectedTypeListener : public NdbLogEventTypeListener {
+
+private:
+
+  Connected * wrappedEvent;
+
+public:
+
+  virtual void handleEvent(Connected * event) {};
+  void le_handleEvent(const ndb_logevent & event);
+  Ndb_logevent_type getEventType();
+
+};
 class DisconnectedTypeListener : public NdbLogEventTypeListener {
 
 private:

Thread
Rev 342: Readded Connected events... where did those manage to run off to? in http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/develMonty Taylor6 Dec