1 /**
2  * UGENE - Integrated Bioinformatics Tools.
3  * Copyright (C) 2008-2021 UniPro <ugene@unipro.ru>
4  * http://ugene.net
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2
9  * of the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19  * MA 02110-1301, USA.
20  */
21 
22 #include "ReadDocumentTaskFactory.h"
23 
24 namespace U2 {
25 namespace Workflow {
26 
27 const QString ReadFactories::READ_ASSEMBLY("read-assembly-task-factory");
28 
ReadDocumentTask(const QString & _url,const QString & name,const QString & _datasetName,TaskFlags f)29 ReadDocumentTask::ReadDocumentTask(const QString &_url, const QString &name, const QString &_datasetName, TaskFlags f)
30     : Task(name, f), url(_url), datasetName(_datasetName) {
31 }
32 
~ReadDocumentTask()33 ReadDocumentTask::~ReadDocumentTask() {
34     result.clear();
35 }
36 
takeResult()37 QList<SharedDbiDataHandler> ReadDocumentTask::takeResult() {
38     QList<SharedDbiDataHandler> ret = result;
39     result.clear();
40 
41     return ret;
42 }
43 
getUrl() const44 const QString &ReadDocumentTask::getUrl() const {
45     return url;
46 }
47 
getDatasetName() const48 const QString &ReadDocumentTask::getDatasetName() const {
49     return datasetName;
50 }
51 
getProducedFiles() const52 const QStringList &ReadDocumentTask::getProducedFiles() const {
53     return producedFiles;
54 }
55 
ReadDocumentTaskFactory(const QString & _id)56 ReadDocumentTaskFactory::ReadDocumentTaskFactory(const QString &_id)
57     : id(_id) {
58 }
59 
~ReadDocumentTaskFactory()60 ReadDocumentTaskFactory::~ReadDocumentTaskFactory() {
61 }
62 
getId() const63 QString ReadDocumentTaskFactory::getId() const {
64     return id;
65 }
66 
67 }  // namespace Workflow
68 }  // namespace U2
69