From 222545cbc90a8b8a06a5c484f33019b7127f0f5f 2017-12-11 09:29:38 From: Alexandre Leroux Date: 2017-12-11 09:29:38 Subject: [PATCH] Creates AMDA implementations (default and AMDA test) --- diff --git a/plugins/amda/src/AmdaServer.cpp b/plugins/amda/src/AmdaServer.cpp index 09aca3f..3cda4c5 100644 --- a/plugins/amda/src/AmdaServer.cpp +++ b/plugins/amda/src/AmdaServer.cpp @@ -2,6 +2,24 @@ Q_LOGGING_CATEGORY(LOG_AmdaServer, "AmdaServer") +namespace { + +/// Default AMDA server +struct AmdaDefaultServer : public AmdaServer { +public: + QString name() const override { return QStringLiteral("AMDA (default)"); } + QString url() const override { return QStringLiteral("amda.irap.omp.eu"); } +}; + +/// Alternative AMDA server (tests) +struct AmdaTestServer : public AmdaServer { +public: + QString name() const override { return QStringLiteral("AMDA (test)"); } + QString url() const override { return QStringLiteral("amdatest.irap.omp.eu"); } +}; + +} // namespace + AmdaServer &AmdaServer::instance() { /// @todo ALX