diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-11-03 05:21:04 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-11-03 05:21:04 -0300 |
commit | 048498d28bf7a0451bfc490b9f1799d3d3751b40 (patch) | |
tree | 90102429b533478bda47213c8ad5b8d531d6204d /tests/libsample/abstract.h | |
parent | 22ae136011c64b3da8f272e6f55574413064efae (diff) |
* added the ObjectType example which adds some cases similar to
those on Qt's QObject (object name, parent and children list),
although no ownership test was added yet.
* added method Abstract::getObjectId(Abstract*) as a case of
an argument that should be converted to an abstract type.
* added ListUser::multiplyPointList(std::list<Point*>&, double),
which tests the conversion from a Python list of Point wrappers
to a C++ list whose items will be altered.
Diffstat (limited to 'tests/libsample/abstract.h')
-rw-r--r-- | tests/libsample/abstract.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/libsample/abstract.h b/tests/libsample/abstract.h index febb673ee..27c132683 100644 --- a/tests/libsample/abstract.h +++ b/tests/libsample/abstract.h @@ -53,6 +53,9 @@ public: // factory method static Abstract* createObject() { return 0; } + // method that receives an Object Type + static int getObjectId(Abstract* obj) { return obj->id(); } + virtual void pureVirtual() = 0; virtual void unpureVirtual(); |