xref: /haiku/src/apps/mediaplayer/playlist/ImportPLItemsCommand.h (revision 0562493379cd52eb7103531f895f10bb8e77c085)
1 /*
2  * Copyright 2007, Haiku. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Stephan Aßmus <superstippi@gmx.de>
7  */
8 #ifndef IMPORT_PL_ITEMS_COMMAND_H
9 #define IMPORT_PL_ITEMS_COMMAND_H
10 
11 
12 #include "Command.h"
13 
14 class BMessage;
15 class Playlist;
16 struct entry_ref;
17 
18 class ImportPLItemsCommand : public Command {
19  public:
20 								ImportPLItemsCommand(
21 									Playlist* playlist,
22 									const BMessage* refsMessage,
23 									int32 toIndex);
24 	virtual						~ImportPLItemsCommand();
25 
26 	virtual	status_t			InitCheck();
27 
28 	virtual	status_t			Perform();
29 	virtual status_t			Undo();
30 
31 	virtual void				GetName(BString& name);
32 
33  private:
34 			Playlist*			fPlaylist;
35 			entry_ref*			fOldRefs;
36 			int32				fOldCount;
37 			entry_ref*			fNewRefs;
38 			int32				fNewCount;
39 			int32				fToIndex;
40 };
41 
42 #endif // IMPORT_PL_ITEMS_COMMAND_H
43