LCOV - code coverage report
Current view: top level - lang/cpp/src - notation.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 0 1 0.0 %
Date: 2016-09-12 13:07:23 Functions: 0 2 0.0 %

          Line data    Source code
       1             : /*
       2             :   notation.h - wraps a gpgme verify result
       3             :   Copyright (C) 2004, 2007 Klarälvdalens Datakonsult AB
       4             : 
       5             :   This file is part of GPGME++.
       6             : 
       7             :   GPGME++ is free software; you can redistribute it and/or
       8             :   modify it under the terms of the GNU Library General Public
       9             :   License as published by the Free Software Foundation; either
      10             :   version 2 of the License, or (at your option) any later version.
      11             : 
      12             :   GPGME++ is distributed in the hope that it will be useful,
      13             :   but WITHOUT ANY WARRANTY; without even the implied warranty of
      14             :   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      15             :   GNU Library General Public License for more details.
      16             : 
      17             :   You should have received a copy of the GNU Library General Public License
      18             :   along with GPGME++; see the file COPYING.LIB.  If not, write to the
      19             :   Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
      20             :   Boston, MA 02110-1301, USA.
      21             : */
      22             : 
      23             : #ifndef __GPGMEPP_NOTATION_H__
      24             : #define __GPGMEPP_NOTATION_H__
      25             : 
      26             : #include "gpgmefw.h"
      27             : #include "verificationresult.h"
      28             : #include "gpgmepp_export.h"
      29             : 
      30             : #include <memory>
      31             : 
      32             : #include <iosfwd>
      33             : 
      34             : namespace GpgME
      35             : {
      36             : 
      37           0 : class GPGMEPP_EXPORT Notation
      38             : {
      39             :     friend class ::GpgME::Signature;
      40             :     Notation(const std::shared_ptr<VerificationResult::Private> &parent, unsigned int sindex, unsigned int nindex);
      41             : public:
      42             :     Notation();
      43             :     explicit Notation(gpgme_sig_notation_t nota);
      44             : 
      45             :     const Notation &operator=(Notation other)
      46             :     {
      47             :         swap(other);
      48             :         return *this;
      49             :     }
      50             : 
      51             :     void swap(Notation &other)
      52             :     {
      53             :         using std::swap;
      54             :         swap(this->d, other.d);
      55             :     }
      56             : 
      57             :     bool isNull() const;
      58             : 
      59             :     const char *name() const;
      60             :     const char *value() const;
      61             : 
      62             :     enum Flags {
      63             :         NoFlags = 0,
      64             :         HumanReadable = 1,
      65             :         Critical = 2
      66             :     };
      67             :     Flags flags() const;
      68             : 
      69             :     bool isHumanReadable() const;
      70             :     bool isCritical() const;
      71             : 
      72             : private:
      73             :     class Private;
      74             :     std::shared_ptr<Private> d;
      75             : };
      76             : 
      77             : GPGMEPP_EXPORT std::ostream &operator<<(std::ostream &os, const Notation &nota);
      78             : GPGMEPP_EXPORT std::ostream &operator<<(std::ostream &os, Notation::Flags flags);
      79             : 
      80             : }
      81             : 
      82             : GPGMEPP_MAKE_STD_SWAP_SPECIALIZATION(Notation)
      83             : 
      84             : #endif // __GPGMEPP_NOTATION_H__

Generated by: LCOV version 1.11