diff options
author | Andre Hartmann <[email protected]> | 2017-03-09 19:13:38 +0100 |
---|---|---|
committer | André Hartmann <[email protected]> | 2017-03-09 22:02:30 +0000 |
commit | b0ac6435b3786854e7a8d10cf4d8df49ca74618a (patch) | |
tree | cf053a90e07a5c7623c42fd05de3f426c65927b9 /src/plugins/git/gitclient.h | |
parent | 6e7d2a40014a012f52bcfa776c5ca50b15ea2420 (diff) |
Git: Add new class GitRemote
Allows to split a remote URL and performs
some validation checks on the elements.
Change-Id: I048373076b1a1553fdd7bed2986a41cc087138b0
Reviewed-by: Orgad Shaneh <[email protected]>
Diffstat (limited to 'src/plugins/git/gitclient.h')
-rw-r--r-- | src/plugins/git/gitclient.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/plugins/git/gitclient.h b/src/plugins/git/gitclient.h index 126461636fe..7563f24531b 100644 --- a/src/plugins/git/gitclient.h +++ b/src/plugins/git/gitclient.h @@ -380,5 +380,17 @@ private: QFutureSynchronizer<void> m_synchronizer; // for commit updates }; +class GitRemote { +public: + GitRemote(const QString &url); + + QString protocol; + QString userName; + QString host; + QString path; + quint16 port = 0; + bool isValid = false; +}; + } // namespace Internal } // namespace Git |