gloox  1.0.28
attention.cpp
1 /*
2  Copyright (c) 2009-2023 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 
23  {
24  }
25 
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 
37  {
38  Tag* t = new Tag( "attention" );
40  return t;
41  }
42 
43 }
virtual ~Attention()
Definition: attention.cpp:26
virtual const std::string & filterString() const
Definition: attention.cpp:30
virtual Tag * tag() const
Definition: attention.cpp:36
This class abstracts a stanza extension, which is usually an XML child element in a specific namespac...
This is an abstraction of an XML element.
Definition: tag.h:47
bool setXmlns(const std::string &xmlns, const std::string &prefix=EmptyString)
Definition: tag.cpp:522
The namespace for the gloox library.
Definition: adhoc.cpp:28
const std::string XMLNS_ATTENTION
Definition: gloox.cpp:108
@ ExtAttention