File indexing completed on 2024-05-19 04:55:59
0001 /** 0002 * \file servertrackimporter.cpp 0003 * Abstract base class for track imports from a server. 0004 * 0005 * \b Project: Kid3 0006 * \author Urs Fleisch 0007 * \date 23 Jun 2013 0008 * 0009 * Copyright (C) 2013-2018 Urs Fleisch 0010 * 0011 * This file is part of Kid3. 0012 * 0013 * Kid3 is free software; you can redistribute it and/or modify 0014 * it under the terms of the GNU General Public License as published by 0015 * the Free Software Foundation; either version 2 of the License, or 0016 * (at your option) any later version. 0017 * 0018 * Kid3 is distributed in the hope that it will be useful, 0019 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0020 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0021 * GNU General Public License for more details. 0022 * 0023 * You should have received a copy of the GNU General Public License 0024 * along with this program. If not, see <http://www.gnu.org/licenses/>. 0025 */ 0026 0027 #include "servertrackimporter.h" 0028 #include "httpclient.h" 0029 0030 /** 0031 * Constructor. 0032 * 0033 * @param netMgr network access manager 0034 * @param trackDataModel track data to be filled with imported values, 0035 * is passed with filenames set 0036 */ 0037 ServerTrackImporter::ServerTrackImporter(QNetworkAccessManager* netMgr, 0038 TrackDataModel* trackDataModel) 0039 : QObject(netMgr), 0040 m_httpClient(new HttpClient(netMgr)), 0041 m_trackDataModel(trackDataModel) { 0042 } 0043 0044 /** NULL-terminated array of server strings, 0 if not used */ 0045 const char** ServerTrackImporter::serverList() const { return nullptr; } 0046 0047 /** default server, 0 to disable */ 0048 const char* ServerTrackImporter::defaultServer() const { return nullptr; } 0049 0050 /** anchor to online help, 0 to disable */ 0051 const char* ServerTrackImporter::helpAnchor() const { return nullptr; } 0052 0053 /** configuration, 0 if not used */ 0054 ServerImporterConfig* ServerTrackImporter::config() const { return nullptr; } 0055 0056 /** 0057 * Set configuration. 0058 * 0059 * @param cfg import server configuration, 0 if not used 0060 */ 0061 void ServerTrackImporter::setConfig(const ServerImporterConfig* cfg) 0062 { 0063 Q_UNUSED(cfg) 0064 }