xref: /haiku/src/apps/mediaplayer/playlist/ImportPLItemsCommand.h (revision 2b76973fa2401f7a5edf68e6470f3d3210cbcff3)
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 
11 class BMessage;
12 
13 class ImportPLItemsCommand : public PLItemsCommand {
14 public:
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 
28 private:
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