xref: /haiku/src/apps/mediaplayer/playlist/RemovePLItemsCommand.h (revision 1214ef1b2100f2b3299fc9d8d6142e46f70a4c3f)
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 REMOVE_PL_ITEMS_COMMAND_H
9 #define REMOVE_PL_ITEMS_COMMAND_H
10 
11 
12 #include "Command.h"
13 
14 class Playlist;
15 struct entry_ref;
16 
17 class RemovePLItemsCommand : public Command {
18  public:
19 								RemovePLItemsCommand(
20 									Playlist* playlist,
21 									const int32* indices,
22 									int32 count);
23 	virtual						~RemovePLItemsCommand();
24 
25 	virtual	status_t			InitCheck();
26 
27 	virtual	status_t			Perform();
28 	virtual status_t			Undo();
29 
30 	virtual void				GetName(BString& name);
31 
32  private:
33 			Playlist*			fPlaylist;
34 			entry_ref*			fRefs;
35 			int32*				fIndices;
36 			int32				fCount;
37 };
38 
39 #endif // REMOVE_PL_ITEMS_COMMAND_H
40