summaryrefslogtreecommitdiffstats
path: root/tests/libsample/objecttype.h
diff options
context:
space:
mode:
authorLuciano Wolf <luciano.wolf@openbossa.org>2009-11-30 18:30:39 -0300
committerHugo Lima <hugo.lima@openbossa.org>2009-11-30 20:43:08 -0200
commit659ce4c3b9854b3670a7a2c6f685f73eafac53d4 (patch)
treebfc84d3fb9fa67d6b0d98721c373fcc4d7737256 /tests/libsample/objecttype.h
parentfe71552f4f254d84f2563ee24f108f5dd2c559c6 (diff)
downloadshiboken-659ce4c3b9854b3670a7a2c6f685f73eafac53d4.tar.gz
shiboken-659ce4c3b9854b3670a7a2c6f685f73eafac53d4.tar.xz
shiboken-659ce4c3b9854b3670a7a2c6f685f73eafac53d4.zip
Implement 'child return' examples and support.
Diffstat (limited to 'tests/libsample/objecttype.h')
-rw-r--r--tests/libsample/objecttype.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/libsample/objecttype.h b/tests/libsample/objecttype.h
index 4435ab6c..bd58b7b6 100644
--- a/tests/libsample/objecttype.h
+++ b/tests/libsample/objecttype.h
@@ -67,12 +67,16 @@ public:
// factory method
static ObjectType* create() { return new ObjectType(); }
+ static ObjectType* createWithChild();
void setParent(ObjectType* parent);
ObjectType* parent() const { return m_parent; }
const ObjectTypeList& children() const { return m_children; }
void killChild(const Str& name);
void removeChild(ObjectType* child);
+ ObjectType* takeChild(ObjectType* child);
+ ObjectType* takeChild(const Str& name);
+ ObjectType* findChild(const Str& name);
Str objectName() const;
void setObjectName(const Str& name);