Refactor dynamic Gadget creation


This does not change behavior, just cleans up the logic.  There are now two
methods for registering gadgets, the first one handles out-of-order types
and early return for existing objects.  The second method, registerGadget,
handles the creation of dynamic enum and gadget types.

This adds a handleEnums() method to put enum processing in a single method.
This will be used for dynamic QRemoteObjectReplica objects in a future
change.

Change-Id: Id4ecc97bd1614d7bce55a96521b667bc1c51089c
Reviewed-by: Michael Brasser <michael.brasser@live.com>
commita8cf3c03d77a7b3084113c7a51301ce3f4508d67
parentf95c42454da76993e37c20be2be8d379db8ab882
authorBrett Stottlemyer <bstottle@ford.com>
committerBrett Stottlemyer <bstottle@ford.com>
commit timeMon, 2 Dec 2024 13:44:38 -0500