1 /* 2 * Copyright 2007, Haiku. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Stephan Aßmus <superstippi@gmx.de> 7 */ 8 #ifndef COPY_PL_ITEMS_COMMAND_H 9 #define COPY_PL_ITEMS_COMMAND_H 10 11 12 #include "Command.h" 13 14 class Playlist; 15 struct entry_ref; 16 17 class CopyPLItemsCommand : public Command { 18 public: 19 CopyPLItemsCommand( 20 Playlist* playlist, 21 const int32* indices, 22 int32 count, 23 int32 toIndex); 24 virtual ~CopyPLItemsCommand(); 25 26 virtual status_t InitCheck(); 27 28 virtual status_t Perform(); 29 virtual status_t Undo(); 30 31 virtual void GetName(BString& name); 32 33 private: 34 Playlist* fPlaylist; 35 entry_ref* fRefs; 36 int32 fToIndex; 37 int32 fCount; 38 }; 39 40 #endif // COPY_PL_ITEMS_COMMAND_H 41