vfs: check userland buffers before reading them.
[haiku.git] / src / preferences / joysticks / PortItem.cpp
blobfd297331b1bff3813f5d646ee251e5726e102011
1 /*
2 * Copyright 2008 Haiku.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Fredrik Modéen fredrik@modeen.se
7 */
9 #include "PortItem.h"
11 PortItem::PortItem(const char* label)
12 :BStringItem(label)
16 PortItem::~PortItem()
19 void
20 PortItem::DrawItem(BView *owner, BRect frame, bool complete)
22 BStringItem::DrawItem(owner, frame, complete);
25 BString
26 PortItem::GetOldJoystickName()
28 return fOldSelectedJoystick;
32 BString
33 PortItem::GetJoystickName()
35 return fSelectedJoystick;
39 void
40 PortItem::SetJoystickName(BString str)
42 fOldSelectedJoystick = fSelectedJoystick;
43 fSelectedJoystick = str;