Archived
1
0
This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
winamp/Src/Wasabi/api/service/svcs/svc_accessibility.h

44 lines
1.0 KiB
C
Raw Normal View History

2024-09-24 12:54:57 +00:00
#ifndef _SVC_ACCESSIBILITY_H
#define _SVC_ACCESSIBILITY_H
#include <bfc/dispatch.h>
#include <api/service/services.h>
class Accessible;
class ifc_window;
class NOVTABLE svc_accessibility : public Dispatchable {
public:
static FOURCC getServiceType() { return WaSvc::ACCESSIBILITY; }
Accessible *createAccessibleObject(ifc_window *w);
enum {
SVC_ACCESSIBILITY_CREATEACCESSIBLEOBJECT=10,
};
};
inline Accessible *svc_accessibility::createAccessibleObject(ifc_window *w) {
return _call(SVC_ACCESSIBILITY_CREATEACCESSIBLEOBJECT, (Accessible *)NULL, w);
}
class NOVTABLE svc_accessibilityI: public svc_accessibility {
public:
virtual Accessible *createAccessibleObject(ifc_window *w)=0;
protected:
RECVS_DISPATCH;
};
#include <api/service/servicei.h>
template <class T>
class AccessibilityCreatorSingle : public waServiceFactoryTSingle<svc_accessibility, T> {
public:
svc_accessibility *getHandler() {
return waServiceFactoryTSingle<svc_accessibility, T>::getSingleService();
}
};
#endif