1#ifndef __SNOTIFYCENTER_I__H__
2#define __SNOTIFYCENTER_I__H__
3#include <utilities-def.h>
4#include <interface/SEvtArgs-i.h>
5#include <interface/STaskLoop-i.h>
9typedef void (*FunRunOnUI)(WPARAM wp, LPARAM lp);
12#define INTERFACE INotifyCenter
13DECLARE_INTERFACE(INotifyCenter)
21 STDMETHOD_(
void, FireEventSync)(THIS_ IEvtArgs * e) PURE;
29 STDMETHOD_(
void, FireEventAsync)(THIS_ IEvtArgs * e) PURE;
36 STDMETHOD_(BOOL, RegisterEventMap)(THIS_
const IEvtSlot *slot) PURE;
43 STDMETHOD_(BOOL, UnregisterEventMap)(THIS_
const IEvtSlot *slot) PURE;
51 STDMETHOD_(
void, RunOnUI)(THIS_ IRunnable * pRunnable, BOOL bSync) PURE;
61 STDMETHOD_(
void, RunOnUI2)(THIS_ FunRunOnUI fun, WPARAM wp, LPARAM lp, BOOL bSync) PURE;