[asterisk-scf-commits] asterisk-scf/integration/bridging.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Mon Sep 13 13:30:25 CDT 2010


branch "master" has been updated
       via  b49a264afe2490fa5aa24c61cd36b02c86fffb7d (commit)
      from  97ae1fa44ff23745ec65cc93511797f31ca584f0 (commit)

Summary of changes:
 src/BridgeManagerListenerMgr.cpp |   45 ++++++++++++++++++++++++++++++++++++++
 src/BridgeManagerListenerMgr.h   |   38 ++++++++++++++++++++++++++++++++
 2 files changed, 83 insertions(+), 0 deletions(-)
 create mode 100644 src/BridgeManagerListenerMgr.cpp
 create mode 100644 src/BridgeManagerListenerMgr.h


- Log -----------------------------------------------------------------
commit b49a264afe2490fa5aa24c61cd36b02c86fffb7d
Author: Brent Eagles <beagles at digium.com>
Date:   Mon Sep 13 15:55:17 2010 -0230

    Adding files missing from previous push.

diff --git a/src/BridgeManagerListenerMgr.cpp b/src/BridgeManagerListenerMgr.cpp
new file mode 100644
index 0000000..e8e6ff0
--- /dev/null
+++ b/src/BridgeManagerListenerMgr.cpp
@@ -0,0 +1,45 @@
+/*
+* Asterisk Scalable Communications Framework
+*
+* Copyright (C) 2010 -- Digium, Inc.
+*
+* All rights reserved.
+*/
+
+#include "BridgeManagerListenerMgr.h"
+
+AsteriskSCF::BridgeService::BridgeManagerListenerMgr::BridgeManagerListenerMgr(const Ice::CommunicatorPtr& communicator, const std::string& name,
+        const AsteriskSCF::SessionCommunications::Bridging::V1::BridgeManagerPrx& source) :
+    AsteriskSCF::BridgeService::ListenerManagerT<AsteriskSCF::SessionCommunications::Bridging::V1::BridgeManagerListenerPrx>(communicator, name),
+    mPrx(source)
+{
+}
+
+void AsteriskSCF::BridgeService::BridgeManagerListenerMgr::bridgeCreated(const AsteriskSCF::SessionCommunications::Bridging::V1::BridgePrx& bridge)
+{
+    if(mPublisher)
+    {
+        mPublisher->bridgeCreated(mPrx, bridge);
+    }
+}
+
+void AsteriskSCF::BridgeService::BridgeManagerListenerMgr::stopped()
+{
+    if(mPublisher)
+    {
+        mPublisher->stopped(mPrx);
+    }
+}
+
+void AsteriskSCF::BridgeService::BridgeManagerListenerMgr::stopping()
+{
+    if(mPublisher)
+    {
+        mPublisher->stopping(mPrx);
+    }
+}
+
+void AsteriskSCF::BridgeService::BridgeManagerListenerMgr::setSource(const AsteriskSCF::SessionCommunications::Bridging::V1::BridgeManagerPrx& mgr)
+{
+    mPrx = mgr;
+}
diff --git a/src/BridgeManagerListenerMgr.h b/src/BridgeManagerListenerMgr.h
new file mode 100644
index 0000000..eb46b81
--- /dev/null
+++ b/src/BridgeManagerListenerMgr.h
@@ -0,0 +1,38 @@
+/*
+* Asterisk Scalable Communications Framework
+*
+* Copyright (C) 2010 -- Digium, Inc.
+*
+* All rights reserved.
+*/
+
+#pragma once
+
+#include <string>
+#include <Ice/Ice.h>
+#include "ListenerManager.h"
+#include <SessionCommunications/Bridging/BridgingIf.h>
+
+namespace AsteriskSCF
+{
+namespace BridgeService
+{
+    class BridgeManagerListenerMgr : virtual public ListenerManagerT<AsteriskSCF::SessionCommunications::Bridging::V1::BridgeManagerListenerPrx>
+    {
+    public:
+        BridgeManagerListenerMgr(const Ice::CommunicatorPtr& communicator, const std::string& name,
+                const AsteriskSCF::SessionCommunications::Bridging::V1::BridgeManagerPrx& source);
+
+        void bridgeCreated(const AsteriskSCF::SessionCommunications::Bridging::V1::BridgePrx& bridge);
+        void stopped();
+        void stopping();
+
+        void setSource(const AsteriskSCF::SessionCommunications::Bridging::V1::BridgeManagerPrx& source);
+    private:
+        AsteriskSCF::SessionCommunications::Bridging::V1::BridgeManagerPrx mPrx;
+        AsteriskSCF::SessionCommunications::Bridging::V1::BridgeManagerListenerPrx mPublisher;
+    };
+
+    typedef IceUtil::Handle<BridgeManagerListenerMgr> BridgeManagerListenerMgrPtr;
+} // End of namespace BridgeService
+} // End of namespace AsteriskSCF

-----------------------------------------------------------------------


-- 
asterisk-scf/integration/bridging.git



More information about the asterisk-scf-commits mailing list