xref: /haiku/headers/os/add-ons/input_server/InputServerMethod.h (revision 1d9d47fc72028bb71b5f232a877231e59cfe2438)
1 /******************************************************************************
2 /
3 /	File:			InputServerMethod.h
4 /
5 /	Description:	Add-on class for input_server methods.
6 /
7 /	Copyright 1998, Be Incorporated, All Rights Reserved.
8 /
9 ******************************************************************************/
10 
11 #ifndef _INPUTSERVERMETHOD_H
12 #define _INPUTSERVERMETHOD_H
13 
14 #include <BeBuild.h>
15 #include <InputServerFilter.h>
16 #include <SupportDefs.h>
17 
18 
19 class _BMethodAddOn_;
20 class AddOnManager;
21 class InputServer;
22 
23 class BInputServerMethod : public BInputServerFilter {
24 public:
25 							BInputServerMethod(const char		*name,
26 											   const uchar		*icon);
27 	virtual					~BInputServerMethod();
28 
29 	virtual status_t		MethodActivated(bool active);
30 
31 	status_t				EnqueueMessage(BMessage *message);
32 
33 	status_t				SetName(const char *name);
34 	status_t				SetIcon(const uchar *icon);
35 	status_t				SetMenu(const BMenu *menu, const BMessenger target);
36 
37 private:
38 	_BMethodAddOn_*			fOwner;
39 
40 	friend class AddOnManager;
41 	friend class InputServer;
42 
43 	virtual void			_ReservedInputServerMethod1();
44 	virtual void			_ReservedInputServerMethod2();
45 	virtual void			_ReservedInputServerMethod3();
46 	virtual void			_ReservedInputServerMethod4();
47 	uint32					_reserved[4];
48 };
49 
50 
51 #endif
52