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 IMPORT_PL_ITEMS_COMMAND_H
6#define IMPORT_PL_ITEMS_COMMAND_H
7
8
9#include "PLItemsCommand.h"
10
11class BMessage;
12
13class ImportPLItemsCommand : public PLItemsCommand {
14public:
15								ImportPLItemsCommand(
16									Playlist* playlist,
17									const BMessage* refsMessage,
18									int32 toIndex);
19	virtual						~ImportPLItemsCommand();
20
21	virtual	status_t			InitCheck();
22
23	virtual	status_t			Perform();
24	virtual status_t			Undo();
25
26	virtual void				GetName(BString& name);
27
28private:
29			Playlist*			fPlaylist;
30			PlaylistItem**		fOldItems;
31			int32				fOldCount;
32			PlaylistItem**		fNewItems;
33			int32				fNewCount;
34			int32				fToIndex;
35			int32				fPlaylingIndex;
36			bool				fItemsAdded;
37};
38
39#endif // IMPORT_PL_ITEMS_COMMAND_H
40