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 #ifndef _READ_ASSEMBLY_WORKER_ 23 #define _READ_ASSEMBLY_WORKER_ 24 25 #include "GenericReadActor.h" 26 #include "GenericReadWorker.h" 27 28 namespace U2 { 29 30 class Document; 31 class DocumentFormat; 32 class DocumentProviderTask; 33 34 namespace LocalWorkflow { 35 36 class ReadAssemblyWorker : public GenericDocReader { 37 Q_OBJECT 38 public: 39 ReadAssemblyWorker(Actor *p); 40 virtual void init(); 41 42 protected: 43 virtual void onTaskFinished(Task *task); 44 virtual QString addReadDbObjectToData(const QString &objUrl, QVariantMap &data); 45 46 protected: 47 virtual Task *createReadTask(const QString &url, const QString &datasetName); 48 }; // ReadAssemblyWorker 49 50 class ReadAssemblyProto : public GenericReadDocProto { 51 public: 52 ReadAssemblyProto(); 53 }; // ReadAssemblyProto 54 55 class ReadAssemblyWorkerFactory : public DomainFactory { 56 public: 57 static const QString ACTOR_ID; 58 ReadAssemblyWorkerFactory()59 ReadAssemblyWorkerFactory() 60 : DomainFactory(ACTOR_ID) { 61 } 62 static void init(); 63 virtual Worker *createWorker(Actor *a); 64 65 }; // ReadAssemblyWorkerFactory 66 67 } // namespace LocalWorkflow 68 } // namespace U2 69 70 #endif // _READ_ASSEMBLY_WORKER_ 71