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 unnessary 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 78 of file ftpurl.hxx.

Constructor & Destructor Documentation

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

Definition at line 132 of file ftpurl.cxx.

References parse().

FTPURL::FTPURL ( const FTPURL r)

Definition at line 120 of file ftpurl.cxx.

FTPURL::~FTPURL ( )

Definition at line 143 of file ftpurl.cxx.

Member Function Documentation

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().

OUString FTPURL::child ( ) const

returns the unencoded title

Definition at line 347 of file ftpurl.cxx.

References m_aPathSegmentVec.

void FTPURL::del ( ) const
FTPDirentry FTPURL::direntry ( ) const
const OUString& ftp::FTPURL::host ( ) const
inline

Definition at line 91 of file ftpurl.hxx.

References m_aHost.

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

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

This returns the URL, but cleaned from unnessary 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().

void FTPURL::insert ( bool  ReplaceExisting,
void stream 
) const
std::vector< FTPDirentry > FTPURL::list ( sal_Int16  nMode) const
void FTPURL::mkdir ( bool  ReplaceExisting) const
OUString FTPURL::net_title ( ) const
private
Exceptions
curl_exception

Definition at line 510 of file ftpurl.cxx.

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

Referenced by direntry(), and ren().

oslFileHandle FTPURL::open ( )
OUString FTPURL::parent ( bool  internal = false) const
void FTPURL::parse ( const OUString &  url)
private
const OUString& ftp::FTPURL::port ( ) const
inline

Definition at line 93 of file ftpurl.hxx.

References m_aPort.

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

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

Definition at line 95 of file ftpurl.hxx.

References m_aUsername.

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

Member Data Documentation

OUString ftp::FTPURL::m_aHost
mutableprivate

Definition at line 147 of file ftpurl.hxx.

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

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

Contains the encoded pathsegments of the url.

Definition at line 153 of file ftpurl.hxx.

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

OUString ftp::FTPURL::m_aPort
mutableprivate

Definition at line 148 of file ftpurl.hxx.

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

OUString ftp::FTPURL::m_aType
mutableprivate

Definition at line 149 of file ftpurl.hxx.

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

OUString ftp::FTPURL::m_aUsername
mutableprivate

Definition at line 145 of file ftpurl.hxx.

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

bool ftp::FTPURL::m_bShowPassword
private

Definition at line 146 of file ftpurl.hxx.

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

FTPContentProvider* ftp::FTPURL::m_pFCP
private

Definition at line 143 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: