Removed public headers, Input.cpp is in kits/interface/ already

Filled default hooks in Device Filter Method


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8501 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2004-07-29 12:42:14 +00:00
parent c7ee25fdca
commit ce9ad52de6
7 changed files with 8 additions and 343 deletions

View File

@ -1,155 +0,0 @@
/***********************************************************************
* AUTHOR: nobody <baron>
* FILE: Input.cpp
* DATE: Sun Dec 16 15:57:43 2001
* DESCR:
***********************************************************************/
#include "Input.h"
/*
* Method: BInputDevice::~BInputDevice()
* Descr:
*/
BInputDevice::~BInputDevice()
{
}
/*
* Method: BInputDevice::Name()
* Descr:
*/
const char *
BInputDevice::Name() const
{
return NULL;
}
/*
* Method: BInputDevice::Type()
* Descr:
*/
input_device_type
BInputDevice::Type() const
{
input_device_type dummy;
return dummy;
}
/*
* Method: BInputDevice::IsRunning()
* Descr:
*/
bool
BInputDevice::IsRunning() const
{
bool dummy;
return dummy;
}
/*
* Method: BInputDevice::Start()
* Descr:
*/
status_t
BInputDevice::Start()
{
status_t dummy;
return dummy;
}
/*
* Method: BInputDevice::Stop()
* Descr:
*/
status_t
BInputDevice::Stop()
{
status_t dummy;
return dummy;
}
/*
* Method: BInputDevice::Control()
* Descr:
*/
status_t
BInputDevice::Control(uint32 code,
BMessage *message)
{
status_t dummy;
return dummy;
}
/*
* Method: BInputDevice::Start()
* Descr:
*/
status_t
BInputDevice::Start(input_device_type type)
{
status_t dummy;
return dummy;
}
/*
* Method: BInputDevice::Stop()
* Descr:
*/
status_t
BInputDevice::Stop(input_device_type type)
{
status_t dummy;
return dummy;
}
/*
* Method: BInputDevice::Control()
* Descr:
*/
status_t
BInputDevice::Control(input_device_type type,
uint32 code,
BMessage *message)
{
status_t dummy;
return dummy;
}
/*
* Method: BInputDevice::BInputDevice()
* Descr:
*/
BInputDevice::BInputDevice()
{
}
/*
* Method: BInputDevice::set_name_and_type()
* Descr:
*/
void
BInputDevice::set_name_and_type(const char *name,
input_device_type type)
{
}

View File

@ -60,9 +60,7 @@ BInputServerDevice::~BInputServerDevice()
status_t
BInputServerDevice::InitCheck()
{
status_t dummy;
return dummy;
return B_OK;
}
@ -73,9 +71,7 @@ BInputServerDevice::InitCheck()
status_t
BInputServerDevice::SystemShuttingDown()
{
status_t dummy;
return dummy;
return B_OK;
}
@ -87,9 +83,7 @@ status_t
BInputServerDevice::Start(const char *device,
void *cookie)
{
status_t dummy;
return dummy;
return B_OK;
}
@ -101,9 +95,7 @@ status_t
BInputServerDevice::Stop(const char *device,
void *cookie)
{
status_t dummy;
return dummy;
return B_OK;
}
@ -117,9 +109,7 @@ BInputServerDevice::Control(const char *device,
uint32 code,
BMessage *message)
{
status_t dummy;
return dummy;
return B_OK;
}

View File

