BuildLogViewer/BuildStatus.cpp
author John Kern <johnk@symbian.org>
Fri, 13 Aug 2010 15:37:06 -0700
changeset 31 7140311376c0
parent 2 6894bf2709c0
permissions -rwxr-xr-x
created in memory contact mgr; populateAddress populates it

#include "BuildStatus.h"

BuildStatus::BuildStatus(QObject *parent)
{
    setParent(parent);
    this->m_packageName = new QString("<unknown>");
    this->m_PresentStatus = new QString("Pass");
    this->m_status = true;
}

void BuildStatus::setTime(QDateTime w)
{
    this->m_when = w;
}

QString BuildStatus::time()
{
    return this->m_when.toString();
}

void BuildStatus::setName(QString n)
{
    if (m_packageName)
    {
        delete m_packageName;
        m_packageName = NULL;
    }
    m_packageName = new QString(n);
}

const QString *BuildStatus::name()
{
    return m_packageName;
}

void BuildStatus::setStatus (bool n )
{
    m_status = n ;
    if (!m_status)
    {
        this->m_PresentStatus = new QString("Failed");
    }
}


const QString  *BuildStatus::status()
{
    return this->m_PresentStatus;
}