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 IMPORT_PL_ITEMS_COMMAND_H 6 #define IMPORT_PL_ITEMS_COMMAND_H 7 8 9 #include "PLItemsCommand.h" 10 11 class BMessage; 12 13 class ImportPLItemsCommand : public PLItemsCommand { 14 public: 15 ImportPLItemsCommand( 16 Playlist* playlist, 17 const BMessage* refsMessage, 18 int32 toIndex, 19 bool sortItems); 20 virtual ~ImportPLItemsCommand(); 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 PlaylistItem** fOldItems; 32 int32 fOldCount; 33 PlaylistItem** fNewItems; 34 int32 fNewCount; 35 int32 fToIndex; 36 int32 fPlaylingIndex; 37 bool fItemsAdded; 38 }; 39 40 #endif // IMPORT_PL_ITEMS_COMMAND_H 41