| Disk ARchive 2.5.10 Full featured and portable backup and archiving tool

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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
45 class generic_file_overlay_for_gpgme : public on_pool
46 {
47 public:
51 generic_file_overlay_for_gpgme(generic_file *f);
52
54 generic_file_overlay_for_gpgme(const generic_file_overlay_for_gpgme & ref) { throw SRC_BUG; };
55
57 const generic_file_overlay_for_gpgme operator = (const generic_file_overlay_for_gpgme & ref) { throw SRC_BUG; };
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
libdar::on_pool
Definition: on_pool.hpp:52
generic_file.hpp
class generic_file is defined here as well as class fichierthe generic_file interface is widely used ...
libdar::generic_file_overlay_for_gpgme::operator=
const generic_file_overlay_for_gpgme operator=(const generic_file_overlay_for_gpgme &ref)
no asignment operator
Definition: generic_file_overlay_for_gpgme.hpp:57
libdar::generic_file_overlay_for_gpgme::generic_file_overlay_for_gpgme
generic_file_overlay_for_gpgme(generic_file *f)
libdar::generic_file_overlay_for_gpgme
Definition: generic_file_overlay_for_gpgme.hpp:45
libdar::generic_file_overlay_for_gpgme::generic_file_overlay_for_gpgme
generic_file_overlay_for_gpgme(const generic_file_overlay_for_gpgme &ref)
no copy constructor allowed
Definition: generic_file_overlay_for_gpgme.hpp:54
libdar::generic_file
this is the interface class from which all other data transfer classes inherit
Definition: generic_file.hpp:100
on_pool.hpp
this is the base class of object that can be allocated on a memory pool
libdar
libdar namespace encapsulate all libdar symbols
Definition: archive.hpp:47