gloox
1.0.1
Main Page
Related Pages
Namespaces
Classes
Files
File List
src
attention.cpp
1
/*
2
Copyright (c) 2009-2012 by Jakob Schroeter <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
}
Generated on Sun Jun 30 2013 14:37:36 for gloox by
1.8.1.2