[Kde-bindings] Using a custom RealProxy to implement a C# SMOKE adaptor

Richard Dale Richard_Dale at tipitina.demon.co.uk
Thu Aug 21 08:27:40 UTC 2003


On Thursday 21 August 2003 04:56, Marcus wrote:
> I'm so lost with all this SMOKE stuff lately, but I do think that using
> SMOKE with C# is a huge mistake.
It doesn't feel a mistake to use SMOKE for the QtJava project. Why do you 
think it would be a mistake for C#?

> On Wednesday 20 August 2003 6:56 pm, Richard Dale wrote:
> > I've just got the java code generation working for a QtJava SMOKE adaptor
> > based on the Java Proxy class, rather than JNI. The proxies are created
> > like this with an array of interfaces, two for each class in the
> > hierarchy (one for public methods, and one for protected):
> >
> > 	protected Qt(Class[] interfaces, int index) {
> > 		interfaces[index] = QtPublicInterface.class;
> > 		interfaces[index+1] = QtProtectedInterface.class;
> > 		_proxy = Proxy.newProxyInstance(ClassLoader.getSystemClassLoader(),
> > 			interfaces,
> > 			new SmokeInvocation(this) );
> > 	}
> >
> > There is a very similar class in .NET - RealProxy. So I wonder if it
> > would be a good way of doing a Qt C# SMOKE adaptor like the java one. The
> > RealProxy constructor looks like this:
> >
> > protected RealProxy(
> >    Type classToProxy,
> >    IntPtr stub,
> >    object stubData
> > );
> >
> > I couldn't find out if it's possible to create a 'Type' by aggragating
> > interfaces together to get the equivalent functionality of the java Proxy
> > above - I don't know enough about .net.
>
> _______________________________________________
> Kde-bindings mailing list
> Kde-bindings at mail.kde.org
> http://mail.kde.org/mailman/listinfo/kde-bindings


More information about the Kde-bindings mailing list