aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libsample/null.h
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-08-12 18:04:01 -0300
committerRenato Filho <renato.filho@openbossa.org>2010-08-16 18:42:52 -0300
commitf548708c9643481b023763aa25722a5a25a268e1 (patch)
treebeb320a64100129fc5dfe8fea8094c22e31b70f5 /tests/libsample/null.h
parent6e6e88c719568af17b0dcbd6584f7f1b6c9acc80 (diff)
Create unit test to function with ambiguous signature in Python side.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests/libsample/null.h')
-rw-r--r--tests/libsample/null.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/tests/libsample/null.h b/tests/libsample/null.h
new file mode 100644
index 000000000..ffddaafa0
--- /dev/null
+++ b/tests/libsample/null.h
@@ -0,0 +1,50 @@
+/*
+ * This file is part of the Shiboken Python Binding Generator project.
+ *
+ * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+ *
+ * Contact: PySide team <contact@pyside.org>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * version 2.1 as published by the Free Software Foundation. Please
+ * review the following information to ensure the GNU Lesser General
+ * Public License version 2.1 requirements will be met:
+ * http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+ *
+ * As a special exception to the GNU Lesser General Public License
+ * version 2.1, the object code form of a "work that uses the Library"
+ * may incorporate material from a header file that is part of the
+ * Library. You may distribute such object code under terms of your
+ * choice, provided that the incorporated material (i) does not exceed
+ * more than 5% of the total size of the Library; and (ii) is limited to
+ * numerical parameters, data structure layouts, accessors, macros,
+ * inline functions and templates.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ */
+
+#ifndef NULL_H
+#define NULL_H
+
+class Null
+{
+public:
+ Null(bool value) : m_isNull(value) {}
+ Null() : m_isNull(false) {}
+ void setIsNull(bool flag) { m_isNull = flag; }
+
+private:
+ bool m_isNull;
+};
+
+#endif // STR_H
+