vfs: check userland buffers before reading them.
[haiku.git] / src / apps / icon-o-matic / style / RemoveStylesCommand.h
blobe41acfc0f52629500e454d3df026b46deb970f0f
1 /*
2 * Copyright 2006-2007, Haiku. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Stephan Aßmus <superstippi@gmx.de>
7 */
8 #ifndef REMOVE_STYLES_COMMAND_H
9 #define REMOVE_STYLES_COMMAND_H
12 #include "Command.h"
13 #include "IconBuild.h"
15 #include <List.h>
18 _BEGIN_ICON_NAMESPACE
19 class Style;
20 class StyleContainer;
21 _END_ICON_NAMESPACE
23 _USING_ICON_NAMESPACE
26 class RemoveStylesCommand : public Command {
27 public:
28 RemoveStylesCommand(
29 StyleContainer* container,
30 Style** const styles,
31 int32 count);
32 virtual ~RemoveStylesCommand();
34 virtual status_t InitCheck();
36 virtual status_t Perform();
37 virtual status_t Undo();
39 virtual void GetName(BString& name);
41 private:
42 StyleContainer* fContainer;
43 struct StyleInfo {
44 Style* style;
45 int32 index;
46 BList shapes;
48 StyleInfo* fInfos;
49 int32 fCount;
50 bool fStylesRemoved;
53 #endif // REMOVE_STYLES_COMMAND_H