~ubuntu-branches/ubuntu/natty/lftp/natty

« back to all changes in this revision

Viewing changes to src/FileAccess.h

  • Committer: Bazaar Package Importer
  • Author(s): Noèl Köthe
  • Date: 2006-06-05 13:17:03 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20060605131703-q5ehgd52jmyn6crf
Tags: 3.4.7-1
* new upstream release from 2006-05-18
* updated Standards-Version to 3.7.2
* tls glibc double-free problem fixed since 3.4.x
  (closes: Bug#326914)
* gnutls handshake problem fixed since 3.4.x
  (closes: Bug#327643)
* segfault problem fixed (closes: Bug#336408)
* using gnutls 1.3 (closes: Bug#369197)
* made lftp-config-dns-inet6_before_inet patch nicer

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19
19
 */
20
20
 
21
 
/* $Id: FileAccess.h,v 1.86 2005/08/04 13:10:40 lav Exp $ */
 
21
/* $Id: FileAccess.h,v 1.88 2006/04/19 09:48:03 lav Exp $ */
22
22
 
23
23
#ifndef FILEACCESS_H
24
24
#define FILEACCESS_H
55
55
 
56
56
class FileAccess : public SMTask
57
57
{
 
58
   static bool class_inited;
58
59
public:
59
60
   enum open_mode
60
61
   {
97
98
      Path(const Path *o) { init(); Set(o); }
98
99
      Path(const Path &o) { init(); Set(o); }
99
100
      Path(const char *new_path) { init(); Set(new_path); }
100
 
      Path(const char *new_path,bool new_is_file=false,const char *new_url=0,int new_device_prefix_len=0)
 
101
      Path(const char *new_path,bool new_is_file,const char *new_url=0,int new_device_prefix_len=0)
101
102
         { init(); Set(new_path,new_is_file,new_url,new_device_prefix_len); }
102
103
      ~Path();
103
104
      void Set(const Path*);
365
366
         (void)new Protocol(proto,creator);
366
367
      }
367
368
 
368
 
   static FileAccess *New(const char *proto,const char *host=0);
 
369
   static FileAccess *New(const char *proto,const char *host=0,const char *port=0);
369
370
   static FileAccess *New(const class ParsedURL *u,bool dummy=true);
370
371
 
371
372
   void SetPasswordGlobal(const char *p);