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 REMOVE_PL_ITEMS_COMMAND_H
6#define REMOVE_PL_ITEMS_COMMAND_H
7
8
9#include <List.h>
10
11#include "PLItemsCommand.h"
12
13
14class RemovePLItemsCommand : public PLItemsCommand {
15public:
16								RemovePLItemsCommand(
17									Playlist* playlist,
18									BList indices,
19									bool moveFilesToTrash = false);
20	virtual						~RemovePLItemsCommand();
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
29private:
30			Playlist*			fPlaylist;
31			int32				fCount;
32			PlaylistItem**		fItems;
33			int32*				fIndices;
34			bool				fMoveFilesToTrash;
35			bool				fMoveErrorShown;
36			bool				fItemsRemoved;
37};
38
39#endif // REMOVE_PL_ITEMS_COMMAND_H
40