1 /* 2 * Copyright © 2007-2009 Stephan Aßmus <superstippi@gmx.de> 3 * All rights reserved. Distributed under the terms of the MIT license. 4 */ 5 #ifndef REMOVE_PL_ITEMS_COMMAND_H 6 #define REMOVE_PL_ITEMS_COMMAND_H 7 8 9 #include "PLItemsCommand.h" 10 11 class RemovePLItemsCommand : public PLItemsCommand { 12 public: 13 RemovePLItemsCommand( 14 Playlist* playlist, 15 const int32* indices, 16 int32 count, 17 bool moveFilesToTrash = false); 18 virtual ~RemovePLItemsCommand(); 19 20 virtual status_t InitCheck(); 21 22 virtual status_t Perform(); 23 virtual status_t Undo(); 24 25 virtual void GetName(BString& name); 26 27 private: 28 Playlist* fPlaylist; 29 PlaylistItem** fItems; 30 int32* fIndices; 31 int32 fCount; 32 bool fMoveFilesToTrash; 33 bool fMoveErrorShown; 34 bool fItemsRemoved; 35 }; 36 37 #endif // REMOVE_PL_ITEMS_COMMAND_H 38