Disk ARchive 2.7.14
Full featured and portable backup and archiving tool
Loading...
Searching...
No Matches
src/libdar/entrepot_libcurl5.hpp
Go to the documentation of this file.
1/*********************************************************************/
2// dar - disk archive - a backup/restoration program
3// Copyright (C) 2002-2024 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18//
19// to contact the author, see the AUTHOR file
20/*********************************************************************/
21
25
26#ifndef ENTREPOT_LIBCURL5_HPP
27#define ENTREPOT_LIBCURL5_HPP
28
29#include "../my_config.h"
30
31extern "C"
32{
33}
34
35#include <string>
36#include <deque>
37#include "entrepot_libcurl.hpp"
38#include "user_interaction5.hpp"
39
40namespace libdar5
41{
42
45
47
49
51
52 class entrepot_libcurl : public libdar::entrepot_libcurl
53 {
54 public:
55 entrepot_libcurl(user_interaction & dialog,
56 mycurl_protocol proto,
57 const std::string & login,
58 const secu_string & password,
59 const std::string & host,
60 const std::string & port,
61 bool auth_from_file,
62 const std::string & sftp_pub_keyfile,
63 const std::string & sftp_prv_keyfile,
64 const std::string & sftp_known_hosts,
65 U_I waiting_time):
66 libdar::entrepot_libcurl(user_interaction5_clone_to_shared_ptr(dialog),
67 proto,
68 login,
69 password,
70 host,
71 port,
72 auth_from_file,
73 sftp_pub_keyfile,
74 sftp_prv_keyfile,
75 sftp_known_hosts,
76 false,
77 waiting_time)
78 {}
79
80 entrepot_libcurl(const entrepot_libcurl & ref) = default;
81 entrepot_libcurl(entrepot_libcurl && ref) noexcept = default;
82 entrepot_libcurl & operator = (const entrepot_libcurl & ref) = default;
83 entrepot_libcurl & operator = (entrepot_libcurl && ref) noexcept = default;
84 ~entrepot_libcurl() throw () {};
85
86 };
87
89
90} // end of namespace
91
92#endif
for managing archive into a remote repository
std::shared_ptr< user_interaction > user_interaction5_clone_to_shared_ptr(user_interaction &dialog)
convert a user_interaction to a shared_pointer on a clone of that user_interaction
mycurl_protocol
libcurl protocols supported by libdar
include macro defined by the configure script and some specific additional ones
libdar5 namespace encapsulate all libdar symbols
libdar namespace encapsulate all libdar symbols
defines the implementation for remote filesystem entrepot using libcurl
API v5 backward compatible class user_interaction.