xref: /haiku/src/apps/mediaplayer/playlist/CopyPLItemsCommand.h (revision 239222b2369c39dc52df52b0a7cdd6cc0a91bc92)
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 
11 class CopyPLItemsCommand : public PLItemsCommand {
12 public:
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 
27 private:
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