vfs: check userland buffers before reading them.
[haiku.git] / src / apps / icon-o-matic / style / SetColorCommand.h
blobffcf7e9c665e91f13e861a3100873c8c9e079dd9
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 SET_COLOR_COMMAND_H
9 #define SET_COLOR_COMMAND_H
12 #include "Command.h"
13 #include "IconBuild.h"
15 #include <InterfaceDefs.h>
18 _BEGIN_ICON_NAMESPACE
19 class Style;
20 _END_ICON_NAMESPACE
22 _USING_ICON_NAMESPACE
25 class SetColorCommand : public Command {
26 public:
27 SetColorCommand(Style* style,
28 const rgb_color& color);
29 virtual ~SetColorCommand();
31 virtual status_t InitCheck();
33 virtual status_t Perform();
34 virtual status_t Undo();
36 virtual void GetName(BString& name);
38 virtual bool CombineWithNext(const Command* next);
40 private:
41 Style* fStyle;
42 rgb_color fColor;
45 #endif // SET_COLOR_COMMAND_H