1 /*------------------------------------------------------------------------------
2 Name: SubscribeKey.cpp
3 Project: xmlBlaster.org
4 Copyright: xmlBlaster.org, see xmlBlaster-LICENSE file
5 ------------------------------------------------------------------------------*/
6
7 #include <client/key/SubscribeKey.h>
8 #include <util/Global.h>
9
10 using namespace std;
11 using namespace org::xmlBlaster::util;
12 using namespace org::xmlBlaster::util::key;
13
14 namespace org { namespace xmlBlaster { namespace client { namespace key {
15
16 SubscribeKey::SubscribeKey(Global& global)
17 : UnSubscribeKey(global)
18 {
19 }
20
21 SubscribeKey::SubscribeKey(Global& global, const string& query, const string& queryType)
22 : UnSubscribeKey(global, query, queryType)
23 {
24 }
25
26 SubscribeKey::SubscribeKey(Global& global, const QueryKeyData& data)
27 : UnSubscribeKey(global, data)
28 {
29 }
30
31 SubscribeKey::SubscribeKey(const SubscribeKey& key)
32 : UnSubscribeKey(key)
33 {
34 }
35
36 SubscribeKey& SubscribeKey::operator =(const SubscribeKey& key)
37 {
38 queryKeyData_ = key.queryKeyData_;
39 return *this;
40 }
41
42 void SubscribeKey::setDomain(const string& domain)
43 {
44 queryKeyData_.setDomain(domain);
45 }
46
47 string SubscribeKey::getDomain() const
48 {
49 return queryKeyData_.getDomain();
50 }
51
52 }}}} // namespace
syntax highlighted by Code2HTML, v. 0.9.1