From 546e74bde62fe657a45f5b7626a7aacf48421c4d Mon Sep 17 00:00:00 2001 From: Niels Weber Date: Thu, 18 Apr 2013 14:39:25 +0200 Subject: Add a DisplayName setting for repositories. If DisplayName is set, it will be shown instead of the URL. This serves to hide a repositories URL while still being able to pinpoint bugreports to a specific repository. Task-number: QTIFW-244 Change-Id: Iaf0bc1612b42f1044da936d0fc2c4ad0e1e85d61 Reviewed-by: Tim Jenssen Reviewed-by: Karsten Heimrich --- src/libs/installer/repository.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/libs/installer/repository.h') diff --git a/src/libs/installer/repository.h b/src/libs/installer/repository.h index 967cae75d..1f9e22777 100644 --- a/src/libs/installer/repository.h +++ b/src/libs/installer/repository.h @@ -73,6 +73,9 @@ public: QString password() const; void setPassword(const QString &password); + QString displayname() const; + void setDisplayName(const QString &displayname); + bool operator==(const Repository &other) const; bool operator!=(const Repository &other) const; @@ -91,6 +94,7 @@ private: bool m_enabled; QString m_username; QString m_password; + QString m_displayname; }; inline uint qHash(const Repository &repository) -- cgit v1.2.3