1 /*------------------------------------------------------------------------------
 2 Name:      GetQos.cpp
 3 Project:   xmlBlaster.org
 4 Copyright: xmlBlaster.org, see xmlBlaster-LICENSE file
 5 ------------------------------------------------------------------------------*/
 6 
 7 /**
 8  * This class encapsulates the QoS of an erase() request. 
 9  * <p />
10  * A full specified <b>erase</b> qos could look like this:<br />
11  * <pre>
12  *&lt;qos>
13  *   &lt;!-- The subscribers shall not be notified when this message is destroyed -->
14  *   &lt;notify>false&lt;/notify> <!-- currently not implemented -->
15  *&lt;/qos>
16  * </pre>
17  * <p />
18  * see xmlBlaster/src/dtd/XmlQoS.xml
19  * @see org.xmlBlaster.util.qos.QueryQosData
20  * @see org.xmlBlaster.util.qos.QueryQosSaxFactory
21  * @see <a href="http://www.xmlblaster.org/xmlBlaster/doc/requirements/interface.erase.html">erase interface</a>
22  */
23 
24 #include <client/qos/GetQos.h>
25 #include <util/Global.h>
26 
27 using namespace std;
28 using namespace org::xmlBlaster::util;
29 using namespace org::xmlBlaster::util::qos;
30 
31 namespace org { namespace xmlBlaster { namespace client { namespace qos {
32 
33 GetQos::GetQos(Global& global) : UnSubscribeQos(global)
34 {
35    ME = "GetQos";
36 }
37 
38 GetQos::GetQos(Global& global, const QueryQosData& data)
39    : UnSubscribeQos(global, data)
40 {
41    ME = "GetQos";
42 }
43 
44 
45 GetQos::GetQos(const GetQos& qos) : UnSubscribeQos(qos)
46 {
47 }
48 
49 GetQos& GetQos::operator =(const GetQos& qos)
50 {
51    data_ = qos.data_;
52    return *this;
53 }
54 
55 /**
56  * If false, the update contains not the content (it is a notify of change only)
57  * TODO: Implement in server!!!
58  */
59 void GetQos::setWantContent(bool content)
60 {
61    data_.setWantContent(content);
62 }
63 
64 /**
65  * Adds your subplied subscribe filter
66  */
67 void GetQos::addAccessFilter(const AccessFilterQos& filter)
68 {
69    data_.addAccessFilter(filter);
70 }
71 
72 /**
73  * Set the QoS which describes the history query settings. 
74  */
75 void GetQos::setHistoryQos(const HistoryQos& historyQos)
76 {
77    data_.setHistoryQos(historyQos);
78 }
79 
80 }}}} // namespace


syntax highlighted by Code2HTML, v. 0.9.1