File indexing completed on 2024-05-05 04:48:50
0001 /**************************************************************************************** 0002 * Copyright (c) 2010 Bart Cerneels <bart.cerneels@kde.org> * 0003 * Copyright (c) 2011 Lucas Lira Gomes <x8lucas8x@gmail.com> * 0004 * * 0005 * This program is free software; you can redistribute it and/or modify it under * 0006 * the terms of the GNU General Public License as published by the Free Software * 0007 * Foundation; either version 2 of the License, or (at your option) any later * 0008 * version. * 0009 * * 0010 * This program is distributed in the hope that it will be useful, but WITHOUT ANY * 0011 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A * 0012 * PARTICULAR PURPOSE. See the GNU General Public License for more details. * 0013 * * 0014 * You should have received a copy of the GNU General Public License along with * 0015 * this program. If not, see <http://www.gnu.org/licenses/>. * 0016 ****************************************************************************************/ 0017 0018 #ifndef SYNCRELATIONSTORAGE_H 0019 #define SYNCRELATIONSTORAGE_H 0020 0021 #include "SyncedPlaylist.h" 0022 #include "SyncedPodcast.h" 0023 0024 class SyncRelationStorage 0025 { 0026 public: 0027 SyncRelationStorage(); 0028 virtual ~SyncRelationStorage() {} 0029 0030 virtual void addSync( const Playlists::PlaylistPtr master, const Playlists::PlaylistPtr slave ) = 0; 0031 virtual bool hasToSync( Playlists::PlaylistPtr master, Playlists::PlaylistPtr slave ) const = 0; 0032 virtual SyncedPlaylistPtr asSyncedPlaylist( const Playlists::PlaylistPtr playlist ) = 0; 0033 0034 protected: 0035 SyncedPlaylistPtr createSyncedPlaylist( const Playlists::PlaylistPtr playlist ); 0036 }; 0037 0038 #endif // SYNCRELATIONSTORAGE_H