LibreOffice Module uui (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
LoginDialog Class Reference

#include <logindlg.hxx>

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

Public Member Functions

 LoginDialog (weld::Window *pParent, LoginFlags nFlags, OUString aServer, OUString aRealm)
 
virtual ~LoginDialog () override
 
OUString GetName () const
 
void SetName (const OUString &rNewName)
 
OUString GetPassword () const
 
void SetPassword (const OUString &rNew)
 
OUString GetAccount () const
 
bool IsSavePassword () const
 
void SetSavePassword (bool bSave)
 
void SetSavePasswordText (const OUString &rTxt)
 
bool IsUseSystemCredentials () const
 
void SetUseSystemCredentials (bool bUse)
 
void SetErrorText (const OUString &rTxt)
 
void ClearPassword ()
 
void ClearAccount ()
 
- Public Member Functions inherited from weld::GenericDialogController
 GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, bool bMobile=false)
 
virtual DialoggetDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- Public Member Functions inherited from weld::DialogController
virtual DialoggetDialog ()=0
 
const DialoggetConstDialog () const
 
virtual short run ()
 
void set_title (const OUString &rTitle)
 
OUString get_title () const
 
void set_help_id (const OUString &rHelpId)
 
OUString get_help_id () const
 
void response (int nResponse)
 
virtual ~DialogController () COVERITY_NOEXCEPT_FALSE
 

Private Member Functions

void HideControls_Impl (LoginFlags nFlags)
 
void EnableUseSysCredsControls_Impl (bool bUseSysCredsEnabled)
 
void SetRequest ()
 
 DECL_LINK (OKHdl_Impl, weld::Button &, void)
 
 DECL_LINK (UseSysCredsHdl_Impl, weld::Toggleable &, void)
 

Private Attributes

std::unique_ptr< weld::Labelm_xErrorFT
 
std::unique_ptr< weld::Labelm_xErrorInfo
 
std::unique_ptr< weld::Labelm_xRequestInfo
 
std::unique_ptr< weld::Labelm_xNameFT
 
std::unique_ptr< weld::Entrym_xNameED
 
std::unique_ptr< weld::Labelm_xPasswordFT
 
std::unique_ptr< weld::Entrym_xPasswordED
 
std::unique_ptr< weld::Labelm_xAccountFT
 
std::unique_ptr< weld::Entrym_xAccountED
 
std::unique_ptr< weld::CheckButtonm_xSavePasswdBtn
 
std::unique_ptr< weld::CheckButtonm_xUseSysCredsCB
 
std::unique_ptr< weld::Buttonm_xOKBtn
 
OUString m_server
 
OUString m_realm
 

Additional Inherited Members

- Static Public Member Functions inherited from weld::DialogController
static bool runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
 
- Protected Attributes inherited from weld::GenericDialogController
std::unique_ptr< weld::Builderm_xBuilder
 
std::shared_ptr< weld::Dialogm_xDialog
 

Detailed Description

Definition at line 39 of file logindlg.hxx.

Constructor & Destructor Documentation

◆ LoginDialog()

LoginDialog::LoginDialog ( weld::Window pParent,
LoginFlags  nFlags,
OUString  aServer,
OUString  aRealm 
)

◆ ~LoginDialog()

LoginDialog::~LoginDialog ( )
overridevirtual

Definition at line 31 of file logindlg.cxx.

Member Function Documentation

◆ ClearAccount()

void LoginDialog::ClearAccount ( )

Definition at line 163 of file logindlg.cxx.

References m_xAccountED.

◆ ClearPassword()

void LoginDialog::ClearPassword ( )

Definition at line 153 of file logindlg.cxx.

References m_xNameED, and m_xPasswordED.

◆ DECL_LINK() [1/2]

LoginDialog::DECL_LINK ( OKHdl_Impl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/2]

LoginDialog::DECL_LINK ( UseSysCredsHdl_Impl  ,
weld::Toggleable ,
void   
)
private

◆ EnableUseSysCredsControls_Impl()

void LoginDialog::EnableUseSysCredsControls_Impl ( bool  bUseSysCredsEnabled)
private

◆ GetAccount()

OUString LoginDialog::GetAccount ( ) const
inline

Definition at line 72 of file logindlg.hxx.

References m_xAccountED.

◆ GetName()

OUString LoginDialog::GetName ( ) const
inline

Definition at line 68 of file logindlg.hxx.

References m_xNameED.

◆ GetPassword()

