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

oob.h

00001 /*
00002   Copyright (c) 2006-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 #ifndef OOB_H__
00015 #define OOB_H__
00016 
00017 #include "gloox.h"
00018 #include "stanzaextension.h"
00019 
00020 #include <string>
00021 
00022 namespace gloox
00023 {
00024 
00025   class Tag;
00026 
00035   class GLOOX_API OOB : public StanzaExtension
00036   {
00037     public:
00045       OOB( const std::string& url, const std::string& description, bool iqext );
00046 
00053       OOB( const Tag* tag );
00054 
00058       virtual ~OOB();
00059 
00064       const std::string& url() const { return m_url; }
00065 
00070       const std::string& desc() const { return m_desc; }
00071 
00072       // reimplemented from StanzaExtension
00073       virtual const std::string& filterString() const;
00074 
00075       // reimplemented from StanzaExtension
00076       virtual StanzaExtension* newInstance( const Tag* tag ) const
00077       {
00078         return new OOB( tag );
00079       }
00080 
00081       // reimplemented from StanzaExtension
00082       Tag* tag() const;
00083 
00084     private:
00085       std::string m_xmlns;
00086       std::string m_url;
00087       std::string m_desc;
00088       bool m_iqext;
00089       bool m_valid;
00090 
00091   };
00092 
00093 }
00094 
00095 #endif // OOB_H__

Generated on Mon Sep 1 09:25:10 2008 for gloox by  doxygen 1.4.1