Disk ARchive  2.5.3
Full featured and portable backup and archiving tool
generic_file_overlay_for_gpgme.hpp
Go to the documentation of this file.
1 //*********************************************************************/
2 // dar - disk archive - a backup/restoration program
3 // Copyright (C) 2002-2052 Denis Corbin
4 //
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 //
19 // to contact the author : http://dar.linux.free.fr/email.html
20 /*********************************************************************/
21 
25 
26 #ifndef GENERIC_FILE_VERLAY_FOR_GPGME_HPP
27 #define GENERIC_FILE_VERLAY_FOR_GPGME_HPP
28 
29 extern "C"
30 {
31 #if HAVE_GPGME_H
32 #include <gpgme.h>
33 #endif
34 }
35 
36 #include "../my_config.h"
37 #include "generic_file.hpp"
38 #include "on_pool.hpp"
39 
40 namespace libdar
41 {
44 
46  {
47  public:
52 
55 
58 
59 #ifdef GPGME_SUPPORT
60  ~generic_file_overlay_for_gpgme() { gpgme_data_release(handle); };
62 
64  gpgme_data_t get_gpgme_handle() const { return handle; };
65 
66  generic_file *get_below() { return below; };
67 
68  private:
69  generic_file *below;
70  gpgme_data_t handle;
71  gpgme_data_cbs cbs;
72 
73 #endif
74  };
75 
77 
78 } // end of namespace
79 
80 #endif
class generic_file is defined here as well as class fichierthe generic_file interface is widely used ...
const generic_file_overlay_for_gpgme operator=(const generic_file_overlay_for_gpgme &ref)
no asignment operator
generic_file_overlay_for_gpgme(generic_file *f)
generic_file_overlay_for_gpgme(const generic_file_overlay_for_gpgme &ref)
no copy constructor allowed
this is the interface class from which all other data transfer classes inherit
this is the base class of object that can be allocated on a memory pool
libdar namespace encapsulate all libdar symbols
Definition: archive.hpp:47