aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libsample/blackbox.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Change the license boiler plates of all LGPL files removing the special ↵Hugo Parente Lima2010-09-091-20/+8
| | | | | | | exception. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Added method to take care of the details of ownership transfer to C++.Marcelo Lira2009-11-301-0/+1
| | | | | | | | | | | | | | | | | | | Simple ownership transference, i.e. without parenting, is now performed by the new BindingManager::transferOwnershipToCpp method. It remove the parent of the transfered object and proceeds transfer or invalidation if needed. The generated code for simple ownership transfer from Python to C++ now reflects this change. Fixed the method BlackBox::keepObjectType that steals an ObjectType ownership to C++ to remove it from its parent also. The BlackBox class does not take care of the stolen object as a proper parent would, but its destructor deletes the object, so the "unparenting" is needed to avoid freeing the same memory twice. Created an unit test that adds children to a parent ObjectType and then steal the children to C++ with BlackBox.keepObjectType. Reviewed by Hugo Lima <hugo.lima@openbossa.org>
* Fix objects/points methods to return a list + fix example using them.Luciano Wolf2009-11-271-0/+25
| | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Use map instead of list inside BlackBox class.Luciano Wolf2009-11-271-27/+35
| | | | | | Now keepObjectType/keepPoint and retrieveObjectType/retrievePoint uses a ticket to get the object from a map. It's a way better than lists.
* Renaming -> KinderGarten to BlackBoxLuciano Wolf2009-11-271-0/+101