gloox  1.0
attention.cpp
00001 /*
00002   Copyright (c) 2009 by Jakob Schroeter <js@camaya.net>
00003   This file is part of the gloox library. http://camaya.net/gloox
00004 
00005   This software is distributed under a license. The full license
00006   agreement can be found in the file LICENSE in this distribution.
00007   This software may not be copied, modified, sold or distributed
00008   other than expressed in the named license agreement.
00009 
00010   This software is distributed without any warranty.
00011 */
00012 
00013 
00014 
00015 #include "attention.h"
00016 #include "tag.h"
00017 
00018 namespace gloox
00019 {
00020 
00021   Attention::Attention()
00022     : StanzaExtension( ExtAttention )
00023   {
00024   }
00025 
00026   Attention::~Attention()
00027   {
00028   }
00029 
00030   const std::string& Attention::filterString() const
00031   {
00032     static const std::string filter = "/message/attention[@xmlns='" + XMLNS_ATTENTION + "']";
00033     return filter;
00034   }
00035 
00036   Tag* Attention::tag() const
00037   {
00038     Tag* t = new Tag( "attention" );
00039     t->setXmlns( XMLNS_ATTENTION );
00040     return t;
00041   }
00042 
00043 }