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 "PLItemsCommand.h"
10
11class MovePLItemsCommand : public PLItemsCommand {
12 public:
13								MovePLItemsCommand(
14									Playlist* playlist,
15									const int32* indices,
16									int32 count,
17									int32 toIndex);
18	virtual						~MovePLItemsCommand();
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*				fIndices;
31			int32				fToIndex;
32			int32				fCount;
33};
34
35#endif // MOVE_PL_ITEMS_COMMAND_H
36