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 "PLItemsCommand.h" 10 11class CopyPLItemsCommand : public PLItemsCommand { 12public: 13 CopyPLItemsCommand( 14 Playlist* playlist, 15 const int32* indices, 16 int32 count, 17 int32 toIndex); 18 virtual ~CopyPLItemsCommand(); 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 27private: 28 Playlist* fPlaylist; 29 PlaylistItem** fItems; 30 int32 fToIndex; 31 int32 fCount; 32 bool fItemsCopied; 33}; 34 35#endif // COPY_PL_ITEMS_COMMAND_H 36