LibreOffice Module svtools (master) 1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
HostDetailsContainer Class Reference

#include <ServerDetailsControls.hxx>

Inheritance diagram for HostDetailsContainer:
[legend]
Collaboration diagram for HostDetailsContainer:
[legend]

Public Member Functions

 HostDetailsContainer (PlaceEditDialog *pDialog, sal_uInt16 nPort, OUString sScheme)
 
virtual void set_visible (bool bShow) override
 
virtual INetURLObject getUrl () override
 
virtual bool setUrl (const INetURLObject &rUrl) override
 Try to split the URL in the controls of that container. More...
 
- Public Member Functions inherited from DetailsContainer
 DetailsContainer (PlaceEditDialog *pDialog)
 
virtual ~DetailsContainer ()
 
void setChangeHdl (const Link< DetailsContainer *, void > &rLink)
 
virtual void set_visible (bool bShow)
 
virtual INetURLObject getUrl ()
 
virtual bool setUrl (const INetURLObject &rUrl)
 Try to split the URL in the controls of that container. More...
 
virtual void setUsername (const OUString &)
 
virtual void setPassword (const OUString &)
 
virtual bool enableUserCredentials ()
 

Protected Member Functions

void setScheme (const OUString &sScheme)
 
virtual bool verifyScheme (const OUString &rScheme)
 Verifies that the scheme split from the URL can be handled by the container and set the proper controls accordingly if needed. More...
 
- Protected Member Functions inherited from DetailsContainer
void notifyChange ()
 
 DECL_LINK (ValueChangeHdl, weld::Entry &, void)
 
 DECL_STATIC_LINK (DetailsContainer, FormatPortHdl, weld::SpinButton &, void)
 

Private Attributes

sal_uInt16 m_nDefaultPort
 
OUString m_sScheme
 
OUString m_sHost
 

Additional Inherited Members

- Protected Attributes inherited from DetailsContainer
PlaceEditDialog * m_pDialog
 
Link< DetailsContainer *, void > m_aChangeHdl
 

Detailed Description

Definition at line 66 of file ServerDetailsControls.hxx.

Constructor & Destructor Documentation

◆ HostDetailsContainer()

HostDetailsContainer::HostDetailsContainer ( PlaceEditDialog *  pDialog,
sal_uInt16  nPort,
OUString  sScheme 
)

Definition at line 83 of file ServerDetailsControls.cxx.

References set_visible().

Member Function Documentation

◆ getUrl()

INetURLObject HostDetailsContainer::getUrl ( )
overridevirtual

Reimplemented from DetailsContainer.

Definition at line 110 of file ServerDetailsControls.cxx.

References m_nDefaultPort, DetailsContainer::m_pDialog, and m_sScheme.

◆ set_visible()

void HostDetailsContainer::set_visible ( bool  bShow)
overridevirtual

◆ setScheme()

void HostDetailsContainer::setScheme ( const OUString &  sScheme)
inlineprotected

Definition at line 81 of file ServerDetailsControls.hxx.

References m_sScheme.

◆ setUrl()

bool HostDetailsContainer::setUrl ( const INetURLObject rUrl)
overridevirtual

Try to split the URL in the controls of that container.

Parameters
sUrlthe URL to split
Returns
true if the split worked, false otherwise.

Reimplemented from DetailsContainer.

Definition at line 131 of file ServerDetailsControls.cxx.

References INetURLObject::GetHost(), INetURLObject::GetPort(), INetURLObject::GetProtocol(), INetURLObject::GetScheme(), INetURLObject::GetURLPath(), DetailsContainer::m_pDialog, m_sHost, and verifyScheme().

◆ verifyScheme()

bool HostDetailsContainer::verifyScheme ( const OUString &  rScheme)
protectedvirtual

Verifies that the scheme split from the URL can be handled by the container and set the proper controls accordingly if needed.

Reimplemented in DavDetailsContainer.

Definition at line 146 of file ServerDetailsControls.cxx.

References m_sScheme.

Referenced by setUrl().

Member Data Documentation

◆ m_nDefaultPort

sal_uInt16 HostDetailsContainer::m_nDefaultPort
private

Definition at line 69 of file ServerDetailsControls.hxx.

Referenced by getUrl(), and set_visible().

◆ m_sHost

OUString HostDetailsContainer::m_sHost
private

Definition at line 71 of file ServerDetailsControls.hxx.

Referenced by set_visible(), and setUrl().

◆ m_sScheme

OUString HostDetailsContainer::m_sScheme
private

Definition at line 70 of file ServerDetailsControls.hxx.

Referenced by getUrl(), setScheme(), and verifyScheme().


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