vfs: check userland buffers before reading them.
[haiku.git] / src / preferences / joysticks / PortItem.h
blobcc14ec536dc191fce7b331ad071a65685add43c4
1 /*
2 * Copyright 2008 Haiku.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Fredrik Modéen fredrik@modeen.se
7 */
8 #ifndef PORT_ITEM_H
9 #define PORT_ITEM_H
11 #include <ListItem.h>
12 #include <String.h>
14 class PortItem : public BStringItem {
15 public:
16 PortItem(const char* label);
17 ~PortItem();
18 virtual void DrawItem(BView *owner, BRect frame, bool complete = false);
19 BString GetOldJoystickName();
20 BString GetJoystickName();
21 void SetJoystickName(BString str);
22 protected:
23 BString fOldSelectedJoystick;
24 BString fSelectedJoystick;
28 #endif /* MESSAGED_ITEM_H */