summaryrefslogtreecommitdiffstats
path: root/lib/kross/test/testobject.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-01-20 01:29:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-01-20 01:29:50 +0000
commit8362bf63dea22bbf6736609b0f49c152f975eb63 (patch)
tree0eea3928e39e50fae91d4e68b21b1e6cbae25604 /lib/kross/test/testobject.h
downloadkoffice-8362bf63dea22bbf6736609b0f49c152f975eb63.tar.gz
koffice-8362bf63dea22bbf6736609b0f49c152f975eb63.zip
Added old abandoned KDE3 version of koffice
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1077364 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/kross/test/testobject.h')
-rw-r--r--lib/kross/test/testobject.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/lib/kross/test/testobject.h b/lib/kross/test/testobject.h
new file mode 100644
index 000000000..011b7e545
--- /dev/null
+++ b/lib/kross/test/testobject.h
@@ -0,0 +1,64 @@
+/***************************************************************************
+ * testobject.h
+ * This file is part of the KDE project
+ * copyright (C)2004-2005 by Sebastian Sauer (mail@dipe.org)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ * 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
+ * Library General Public License for more details.
+ * You should have received a copy of the GNU Library General Public License
+ * along with this program; see the file COPYING. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ ***************************************************************************/
+
+#ifndef KROSS_TEST_TESTOBJECT_H
+#define KROSS_TEST_TESTOBJECT_H
+
+#include "../main/scriptcontainer.h"
+
+#include <qobject.h>
+#include <qstring.h>
+
+class TestObject : public QObject
+{
+ Q_OBJECT
+
+ Q_PROPERTY(QString testProperty READ testProperty WRITE setTestProperty)
+
+ public:
+ TestObject();
+ TestObject(QObject* parent, Kross::Api::ScriptContainer::Ptr scriptcontainer);
+ ~TestObject();
+
+ uint func1(uint);
+ void func2(QString, int);
+ QString func3(QString, int);
+ const QString& func4(const QString&, int) const;
+
+ QString testProperty() const { return m_prop; }
+ void setTestProperty(QString prop) { m_prop = prop; }
+
+ signals:
+ void testSignal();
+ void testSignalString(const QString&);
+ void stdoutSignal(const QString&);
+ void stderrSignal(const QString&);
+ public slots:
+ void testSlot();
+ void testSlot2();
+ void stdoutSlot(const QString&);
+ void stderrSlot(const QString&);
+
+ QObject* self() { return this; }
+
+ private:
+ QString m_prop;
+};
+
+#endif