1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #pragma once
- #include "../foundation/dispatch.h"
- #include "../foundation/guid.h"
- #include "../nx/nxstring.h"
- class NOVTABLE ifc_serviceFactory : public Wasabi2::Dispatchable
- {
- protected:
- ifc_serviceFactory() : Dispatchable(DISPATCHABLE_VERSION) {}
- ~ifc_serviceFactory() {}
- public:
- GUID GetServiceType() { return ServiceFactory_GetServiceType(); }
- nx_string_t GetServiceName() { return ServiceFactory_GetServiceName(); }
- GUID GetGUID() { return ServiceFactory_GetGUID(); }
- void *GetInterface() { return ServiceFactory_GetInterface(); }
- int ServiceNotify(int msg, intptr_t param1 = 0, intptr_t param2 = 0) { return ServiceFactory_ServiceNotify(msg, param1, param2); }
-
- enum
- {
- ONREGISTERED=0,
- ONSTARTUP=1,
- ONAPPRUNNING=2,
- ONBEFORESHUTDOWN=3,
- ONSHUTDOWN=4,
- ONUNREGISTERED=5,
- };
- enum
- {
- DISPATCHABLE_VERSION,
- };
- protected:
- virtual GUID WASABICALL ServiceFactory_GetServiceType()=0;
- virtual nx_string_t WASABICALL ServiceFactory_GetServiceName()=0;
- virtual GUID WASABICALL ServiceFactory_GetGUID()=0;
- virtual void *WASABICALL ServiceFactory_GetInterface()=0;
- virtual int WASABICALL ServiceFactory_ServiceNotify(int msg, intptr_t param1 = 0, intptr_t param2 = 0)=0;
- };
|