class IPlugin{public: virtual ~IPlugin1() { } virtual void pluginInit(Host* host) = 0;};Q_DECLARE_INTERFACE(IPlugin, "IPlugin/1.0")
pI->pluginInit(this);
C++ (Qt)class ParserInterface{public: virtual ~ParserInterface() { } virtual void pluginInit(ParserInterface *host) = 0; ParserInterface *parentHost; One *one; };
C++ (Qt)class ParserInterface{public: virtual ~ParserInterface() { } virtual void pluginInit(ParserInterface *host) = 0; virtual ParserInterface *parentHost() = 0; virtual One *one() = 0;};