LCOV - code coverage report
Current view: top level - lang/cpp/src - keygenerationresult.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 0 8 0.0 %
Date: 2018-11-14 16:53:58 Functions: 0 4 0.0 %

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

Generated by: LCOV version 1.13