Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | Related Pages

jingletransport.cpp

00001 /*
00002   Copyright (c) 2008 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 #include "jingletransport.h"
00015 #include "tag.h"
00016 
00017 namespace gloox
00018 {
00019 
00020   namespace Jingle
00021   {
00022 
00023     const std::string& Transport::filterString() const
00024     {
00025       static const std::string filter = "./transport[@xmlns='" + xmlns() + "']";
00026       return filter;
00027     }
00028 
00029     Tag* Transport::tag() const
00030     {
00031       Tag* t = new Tag( "transport" );
00032       t->setXmlns( xmlns() );
00033       t->addChild( childTag() );
00034       return t;
00035     }
00036 
00037   }
00038 
00039 }

Generated on Mon Nov 17 02:45:11 2008 for gloox by  doxygen 1.4.1