Return remote object replica from remote call
Unsolved
General and Desktop
-
I'm trying to setup a remote object for a given class.
The class returns a pointer to internal objects.class A { ... func(){ }; } class B { std::vector<A> AObjects; ... A *addObject(){} }
I created the rep file like this
class A { SLOT(func()) } class B { SLOT(A* addObject()) }
This causes errors because the generated code tries to serialize A to transfer it to the cient/replica side.
What I want is a RemoteObject of A to get transferred to call func remotely from the client side.
The number of A Object depends on the remote calls of addObject.Is there a way to get the such a system with qt remote objects?
One way I could imagine is to set the returntype in B to the generated Replica class.
class A { SLOT(func()) } class B { SLOT(AReplica addObject()) }
But then the generated code must be available also at server side and the headers need to be in the right inclusion order...
But replica objects are not serializable either.