LibreOffice Module ucb (master) 1
|
#include <ftpurl.hxx>
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< FTPDirentry > | list (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 | |
FTPContentProvider * | m_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... | |
Definition at line 74 of file ftpurl.hxx.
FTPURL::FTPURL | ( | const OUString & | aIdent, |
FTPContentProvider * | pFCP | ||
) |
FTPURL::FTPURL | ( | const FTPURL & | r | ) |
Definition at line 116 of file ftpurl.cxx.
FTPURL::~FTPURL | ( | ) |
Definition at line 139 of file ftpurl.cxx.
OUString FTPURL::child | ( | ) | const |
returns the unencoded title
Definition at line 338 of file ftpurl.cxx.
References m_aPathSegmentVec.
void FTPURL::child | ( | const OUString & | title | ) |
sets the unencoded title
Definition at line 332 of file ftpurl.cxx.
References m_aPathSegmentVec.
Referenced by ftp::FTPContent::setPropertyValues().
void FTPURL::del | ( | ) | const |
curl_exception | |
malformed_exception |
Definition at line 747 of file ftpurl.cxx.
References del(), direntry(), err, ftp::FTPContentProvider::handle(), i, ftp::INETCOREFTP_FILEMODE_ISDIR, ftp::INETCOREFTP_FILEMODE_UNKNOWN, list(), ftp::FTPDirentry::m_aName, ftp::FTPDirentry::m_nMode, m_pFCP, parent(), SET_CONTROL_CONTAINER, and setCurlUrl().
Referenced by del(), and ftp::FTPContent::execute().
FTPDirentry FTPURL::direntry | ( | ) | const |
curl_exception | |
malformed_exception |
Definition at line 584 of file ftpurl.cxx.
References aURL, d, ftp::INETCOREFTP_FILEMODE_ISDIR, ftp::INETCOREFTP_FILEMODE_UNKNOWN, ftp::FTPDirentry::m_aName, ftp::FTPDirentry::m_nMode, ftp::FTPDirentry::m_nSize, m_pFCP, net_title(), and parent().
Referenced by del(), ftp::FTPContent::getPropertyValues(), and mkdir().
|
inline |
Definition at line 87 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 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().
void FTPURL::insert | ( | bool | ReplaceExisting, |
void * | stream | ||
) | const |
curl_exception |
Definition at line 629 of file ftpurl.cxx.
References err, ftp::FILE_MIGHT_EXIST_DURING_INSERT, ftp::FTPContentProvider::handle(), ident(), m_pFCP, memory_read(), SET_CONTROL_CONTAINER, setCurlUrl(), and stream.
Referenced by ftp::FTPContent::insert().
std::vector< FTPDirentry > FTPURL::list | ( | sal_Int16 | nMode | ) | const |
curl_exception |
Definition at line 419 of file ftpurl.cxx.
References ftp::FTPDirentry::clear(), err, ftp::FTPContentProvider::handle(), ident(), ftp::INETCOREFTP_FILEMODE_ISDIR, ftp::FTPDirentry::m_aName, ftp::FTPDirentry::m_aURL, ftp::FTPDirentry::m_nMode, ftp::MemoryContainer::m_nWritePos, ftp::MemoryContainer::m_pBuffer, m_pFCP, o3tl::make_unsigned(), memory_write(), ftp::FTPDirectoryParser::parseDOS(), ftp::FTPDirectoryParser::parseUNIX(), ftp::FTPDirectoryParser::parseVMS(), SET_CONTROL_CONTAINER, and setCurlUrl().
Referenced by del(), and ftp::FTPContent::execute().
void FTPURL::mkdir | ( | bool | ReplaceExisting | ) | const |
curl_exception | |
malformed_exception |
Definition at line 660 of file ftpurl.cxx.
References direntry(), err, ftp::FOLDER_MIGHT_EXIST_DURING_INSERT, ftp::FTPContentProvider::handle(), ftp::INETCOREFTP_FILEMODE_UNKNOWN, m_aPathSegmentVec, ftp::FTPDirentry::m_nMode, m_pFCP, parent(), SET_CONTROL_CONTAINER, and setCurlUrl().
Referenced by ftp::FTPContent::insert().
|
private |
curl_exception |
Definition at line 505 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 | ( | ) |
curl_exception |
Definition at line 382 of file ftpurl.cxx.
References err, file_write(), ftp::FTPContentProvider::handle(), ident(), m_aPathSegmentVec, m_pFCP, SAL_WARN_IF, SET_CONTROL_CONTAINER, and setCurlUrl().
Referenced by ftp::FTPContent::execute().
OUString FTPURL::parent | ( | bool | internal = false | ) | const |
returns the parent url.
Definition at line 285 of file ftpurl.cxx.
References ftp::FTPContentProvider::forHost(), i, last, m_aHost, m_aPathSegmentVec, m_aPort, m_aType, m_aUsername, m_bShowPassword, and m_pFCP.
Referenced by del(), direntry(), ftp::FTPContent::getParent(), ftp::FTPContent::getParentURL(), mkdir(), and ren().
|
private |
malformed_exception |
Definition at line 144 of file ftpurl.cxx.
References m_aHost, m_aPathSegmentVec, m_aPort, m_aType, m_aUsername, m_bShowPassword, m_pFCP, and ftp::FTPContentProvider::setHost().
Referenced by FTPURL().
|
inline |
Definition at line 89 of file ftpurl.hxx.
References m_aPort.
Referenced by ftp::FTPContent::execute().
OUString FTPURL::ren | ( | const OUString & | NewTitle | ) |
curl_exception |
Definition at line 709 of file ftpurl.cxx.
References err, ftp::FTPContentProvider::handle(), m_aPathSegmentVec, m_pFCP, net_title(), OUStringToOString(), parent(), SET_CONTROL_CONTAINER, and setCurlUrl().
Referenced by ftp::FTPContent::setPropertyValues().
|
inline |
Definition at line 91 of file ftpurl.hxx.
References m_aUsername.
Referenced by ftp::FTPContent::execute().
|
mutableprivate |
|
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().
|
mutableprivate |
|
mutableprivate |
Definition at line 145 of file ftpurl.hxx.
|
mutableprivate |
Definition at line 141 of file ftpurl.hxx.
Referenced by ident(), parent(), parse(), and username().
|
private |
Definition at line 142 of file ftpurl.hxx.
|
private |
Definition at line 139 of file ftpurl.hxx.
Referenced by del(), direntry(), ident(), insert(), list(), mkdir(), net_title(), open(), parent(), parse(), and ren().