gpgsigned.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 GPGSIGNED_H__
00015 #define GPGSIGNED_H__
00016 
00017 #include "stanzaextension.h"
00018 
00019 #include <string>
00020 
00021 namespace gloox
00022 {
00023 
00024   class Tag;
00025 
00037   class GLOOX_API GPGSigned : public StanzaExtension
00038   {
00039     public:
00044       GPGSigned( const std::string& signature );
00045 
00051       GPGSigned( Tag *tag );
00052 
00056       virtual ~GPGSigned();
00057 
00062       const std::string& signature() const { return m_signature; }
00063 
00064       // reimplemented from StanzaExtension
00065       Tag* tag() const;
00066 
00067     private:
00068       std::string m_signature;
00069       bool m_valid;
00070 
00071   };
00072 
00073 }
00074 
00075 #endif // GPGSIGNED_H__

Generated on Mon Dec 7 13:28:19 2009 for gloox by  doxygen 1.6.1