summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/client/ClientChannel.h
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-08-05 13:25:36 +0000
committerGordon Sim <gsim@apache.org>2007-08-05 13:25:36 +0000
commitb2efcb6ed3e1e2104836928cda81ed69f2f24559 (patch)
tree392ae403dcb0d32da3edaeaf8a1f497679d9102c /cpp/src/qpid/client/ClientChannel.h
parentb2fadec5d86e278d96112e915e67aec934e91046 (diff)
downloadqpid-python-b2efcb6ed3e1e2104836928cda81ed69f2f24559.tar.gz
Added first cut of generated client interface.
Old channel interface still supported; shares SessionCore with the new interface. Todo: allow applications to signal completion of received commands; keywrod args for interface. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@562866 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/ClientChannel.h')
-rw-r--r--cpp/src/qpid/client/ClientChannel.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/cpp/src/qpid/client/ClientChannel.h b/cpp/src/qpid/client/ClientChannel.h
index 4853603281..5feba6262f 100644
--- a/cpp/src/qpid/client/ClientChannel.h
+++ b/cpp/src/qpid/client/ClientChannel.h
@@ -26,9 +26,8 @@
#include "ClientExchange.h"
#include "ClientMessage.h"
#include "ClientQueue.h"
-#include "ChannelHandler.h"
-#include "ExecutionHandler.h"
-#include "FutureFactory.h"
+#include "ConnectionImpl.h"
+#include "SessionCore.h"
#include "qpid/Exception.h"
#include "qpid/sys/Mutex.h"
#include "qpid/sys/Runnable.h"
@@ -71,7 +70,6 @@ class Channel : private sys::Runnable
typedef std::map<std::string, Consumer> ConsumerMap;
mutable sys::Mutex lock;
- Connection* connection;
sys::Thread dispatcher;
uint16_t prefetch;
@@ -85,11 +83,10 @@ class Channel : private sys::Runnable
bool running;
ConsumerMap consumers;
- ExecutionHandler executionHandler;
- ChannelHandler channelHandler;
+ ConnectionImpl::shared_ptr connection;
+ SessionCore::shared_ptr session;
framing::ChannelId channelId;
BlockingQueue<ReceivedContent::shared_ptr> gets;
- FutureFactory futures;
void stop();
@@ -121,7 +118,7 @@ class Channel : private sys::Runnable
sync, body, BodyType::CLASS_ID, BodyType::METHOD_ID));
}
- void open(framing::ChannelId, Connection&);
+ void open(ConnectionImpl::shared_ptr, SessionCore::shared_ptr);
void closeInternal();
void peerClose(uint16_t, const std::string&);
@@ -257,9 +254,6 @@ class Channel : private sys::Runnable
/** True if the channel is open */
bool isOpen() const;
- /** Get the connection associated with this channel */
- Connection& getConnection() { return *connection; }
-
/** Return the protocol version */
framing::ProtocolVersion getVersion() const { return version ; }