List:NDB Connectors« Previous MessageNext Message »
From:Monty Taylor Date:December 6 2007 11:14am
Subject:Rev 281: Merged. in http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/telco-6.3
View as plain text  
At http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/telco-6.3

------------------------------------------------------------
revno: 281
revision-id: mtaylor@stripped
parent: mtaylor@stripped
parent: mtaylor@stripped
committer: Monty Taylor <mtaylor@stripped>
branch nick: telco-6.3
timestamp: Thu 2007-12-06 03:14:09 -0800
message:
  Merged.
modified:
  mgmpp/listeners.cpp            listeners.cpp-20071206045946-ugo2x6q480oerp8f-8
  mgmpp/listeners.hpp            listeners.hpp-20071206045946-ugo2x6q480oerp8f-9
    ------------------------------------------------------------
    revno: 192.1.25.1.107.1.18
    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 281: Merged. in http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/telco-6.3Monty Taylor6 Dec