haiku/headers/os/bluetooth/LocalDeviceAddOn.h
Oliver Ruiz Dorantes b09fa0e435 - Fix Jamfile
- Avoid constructor in parent class



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30303 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-21 20:59:47 +00:00

32 lines
922 B
C++

#ifndef LOCAL_DEVICE_ADDON_H
#define LOCAL_DEVICE_ADDON_H
#include <bluetooth/LocalDevice.h>
#include <bluetooth/RemoteDevice.h>
class LocalDeviceAddOn {
public:
virtual const char* GetName()=0;
virtual status_t InitCheck(LocalDevice* lDevice)=0;
virtual const char* GetActionDescription()=0;
virtual status_t TakeAction(LocalDevice* lDevice)=0;
virtual const char* GetActionOnRemoteDescription()=0;
virtual status_t TakeActionOnRemote(LocalDevice* lDevice, RemoteDevice* rDevice)=0;
virtual const char* GetOverridenPropertiesDescription()=0;
virtual BMessage* OverridenProperties(LocalDevice* lDevice, const char* property)=0;
};
#define INSTANTIATE_LOCAL_DEVICE_ADDON(addon) LocalDeviceAddOn* InstantiateLocalDeviceAddOn(){return new addon();}
#define EXPORT_LOCAL_DEVICE_ADDON extern "C" __declspec(dllexport) LocalDeviceAddOn* InstantiateLocalDeviceAddOn();
#endif