24#ifndef DIALOG_GIT_REPOSITORY_H_
25#define DIALOG_GIT_REPOSITORY_H_
36 wxString aURL = wxEmptyString );
47 m_ConnType->SetSelection(
static_cast<int>( aType ) );
71 if( url.StartsWith(
"https://" ) )
73 else if( url.StartsWith(
"http://" ) )
75 else if( url.StartsWith(
"ssh://" ) )
95 void OnUpdateUI( wxUpdateUIEvent& event )
override;
97 void OnOKClick( wxCommandEvent& event )
override;
100 void OnTestClick( wxCommandEvent& event )
override;
110 std::tuple<bool,wxString,wxString,wxString>
isValidHTTPS(
const wxString& url );
111 std::tuple<bool,wxString, wxString>
isValidSSH(
const wxString& url );
Class DIALOG_GIT_REPOSITORY_BASE.
wxTextCtrl * m_txtPassword
wxTextCtrl * m_txtUsername
wxFilePickerCtrl * m_fpSSHKey
void OnSelectConnType(wxCommandEvent &event) override
void SetRepoType(KIGIT_COMMON::GIT_CONN_TYPE aType)
std::tuple< bool, wxString, wxString > isValidSSH(const wxString &url)
void SetRepoSSHPath(const wxString &aPath)
KIGIT_COMMON::GIT_CONN_TYPE GetRepoType() const
void OnFileUpdated(wxFileDirPickerEvent &event) override
void SetRepoName(const wxString &aName)
wxString GetBareRepoURL() const
Get the Bare Repo U R L object.
void SetPassword(const wxString &aPassword)
wxString GetRepoSSHPath() const
void SetTestResult(bool aFailed, const wxString &aError)
~DIALOG_GIT_REPOSITORY() override
void SetEncrypted(bool aEncrypted=true)
void OnLocationExit(wxFocusEvent &event) override
void OnTestClick(wxCommandEvent &event) override
wxString GetRepoURL() const
void SetRepoURL(const wxString &aURL)
wxString GetUsername() const
void OnOKClick(wxCommandEvent &event) override
wxString GetRepoName() const
void SetUsername(const wxString &aUsername)
std::tuple< bool, wxString, wxString, wxString > isValidHTTPS(const wxString &url)
void updateAuthControls()
bool extractClipboardData()
void OnUpdateUI(wxUpdateUIEvent &event) override
wxString GetPassword() const
git_repository * m_repository