summaryrefslogtreecommitdiffstats
path: root/sigmod/test/TestSigmodObject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigmod/test/TestSigmodObject.cpp')
-rw-r--r--sigmod/test/TestSigmodObject.cpp21
1 files changed, 19 insertions, 2 deletions
diff --git a/sigmod/test/TestSigmodObject.cpp b/sigmod/test/TestSigmodObject.cpp
index b0baa44d..6ea81d7f 100644
--- a/sigmod/test/TestSigmodObject.cpp
+++ b/sigmod/test/TestSigmodObject.cpp
@@ -18,6 +18,21 @@
// Header include
#include "TestSigmodObject.h"
+// Sigmod includes
+#include "../Sigmod.h"
+
+void TestSigmodObject::makeConnections(Sigmod::Object* object)
+{
+// connect(object, SIGNAL(message(QString)), this, SLOT(message(QString)));
+// connect(object, SIGNAL(warning(QString)), this, SLOT(warning(QString)));
+// connect(object, SIGNAL(error(QString)), this, SLOT(error(QString)));
+}
+
+void TestSigmodObject::closeConnections(Sigmod::Object* object)
+{
+ disconnect(object, 0, this, 0);
+}
+
void TestSigmodObject::message(const QString& message)
{
m_messages.append(message);
@@ -33,12 +48,14 @@ void TestSigmodObject::error(const QString& error)
m_errors.append(error);
}
-void TestSigmodObject::initTestCases()
+void TestSigmodObject::initTestCase()
{
+ m_sigmod = new Sigmod::Sigmod;
}
-void TestSigmodObject::cleanupTestCases()
+void TestSigmodObject::cleanupTestCase()
{
+ delete m_sigmod;
}
void TestSigmodObject::init()