/* * Copyright 2008 Ben Boeckel * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 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 General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ // 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); } void TestSigmodObject::warning(const QString& warning) { m_warnings.append(warning); } void TestSigmodObject::error(const QString& error) { m_errors.append(error); } void TestSigmodObject::initTestCase() { m_sigmod = new Sigmod::Sigmod; } void TestSigmodObject::cleanupTestCase() { delete m_sigmod; } void TestSigmodObject::init() { } void TestSigmodObject::cleanup() { m_messages.clear(); m_warnings.clear(); m_errors.clear(); }