| 1 | /***************************************************************************** |
| 2 | ** QNapi |
| 3 | ** Copyright (C) 2008-2017 Piotr KrzemiĆski <[email protected]> |
| 4 | ** |
| 5 | ** This program is free software; you can redistribute it and/or modify |
| 6 | ** it under the terms of the GNU General Public License as published by |
| 7 | ** the Free Software Foundation; either version 2 of the License, or |
| 8 | ** (at your option) any later version. |
| 9 | ** |
| 10 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
| 11 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
| 12 | ** |
| 13 | *****************************************************************************/ |
| 14 | |
| 15 | #ifndef SUBTITLEDOWNLOADENGINEMETADATA_H |
| 16 | #define SUBTITLEDOWNLOADENGINEMETADATA_H |
| 17 | |
| 18 | #include <Maybe.h> |
| 19 | |
| 20 | #include <QString> |
| 21 | |
| 22 | class SubtitleDownloadEngineMetadata { |
| 23 | private: |
| 24 | QString name_; |
| 25 | QString description_; |
| 26 | Maybe<QUrl> registrationUrl_; |
| 27 | Maybe<QUrl> uploadUrl_; |
| 28 | |
| 29 | public: |
| 30 | SubtitleDownloadEngineMetadata(const QString& name, |
| 31 | const QString& description, |
| 32 | const Maybe<QUrl>& registrationUrl, |
| 33 | const Maybe<QUrl>& uploadUrl) |
| 34 | : name_(name), |
| 35 | description_(description), |
| 36 | registrationUrl_(registrationUrl), |
| 37 | uploadUrl_(uploadUrl) {} |
| 38 | |
| 39 | QString name() const { return name_; } |
| 40 | QString description() const { return description_; } |
| 41 | Maybe<QUrl> registrationUrl() const { return registrationUrl_; } |
| 42 | Maybe<QUrl> uploadUrl() const { return uploadUrl_; } |
| 43 | }; |
| 44 | |
| 45 | #endif |