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 COPY_PL_ITEMS_COMMAND_H 6 #define COPY_PL_ITEMS_COMMAND_H 7 8 9 #include <List.h> 10 11 #include "PLItemsCommand.h" 12 13 14 class CopyPLItemsCommand : public PLItemsCommand { 15 public: 16 CopyPLItemsCommand( 17 Playlist* playlist, 18 BList indices, 19 int32 toIndex); 20 virtual ~CopyPLItemsCommand(); 21 22 virtual status_t InitCheck(); 23 24 virtual status_t Perform(); 25 virtual status_t Undo(); 26 27 virtual void GetName(BString& name); 28 29 private: 30 Playlist* fPlaylist; 31 int32 fCount; 32 PlaylistItem** fItems; 33 int32 fToIndex; 34 bool fItemsCopied; 35 }; 36 37 #endif // COPY_PL_ITEMS_COMMAND_H 38