repository_infos: Enable automatic updates on the main Haiku repostiory.
[haiku.git] / src / apps / mediaplayer / playlist / ImportPLItemsCommand.h
blobf4cc8950002f007550758e67d55369d493a31bfa
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
9 #include "PLItemsCommand.h"
11 class BMessage;
13 class ImportPLItemsCommand : public PLItemsCommand {
14 public:
15 ImportPLItemsCommand(
16 Playlist* playlist,
17 const BMessage* refsMessage,
18 int32 toIndex);
19 virtual ~ImportPLItemsCommand();
21 virtual status_t InitCheck();
23 virtual status_t Perform();
24 virtual status_t Undo();
26 virtual void GetName(BString& name);
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;
39 #endif // IMPORT_PL_ITEMS_COMMAND_H