Loading...
Searching...
No Matches
generic_file_overlay_for_gpgme.hpp
Go to the documentation of this file.
//*********************************************************************/
// dar - disk archive - a backup/restoration program
// Copyright (C) 2002-2026 Denis Corbin
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
//
// to contact the author, see the AUTHOR file
/*********************************************************************/
#ifndef GENERIC_FILE_OVERLAY_FOR_GPGME_HPP
#define GENERIC_FILE_OVERLAY_FOR_GPGME_HPP
extern "C"
{
#if HAVE_GPGME_H
#include <gpgme.h>
#endif
}
#include "../my_config.h"
#include "generic_file.hpp"
namespace libdar
{
class generic_file_overlay_for_gpgme
{
public:
generic_file_overlay_for_gpgme(generic_file *f);
generic_file_overlay_for_gpgme(const generic_file_overlay_for_gpgme & ref) = delete;
generic_file_overlay_for_gpgme(generic_file_overlay_for_gpgme && re) noexcept = delete;
generic_file_overlay_for_gpgme & operator = (const generic_file_overlay_for_gpgme & ref) = delete;
generic_file_overlay_for_gpgme & operator = (generic_file_overlay_for_gpgme && ref) noexcept = delete;
#ifdef GPGME_SUPPORT
~generic_file_overlay_for_gpgme() { gpgme_data_release(handle); };
gpgme_data_t get_gpgme_handle() const { return handle; };
generic_file *get_below() { return below; };
private:
generic_file *below;
gpgme_data_t handle;
gpgme_data_cbs cbs;
#endif
};
} // end of namespace
#endif
libdar::generic_file_overlay_for_gpgme::generic_file_overlay_for_gpgme
generic_file_overlay_for_gpgme(generic_file_overlay_for_gpgme &&re) noexcept=delete
no move constructor allowed
libdar::generic_file_overlay_for_gpgme::generic_file_overlay_for_gpgme
generic_file_overlay_for_gpgme(generic_file *f)
create a gpgme data buffer of the given generic_file
libdar::generic_file_overlay_for_gpgme::operator=
generic_file_overlay_for_gpgme & operator=(const generic_file_overlay_for_gpgme &ref)=delete
no asignment operator
libdar::generic_file_overlay_for_gpgme::generic_file_overlay_for_gpgme
generic_file_overlay_for_gpgme(const generic_file_overlay_for_gpgme &ref)=delete
no copy constructor allowed
libdar::generic_file
this is the interface class from which all other data transfer classes inherit
Definition generic_file.hpp:77
generic_file.hpp
class generic_file is defined here as well as class fichier
my_config.h
include macro defined by the configure script and some specific additional ones
libdar
libdar namespace encapsulate all libdar symbols
Definition archive.hpp:47