2002-07-09 16:24:59 +04:00
|
|
|
/******************************************************************************
|
|
|
|
/
|
|
|
|
/ File: InputServerMethod.h
|
|
|
|
/
|
|
|
|
/ Description: Add-on class for input_server methods.
|
|
|
|
/
|
|
|
|
/ Copyright 1998, Be Incorporated, All Rights Reserved.
|
|
|
|
/
|
2004-07-29 16:44:37 +04:00
|
|
|
******************************************************************************/
|
2002-07-09 16:24:59 +04:00
|
|
|
|
|
|
|
#ifndef _INPUTSERVERMETHOD_H
|
|
|
|
#define _INPUTSERVERMETHOD_H
|
|
|
|
|
|
|
|
#include <BeBuild.h>
|
|
|
|
#include <InputServerFilter.h>
|
|
|
|
#include <SupportDefs.h>
|
|
|
|
|
|
|
|
|
|
|
|
class _BMethodAddOn_;
|
2004-11-18 01:43:06 +03:00
|
|
|
class AddOnManager;
|
2007-10-16 00:13:55 +04:00
|
|
|
class BMenu;
|
2004-11-18 01:43:06 +03:00
|
|
|
class InputServer;
|
2002-07-09 16:24:59 +04:00
|
|
|
|
|
|
|
class BInputServerMethod : public BInputServerFilter {
|
|
|
|
public:
|
|
|
|
BInputServerMethod(const char *name,
|
|
|
|
const uchar *icon);
|
|
|
|
virtual ~BInputServerMethod();
|
|
|
|
|
|
|
|
virtual status_t MethodActivated(bool active);
|
|
|
|
|
|
|
|
status_t EnqueueMessage(BMessage *message);
|
|
|
|
|
|
|
|
status_t SetName(const char *name);
|
|
|
|
status_t SetIcon(const uchar *icon);
|
|
|
|
status_t SetMenu(const BMenu *menu, const BMessenger target);
|
|
|
|
|
2004-10-28 18:13:12 +04:00
|
|
|
private:
|
2004-11-18 01:43:06 +03:00
|
|
|
_BMethodAddOn_* fOwner;
|
|
|
|
|
|
|
|
friend class AddOnManager;
|
|
|
|
friend class InputServer;
|
|
|
|
|
2002-07-09 16:24:59 +04:00
|
|
|
virtual void _ReservedInputServerMethod1();
|
|
|
|
virtual void _ReservedInputServerMethod2();
|
|
|
|
virtual void _ReservedInputServerMethod3();
|
|
|
|
virtual void _ReservedInputServerMethod4();
|
|
|
|
uint32 _reserved[4];
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|