btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / apps / icon-o-matic / style / AddStylesCommand.h
blob76b513832549c67026adf5a9f727d1194b1fd4bd
1 /*
2 * Copyright 2006-2007, Haiku.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Stephan Aßmus <superstippi@gmx.de>
7 */
8 #ifndef ADD_STYLES_COMMAND_H
9 #define ADD_STYLES_COMMAND_H
12 #include "Command.h"
13 #include "IconBuild.h"
16 _BEGIN_ICON_NAMESPACE
17 class Style;
18 class StyleContainer;
19 _END_ICON_NAMESPACE
21 _USING_ICON_NAMESPACE
24 class AddStylesCommand : public Command {
25 public:
26 AddStylesCommand(
27 StyleContainer* container,
28 Style** const styles,
29 int32 count,
30 int32 index);
31 virtual ~AddStylesCommand();
33 virtual status_t InitCheck();
35 virtual status_t Perform();
36 virtual status_t Undo();
38 virtual void GetName(BString& name);
40 private:
41 StyleContainer* fContainer;
42 Style** fStyles;
43 int32 fCount;
44 int32 fIndex;
45 bool fStylesAdded;
48 #endif // ADD_STYLES_COMMAND_H