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 BMenu; 22 class InputServer; 23 24 class BInputServerMethod : public BInputServerFilter { 25 public: 26 BInputServerMethod(const char *name, 27 const uchar *icon); 28 virtual ~BInputServerMethod(); 29 30 virtual status_t MethodActivated(bool active); 31 32 status_t EnqueueMessage(BMessage *message); 33 34 status_t SetName(const char *name); 35 status_t SetIcon(const uchar *icon); 36 status_t SetMenu(const BMenu *menu, const BMessenger target); 37 38 private: 39 _BMethodAddOn_* fOwner; 40 41 friend class AddOnManager; 42 friend class InputServer; 43 44 virtual void _ReservedInputServerMethod1(); 45 virtual void _ReservedInputServerMethod2(); 46 virtual void _ReservedInputServerMethod3(); 47 virtual void _ReservedInputServerMethod4(); 48 uint32 _reserved[4]; 49 }; 50 51 52 #endif 53