vfs: check userland buffers before reading them.
[haiku.git] / src / preferences / screensaver / ScreenSaverItem.h
blobd154cfa7179ec11e78ff6c5c0b44351f017aa452
1 /*
2 * Copyright 2005-2013 Haiku, Inc. All Rights Reserved
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Jérôme Duval, jerome.duval@free.fr
7 */
8 #ifndef SCREEN_SAVER_ITEM_H
9 #define SCREEN_SAVER_ITEM_H
12 #include <ListItem.h>
13 #include <String.h>
14 #include <Entry.h>
17 class ScreenSaverItem : public BStringItem {
18 public:
19 ScreenSaverItem(const char* eventName, const char* path)
20 : BStringItem(eventName), fPath(path) {}
22 const char* Path() const { return fPath.String(); }
24 private:
25 BString fPath;
29 #endif // SCREEN_SAVER_ITEM_H