LibreOffice Module ucb (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ftp::FTPURL Class Reference

#include <ftpurl.hxx>

Collaboration diagram for ftp::FTPURL:
[legend]

Public Member Functions

 FTPURL (const OUString &aIdent, FTPContentProvider *pFCP)
 
 FTPURL (const FTPURL &r)
 
 ~FTPURL ()
 
const OUString & host () const
 
const OUString & port () const
 
const OUString & username () const
 
OUString ident (bool withslash, bool internal) const
 This returns the URL, but cleaned from unnecessary ellipses. More...
 
OUString parent (bool internal=false) const
 returns the parent url. More...
 
void child (const OUString &title)
 sets the unencoded title More...
 
OUString child () const
 returns the unencoded title More...
 
std::vector< FTPDirentrylist (sal_Int16 nMode) const
 
oslFileHandle open ()
 
FTPDirentry direntry () const
 
void insert (bool ReplaceExisting, void *stream) const
 
void mkdir (bool ReplaceExisting) const
 
OUString ren (const OUString &NewTitle)
 
void del () const
 

Private Member Functions

void parse (const OUString &url)
 
OUString net_title () const
 

Private Attributes

FTPContentProviderm_pFCP
 
OUString m_aUsername
 
bool m_bShowPassword
 
OUString m_aHost
 
OUString m_aPort
 
OUString m_aType
 
std::vector< OUString > m_aPathSegmentVec
 Contains the encoded pathsegments of the url. More...
 

Detailed Description

Definition at line 74 of file ftpurl.hxx.

Constructor & Destructor Documentation

◆ FTPURL() [1/2]

FTPURL::FTPURL ( const OUString &  aIdent,
FTPContentProvider pFCP 
)
Exceptions
malformed_exception

Definition at line 128 of file ftpurl.cxx.

References parse().

◆ FTPURL() [2/2]

FTPURL::FTPURL ( const FTPURL r)

Definition at line 116 of file ftpurl.cxx.

◆ ~FTPURL()

FTPURL::~FTPURL ( )

Definition at line 139 of file ftpurl.cxx.

Member Function Documentation

◆ child() [1/2]

OUString FTPURL::child ( ) const

returns the unencoded title

Definition at line 347 of file ftpurl.cxx.

References m_aPathSegmentVec.

◆ child() [2/2]

void FTPURL::child ( const OUString &  title)

sets the unencoded title

Definition at line 341 of file ftpurl.cxx.

References m_aPathSegmentVec.

Referenced by ftp::FTPContent::setPropertyValues().

◆ del()

void FTPURL::del ( ) const

◆ direntry()

FTPDirentry FTPURL::direntry ( ) const

◆ host()

const OUString & ftp::FTPURL::host ( ) const
inline

Definition at line 87 of file ftpurl.hxx.

References m_aHost.

Referenced by ftp::FTPContent::execute().

◆ ident()

OUString FTPURL::ident ( bool  withslash,
bool  internal 
) const

This returns the URL, but cleaned from unnecessary ellipses.

Definition at line 240 of file ftpurl.cxx.

References ftp::FTPContentProvider::forHost(), i, m_aHost, m_aPathSegmentVec, m_aPort, m_aType, m_aUsername, m_bShowPassword, and m_pFCP.

Referenced by ftp::FTPContent::execute(), insert(), list(), net_title(), open(), and ftp::FTPContent::setPropertyValues().

◆ insert()

void FTPURL::insert ( bool  ReplaceExisting,
void *  stream 
) const

◆ list()

std::vector< FTPDirentry > FTPURL::list ( sal_Int16  nMode) const

◆ mkdir()

void FTPURL::mkdir ( bool  ReplaceExisting) const

◆ net_title()

OUString FTPURL::net_title ( ) const
private
Exceptions
curl_exception

Definition at line 514 of file ftpurl.cxx.

References err, ftp::FTPContentProvider::handle(), ident(), m_aPathSegmentVec, m_pFCP, SET_CONTROL_CONTAINER, and setCurlUrl().

Referenced by direntry(), and ren().

◆ open()

oslFileHandle FTPURL::open ( )

◆ parent()

OUString FTPURL::parent ( bool  internal = false) const

◆ parse()

void FTPURL::parse ( const OUString &  url)
private

◆ port()

const OUString & ftp::FTPURL::port ( ) const
inline

Definition at line 89 of file ftpurl.hxx.

References m_aPort.

Referenced by ftp::FTPContent::execute().

◆ ren()

OUString FTPURL::ren ( const OUString &  NewTitle)

◆ username()

const OUString & ftp::FTPURL::username ( ) const
inline

Definition at line 91 of file ftpurl.hxx.

References m_aUsername.

Referenced by ftp::FTPContent::execute().

Member Data Documentation

◆ m_aHost

OUString ftp::FTPURL::m_aHost
mutableprivate

Definition at line 143 of file ftpurl.hxx.

Referenced by host(), ident(), parent(), and parse().

◆ m_aPathSegmentVec

std::vector<OUString> ftp::FTPURL::m_aPathSegmentVec
private

Contains the encoded pathsegments of the url.

Definition at line 149 of file ftpurl.hxx.

Referenced by child(), ident(), mkdir(), net_title(), open(), parent(), parse(), and ren().

◆ m_aPort

OUString ftp::FTPURL::m_aPort
mutableprivate

Definition at line 144 of file ftpurl.hxx.

Referenced by ident(), parent(), parse(), and port().

◆ m_aType

OUString ftp::FTPURL::m_aType
mutableprivate

Definition at line 145 of file ftpurl.hxx.

Referenced by ident(), parent(), and parse().

◆ m_aUsername

OUString ftp::FTPURL::m_aUsername
mutableprivate

Definition at line 141 of file ftpurl.hxx.

Referenced by ident(), parent(), parse(), and username().

◆ m_bShowPassword

bool ftp::FTPURL::m_bShowPassword
private

Definition at line 142 of file ftpurl.hxx.

Referenced by ident(), parent(), and parse().

◆ m_pFCP

FTPContentProvider* ftp::FTPURL::m_pFCP
private

Definition at line 139 of file ftpurl.hxx.

Referenced by del(), direntry(), ident(), insert(), list(), mkdir(), net_title(), open(), parent(), parse(), and ren().


The documentation for this class was generated from the following files: