vfs: check userland buffers before reading them.
[haiku.git] / headers / private / interface / MenuItemPrivate.h
blob1b4d01f7acd73443e41cdf690f4f586cd09addce
1 /*
2 * Copyright 2016 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * John Scipione, jscipione@gmail.com
7 */
8 #ifndef __MENU_ITEM_PRIVATE_H
9 #define __MENU_ITEM_PRIVATE_H
12 #include <MenuItem.h>
15 class BMenu;
17 namespace BPrivate {
19 class MenuItemPrivate {
20 public:
21 MenuItemPrivate(BMenuItem* menuItem);
23 void SetSubmenu(BMenu* submenu);
25 void Install(BWindow* window);
26 void Uninstall();
28 private:
29 BMenuItem* fMenuItem;
32 }; // namespace BPrivate
35 #endif // __MENU_ITEM_PRIVATE_H