gloox 1.0.28
gpgsigned.h
1/*
2 Copyright (c) 2006-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#ifndef GPGSIGNED_H__
15#define GPGSIGNED_H__
16
17#include "gloox.h"
18#include "stanzaextension.h"
19
20#include <string>
21
22namespace gloox
23{
24
25 class Tag;
26
38 class GLOOX_API GPGSigned : public StanzaExtension
39 {
40 public:
45 GPGSigned( const std::string& signature );
46
52 GPGSigned( const Tag* tag );
53
57 virtual ~GPGSigned();
58
63 const std::string& signature() const { return m_signature; }
64
65 // reimplemented from StanzaExtension
66 virtual const std::string& filterString() const;
67
68 // reimplemented from StanzaExtension
69 virtual StanzaExtension* newInstance( const Tag* tag ) const
70 {
71 return new GPGSigned( tag );
72 }
73
74 // reimplemented from StanzaExtension
75 Tag* tag() const;
76
77 // reimplemented from StanzaExtension
78 virtual StanzaExtension* clone() const
79 {
80 return new GPGSigned( *this );
81 }
82
83 private:
84 std::string m_signature;
85 bool m_valid;
86
87 };
88
89}
90
91#endif // GPGSIGNED_H__
This is an abstraction of a jabber:x:signed namespace element, as used in XEP-0027 (Current Jabber Op...
Definition gpgsigned.h:39
virtual StanzaExtension * clone() const
Definition gpgsigned.h:78
virtual StanzaExtension * newInstance(const Tag *tag) const
Definition gpgsigned.h:69
const std::string & signature() const
Definition gpgsigned.h:63
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
The namespace for the gloox library.
Definition adhoc.cpp:28