@ -1,78 +0,0 @@
/******************************************************************************
/
/ File: InputServerDevice.h
/
/ Description: Add-on class for input_server devices.
/
/ Copyright 1998, Be Incorporated, All Rights Reserved.
/
******************************************************************************/
#ifndef _INPUTSERVERDEVICE_H
#define _INPUTSERVERDEVICE_H
#include <BeBuild.h>
#include <Input.h>
#include <SupportDefs.h>
struct input_device_ref {
char *name;
input_device_type type;
void *cookie;
};
enum {
// B_KEYBOARD_DEVICE notifications
B_KEY_MAP_CHANGED = 1,
B_KEY_LOCKS_CHANGED,
B_KEY_REPEAT_DELAY_CHANGED,
B_KEY_REPEAT_RATE_CHANGED,
// B_POINTING_DEVICE notifications
B_MOUSE_TYPE_CHANGED,
B_MOUSE_MAP_CHANGED,
B_MOUSE_SPEED_CHANGED,
B_CLICK_SPEED_CHANGED,
B_MOUSE_ACCELERATION_CHANGED
};
class _BDeviceAddOn_;
class BInputServerDevice {
public:
BInputServerDevice();
virtual ~BInputServerDevice();
virtual status_t InitCheck();
virtual status_t SystemShuttingDown();
virtual status_t Start(const char *device, void *cookie);
virtual status_t Stop(const char *device, void *cookie);
virtual status_t Control(const char *device,
void *cookie,
uint32 code,
BMessage *message);
status_t RegisterDevices(input_device_ref **devices);
status_t UnregisterDevices(input_device_ref **devices);
status_t EnqueueMessage(BMessage *message);
status_t StartMonitoringDevice(const char *device);
status_t StopMonitoringDevice(const char *device);
private:
_BDeviceAddOn_* fOwner;
virtual void _ReservedInputServerDevice1();
virtual void _ReservedInputServerDevice2();
virtual void _ReservedInputServerDevice3();
virtual void _ReservedInputServerDevice4();
uint32 _reserved[4];
};
#endif

View File

@ -59,9 +59,7 @@ BInputServerFilter::~BInputServerFilter()
status_t
BInputServerFilter::InitCheck()
{
status_t dummy;
return dummy;
return B_OK;
}
@ -73,9 +71,7 @@ filter_result
BInputServerFilter::Filter(BMessage *message,
BList *outList)
{
filter_result dummy;
return dummy;
return B_DISPATCH_MESSAGE;
}

View File

@ -1,39 +0,0 @@
/******************************************************************************
/
/ File: InputServerFilter.h
/
/ Description: Add-on class for input_server filters.
/
/ Copyright 1998, Be Incorporated, All Rights Reserved.
/
*******************************************************************************/
#ifndef _INPUTSERVERFILTER_H
#define _INPUTSERVERFILTER_H
#include <BeBuild.h>
#include <MessageFilter.h>
#include <SupportDefs.h>
class BInputServerFilter {
public:
BInputServerFilter();
virtual ~BInputServerFilter();
virtual status_t InitCheck();
virtual filter_result Filter(BMessage *message, BList *outList);
status_t GetScreenRegion(BRegion *region) const;
private:
virtual void _ReservedInputServerFilter1();
virtual void _ReservedInputServerFilter2();
virtual void _ReservedInputServerFilter3();
virtual void _ReservedInputServerFilter4();
uint32 _reserved[4];
};
#endif

View File

@ -61,9 +61,7 @@ BInputServerMethod::~BInputServerMethod()
status_t
BInputServerMethod::MethodActivated(bool active)
{
status_t dummy;
return dummy;
return B_OK;
}

View File

@ -1,47 +0,0 @@
/******************************************************************************
/
/ File: InputServerMethod.h
/
/ Description: Add-on class for input_server methods.
/
/ Copyright 1998, Be Incorporated, All Rights Reserved.
/
******************************************************************************/
#ifndef _INPUTSERVERMETHOD_H
#define _INPUTSERVERMETHOD_H
#include <BeBuild.h>
#include <InputServerFilter.h>
#include <SupportDefs.h>
class _BMethodAddOn_;
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);
private:
_BMethodAddOn_* fOwner;
virtual void _ReservedInputServerMethod1();
virtual void _ReservedInputServerMethod2();
virtual void _ReservedInputServerMethod3();
virtual void _ReservedInputServerMethod4();
uint32 _reserved[4];
};
#endif