OUString LoginDialog::GetPassword ( ) const
inline

Definition at line 70 of file logindlg.hxx.

References m_xPasswordED.

◆ HideControls_Impl()

void LoginDialog::HideControls_Impl ( LoginFlags  nFlags)
private

◆ IsSavePassword()

bool LoginDialog::IsSavePassword ( ) const
inline

Definition at line 73 of file logindlg.hxx.

References m_xSavePasswdBtn.

◆ IsUseSystemCredentials()

bool LoginDialog::IsUseSystemCredentials ( ) const
inline

Definition at line 76 of file logindlg.hxx.

References m_xUseSysCredsCB.

◆ SetErrorText()

void LoginDialog::SetErrorText ( const OUString &  rTxt)
inline

Definition at line 78 of file logindlg.hxx.

References m_xErrorInfo.

◆ SetName()

void LoginDialog::SetName ( const OUString &  rNewName)
inline

Definition at line 69 of file logindlg.hxx.

References m_xNameED.

◆ SetPassword()

void LoginDialog::SetPassword ( const OUString &  rNew)

Definition at line 35 of file logindlg.cxx.

References m_xPasswordED, and SetRequest().

◆ SetRequest()

void LoginDialog::SetRequest ( )
private

◆ SetSavePassword()

void LoginDialog::SetSavePassword ( bool  bSave)
inline

Definition at line 74 of file logindlg.hxx.

References m_xSavePasswdBtn.

◆ SetSavePasswordText()

void LoginDialog::SetSavePasswordText ( const OUString &  rTxt)
inline

Definition at line 75 of file logindlg.hxx.

References m_xSavePasswdBtn.

◆ SetUseSystemCredentials()

void LoginDialog::SetUseSystemCredentials ( bool  bUse)

Definition at line 144 of file logindlg.cxx.

References EnableUseSysCredsControls_Impl(), and m_xUseSysCredsCB.

Member Data Documentation

◆ m_realm

OUString LoginDialog::m_realm
private

Definition at line 54 of file logindlg.hxx.

Referenced by SetRequest().

◆ m_server

OUString LoginDialog::m_server
private

Definition at line 53 of file logindlg.hxx.

Referenced by SetRequest().

◆ m_xAccountED

std::unique_ptr<weld::Entry> LoginDialog::m_xAccountED
private

◆ m_xAccountFT

std::unique_ptr<weld::Label> LoginDialog::m_xAccountFT
private

Definition at line 48 of file logindlg.hxx.

Referenced by EnableUseSysCredsControls_Impl(), HideControls_Impl(), and SetRequest().

◆ m_xErrorFT

std::unique_ptr<weld::Label> LoginDialog::m_xErrorFT
private

Definition at line 41 of file logindlg.hxx.

Referenced by EnableUseSysCredsControls_Impl(), and HideControls_Impl().

◆ m_xErrorInfo

std::unique_ptr<weld::Label> LoginDialog::m_xErrorInfo
private

Definition at line 42 of file logindlg.hxx.

Referenced by EnableUseSysCredsControls_Impl(), HideControls_Impl(), and SetErrorText().

◆ m_xNameED

std::unique_ptr<weld::Entry> LoginDialog::m_xNameED
private

◆ m_xNameFT

std::unique_ptr<weld::Label> LoginDialog::m_xNameFT
private

Definition at line 44 of file logindlg.hxx.

Referenced by EnableUseSysCredsControls_Impl().

◆ m_xOKBtn

std::unique_ptr<weld::Button> LoginDialog::m_xOKBtn
private

Definition at line 52 of file logindlg.hxx.

Referenced by LoginDialog().

◆ m_xPasswordED

std::unique_ptr<weld::Entry> LoginDialog::m_xPasswordED
private

◆ m_xPasswordFT

std::unique_ptr<weld::Label> LoginDialog::m_xPasswordFT
private

Definition at line 46 of file logindlg.hxx.

Referenced by EnableUseSysCredsControls_Impl().

◆ m_xRequestInfo

std::unique_ptr<weld::Label> LoginDialog::m_xRequestInfo
private

Definition at line 43 of file logindlg.hxx.

Referenced by EnableUseSysCredsControls_Impl(), and SetRequest().

◆ m_xSavePasswdBtn

std::unique_ptr<weld::CheckButton> LoginDialog::m_xSavePasswdBtn
private

◆ m_xUseSysCredsCB

std::unique_ptr<weld::CheckButton> LoginDialog::m_xUseSysCredsCB
private

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