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: 2016-12-01 18:45:36 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             : 
       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_KEYGENERATIONRESULT_H__
      24             : #define __GPGMEPP_KEYGENERATIONRESULT_H__
      25             : 
      26             : #include "gpgmefw.h"
      27             : #include "result.h"
      28             : #include "gpgmepp_export.h"
      29             : 
      30             : #include <memory>
      31             : 
      32             : namespace GpgME
      33             : {
      34             : 
      35             : class Error;
      36             : 
      37           0 : class GPGMEPP_EXPORT KeyGenerationResult : public Result
      38             : {
      39             : public:
      40             :     KeyGenerationResult();
      41             :     KeyGenerationResult(gpgme_ctx_t ctx, int error);
      42             :     KeyGenerationResult(gpgme_ctx_t ctx, const Error &error);
      43             :     explicit KeyGenerationResult(const Error &err);
      44             : 
      45           0 :     const KeyGenerationResult &operator=(KeyGenerationResult other)
      46             :     {
      47           0 :         swap(other);
      48           0 :         return *this;
      49             :     }
      50             : 
      51           0 :     void swap(KeyGenerationResult &other)
      52             :     {
      53           0 :         Result::swap(other);
      54             :         using std::swap;
      55           0 :         swap(this->d, other.d);
      56           0 :     }
      57             : 
      58             :     bool isNull() const;
      59             : 
      60             :     GPGMEPP_DEPRECATED bool primaryKeyGenerated() const
      61             :     {
      62             :         return isPrimaryKeyGenerated();
      63             :     }
      64             :     GPGMEPP_DEPRECATED bool subkeyGenerated() const
      65             :     {
      66             :         return isSubkeyGenerated();
      67             :     }
      68             :     bool isPrimaryKeyGenerated() const;
      69             :     bool isSubkeyGenerated() const;
      70             :     const char *fingerprint() const;
      71             : 
      72             : private:
      73             :     class Private;
      74             :     void init(gpgme_ctx_t ctx);
      75             :     std::shared_ptr<Private> d;
      76             : };
      77             : 
      78             : }
      79             : 
      80             : GPGMEPP_MAKE_STD_SWAP_SPECIALIZATION(KeyGenerationResult)
      81             : 
      82             : #endif // __GPGMEPP_KEYGENERATIONRESULT_H__

Generated by: LCOV version 1.11