Go to the documentation of this file.00001 #ifndef QPID_CLIENT_SUBSCRIPTIONSETTINGS_H
00002 #define QPID_CLIENT_SUBSCRIPTIONSETTINGS_H
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 #include "qpid/client/FlowControl.h"
00025 #include "qpid/framing/enum.h"
00026 
00027 namespace qpid {
00028 namespace client {
00029 
00031 using namespace qpid::framing::message;
00032 
00033 enum CompletionMode {
00034     MANUAL_COMPLETION = 0,
00035     COMPLETE_ON_DELIVERY = 1,
00036     COMPLETE_ON_ACCEPT = 2
00037 };
00041 struct SubscriptionSettings
00042 {
00043     SubscriptionSettings(
00044         FlowControl flow=FlowControl::unlimited(),
00045         AcceptMode accept=ACCEPT_MODE_EXPLICIT,
00046         AcquireMode acquire=ACQUIRE_MODE_PRE_ACQUIRED,
00047         unsigned int autoAck_=1,
00048         CompletionMode completion=COMPLETE_ON_DELIVERY
00049     ) : flowControl(flow), acceptMode(accept), acquireMode(acquire), autoAck(autoAck_), completionMode(completion), exclusive(false) {}
00050 
00051     FlowControl flowControl;    
00052 
00063     AcceptMode acceptMode;      
00064 
00081     AcquireMode acquireMode;    
00082 
00090     unsigned int autoAck;
00113     CompletionMode completionMode;
00118     bool exclusive;
00119 };
00120 
00121 }} 
00122 
00123 #endif