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 MOVE_PL_ITEMS_COMMAND_H
6#define MOVE_PL_ITEMS_COMMAND_H
7
8
9#include <List.h>
10
11#include "PLItemsCommand.h"
12
13
14class MovePLItemsCommand : public PLItemsCommand {
15 public:
16								MovePLItemsCommand(
17									Playlist* playlist,
18									BList indices,
19									int32 toIndex);
20	virtual						~MovePLItemsCommand();
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			int32				fCount;
32			PlaylistItem**		fItems;
33			int32*				fIndices;
34			int32				fToIndex;
35};
36
37#endif // MOVE_PL_ITEMS_COMMAND_H
38