summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/repository.h
diff options
context:
space:
mode:
authorkh1 <karsten.heimrich@digia.com>2014-11-11 15:12:25 +0100
committerKarsten Heimrich <karsten.heimrich@theqtcompany.com>2014-11-12 16:13:05 +0100
commit11964021d9f261fe2d04a41d41c3ad0c5f4a945f (patch)
tree01b6684838069f4c836d95c3c6516e3e83ffe7a2 /src/libs/installer/repository.h
parent98c4b02da6f07e5101ff66fd85810d9816c28f16 (diff)
Make it possible to register the Repository class independently.
Fixes for example invalid repository entries inside the config files after streaming the type as QVariant over the connection and recreating it client or server-side. Task-number: QTIFW-569 Change-Id: Ide328d1e6f73ff538a1b107fcc915e0a260cce24 Reviewed-by: Christoph VogtlÃĪnder <c.vogtlaender@sigma-surface-science.com> Reviewed-by: Niels Weber <niels.weber@digia.com>
Diffstat (limited to 'src/libs/installer/repository.h')
-rw-r--r--src/libs/installer/repository.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libs/installer/repository.h b/src/libs/installer/repository.h
index 8915c6643..6d904d08c 100644
--- a/src/libs/installer/repository.h
+++ b/src/libs/installer/repository.h
@@ -49,6 +49,7 @@ public:
Repository(const Repository &other);
explicit Repository(const QUrl &url, bool isDefault);
+ static void registerMetaType();
static Repository fromUserInput(const QString &repositoryUrl);
bool isValid() const;
@@ -79,9 +80,6 @@ public:
friend INSTALLER_EXPORT QDataStream &operator<<(QDataStream &ostream, const Repository &repository);
private:
- void registerMetaType();
-
-private:
QUrl m_url;
bool m_default;
bool m_enabled;