xref: /haiku/headers/os/add-ons/input_server/InputServerMethod.h (revision d5cd5d63ff0ad395989db6cf4841a64d5b545d1d)
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 
21 
22 class BInputServerMethod : public BInputServerFilter {
23 public:
24 							BInputServerMethod(const char		*name,
25 											   const uchar		*icon);
26 	virtual					~BInputServerMethod();
27 
28 	virtual status_t		MethodActivated(bool active);
29 
30 	status_t				EnqueueMessage(BMessage *message);
31 
32 	status_t				SetName(const char *name);
33 	status_t				SetIcon(const uchar *icon);
34 	status_t				SetMenu(const BMenu *menu, const BMessenger target);
35 
36 private:
37 	_BMethodAddOn_*			fOwner;
38 
39 	virtual void			_ReservedInputServerMethod1();
40 	virtual void			_ReservedInputServerMethod2();
41 	virtual void			_ReservedInputServerMethod3();
42 	virtual void			_ReservedInputServerMethod4();
43 	uint32					_reserved[4];
44 };
45 
46 
47 #endif
48