Qore ConnectionProvider Module Reference  1.3
FtpConnection.qc.dox.h
1 // -*- mode: c++; indent-tabs-mode: nil -*-
2 // Qore FtpConnection class definition
3 
4 /* FtpConnection.qc Copyright 2016 - 2019 Qore Technologies, s.r.o.
5 
6  Permission is hereby granted, free of charge, to any person obtaining a
7  copy of this software and associated documentation files (the "Software"),
8  to deal in the Software without restriction, including without limitation
9  the rights to use, copy, modify, merge, publish, distribute, sublicense,
10  and/or sell copies of the Software, and to permit persons to whom the
11  Software is furnished to do so, subject to the following conditions:
12 
13  The above copyright notice and this permission notice shall be included in
14  all copies or substantial portions of the Software.
15 
16  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  DEALINGS IN THE SOFTWARE.
23 */
24 
25 
27 namespace ConnectionProvider {
29 
34 
35 public:
37 
46  deprecated
47  constructor(string name, string desc, string url, bool monitor, *hash opts, hash urlh)
48  ;
49 
50 
52 
60  constructor(string name, string description, string url, hash attributes = {}, hash options = {})
61  ;
62 
63 
65  string getType();
66 
67 
69 
74 
75 
77 
80 protected:
81  FtpClient getImpl(bool connect = True, *hash rtopts);
82 public:
83 
84 
86 
88  deprecated
89  static FtpConnection make(string name, string desc, string url, bool monitor, *hash opts, hash urlh);
90  };
91 }; // ConnectionProvider namespace
ConnectionProvider
the ConnectionProvider namespace. All classes used in the ConnectionProvider module should be inside ...
Definition: AbstractConnection.qc.dox.h:27
ConnectionProvider::AbstractConnection
abstract base class for connections
Definition: AbstractConnection.qc.dox.h:31
ConnectionProvider::FtpConnection::constructor
deprecated constructor(string name, string desc, string url, bool monitor, *hash opts, hash urlh)
DEPRECATED: creates the FtpConnection object.
ConnectionProvider::AbstractConnection::name
string name
connection name
Definition: AbstractConnection.qc.dox.h:35
ConnectionProvider::AbstractConnection::desc
string desc
connection description
Definition: AbstractConnection.qc.dox.h:38
True
const True
ConnectionProvider::AbstractConnection::opts
*hash< auto > opts
connection options
Definition: AbstractConnection.qc.dox.h:50
ConnectionProvider::AbstractConnection::urlh
hash< auto > urlh
broken down URL hash (as returned by Qore::parse_url())
Definition: AbstractConnection.qc.dox.h:53
ConnectionProvider::FtpConnection::getImpl
FtpClient getImpl(bool connect=True, *hash rtopts)
returns an Qore::FtpClient object
ConnectionProvider::FtpConnection::getType
string getType()
returns "ftp"
hash
hash< auto > hash(object obj)
ConnectionProvider::FtpConnection::getRuntimeOptions
*hash getRuntimeOptions()
returns runtime options
ConnectionProvider::AbstractConnection::url
string url
connection URL (potentially with password info)
Definition: AbstractConnection.qc.dox.h:41
ConnectionProvider::AbstractConnection::monitor
bool monitor
monitoring flag
Definition: AbstractConnection.qc.dox.h:65
ConnectionProvider::FtpConnection::make
static deprecated FtpConnection make(string name, string desc, string url, bool monitor, *hash opts, hash urlh)
DEPRECATED: static constructor.
ConnectionProvider::FtpConnection
class for FTP connections; returns Qore::FtpClient objects
Definition: FtpConnection.qc.dox.h:33