gloox
1.0.22
src
attention.cpp
1
/*
2
Copyright (c) 2009-2017 by Jakob Schröter <js@camaya.net>
3
This file is part of the gloox library. http://camaya.net/gloox
4
5
This software is distributed under a license. The full license
6
agreement can be found in the file LICENSE in this distribution.
7
This software may not be copied, modified, sold or distributed
8
other than expressed in the named license agreement.
9
10
This software is distributed without any warranty.
11
*/
12
13
14
15
#include "attention.h"
16
#include "tag.h"
17
18
namespace
gloox
19
{
20
21
Attention::Attention
()
22
:
StanzaExtension
(
ExtAttention
)
23
{
24
}
25
26
Attention::~Attention
()
27
{
28
}
29
30
const
std::string&
Attention::filterString
()
const
31
{
32
static
const
std::string filter =
"/message/attention[@xmlns='"
+
XMLNS_ATTENTION
+
"']"
;
33
return
filter;
34
}
35
36
Tag
*
Attention::tag
()
const
37
{
38
Tag
* t =
new
Tag
(
"attention"
);
39
t->
setXmlns
(
XMLNS_ATTENTION
);
40
return
t;
41
}
42
43
}
gloox::StanzaExtension
This class abstracts a stanza extension, which is usually an XML child element in a specific namespac...
Definition:
stanzaextension.h:203
gloox::XMLNS_ATTENTION
const std::string XMLNS_ATTENTION
Definition:
gloox.cpp:108
gloox::ExtAttention
@ ExtAttention
Definition:
stanzaextension.h:89
gloox::Attention::tag
virtual Tag * tag() const
Definition:
attention.cpp:36
gloox
The namespace for the gloox library.
Definition:
adhoc.cpp:27
gloox::Attention::~Attention
virtual ~Attention()
Definition:
attention.cpp:26
gloox::Tag
This is an abstraction of an XML element.
Definition:
tag.h:46
gloox::Attention::Attention
Attention()
Definition:
attention.cpp:21
gloox::Attention::filterString
virtual const std::string & filterString() const
Definition:
attention.cpp:30
gloox::Tag::setXmlns
bool setXmlns(const std::string &xmlns, const std::string &prefix=EmptyString)
Definition:
tag.cpp:522
Generated on Mon Apr 25 2022 14:03:04 for gloox by
1.8.17