1 /**************************************************************************************** 2 * Copyright (c) 2008 Casey Link <unnamedrambler@gmail.com> * 3 * * 4 * This program is free software; you can redistribute it and/or modify it under * 5 * the terms of the GNU General Public License as published by the Free Software * 6 * Foundation; either version 2 of the License, or (at your option) any later * 7 * version. * 8 * * 9 * This program is distributed in the hope that it will be useful, but WITHOUT ANY * 10 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A * 11 * PARTICULAR PURPOSE. See the GNU General Public License for more details. * 12 * * 13 * You should have received a copy of the GNU General Public License along with * 14 * this program. If not, see <http://www.gnu.org/licenses/>. * 15 ****************************************************************************************/ 16 17 #ifndef AMAROK_SERVICECOLLECTIONLOCATION_H 18 #define AMAROK_SERVICECOLLECTIONLOCATION_H 19 20 #include "core/collections/CollectionLocation.h" 21 #include "amarok_export.h" 22 #include "ServiceCollection.h" 23 24 #include <QSet> 25 #include <QMap> 26 #include <QString> 27 28 namespace Collections { 29 30 class AMAROK_EXPORT ServiceCollectionLocation : public CollectionLocation 31 { 32 Q_OBJECT 33 public: 34 ServiceCollectionLocation(); 35 explicit ServiceCollectionLocation( ServiceCollection *parentCollection ); 36 ~ServiceCollectionLocation() override; 37 38 void getKIOCopyableUrls( const Meta::TrackList &tracks ) override; 39 40 //These are service dependent 41 QString prettyLocation() const override; 42 bool isWritable() const override; 43 bool isOrganizable() const override; 44 private: 45 ServiceCollection *m_collection; //parent collection 46 bool m_removeSources; //used by the destination to remember the value, needed in copyurlsToCollection 47 bool m_overwriteFiles; 48 }; 49 50 } //namespace Collections 51 52 #endif 53