BuildLogViewer/BuildStatus.h
author John Kern <johnk@symbian.org>
Thu, 26 Aug 2010 14:34:34 -0700
changeset 40 edc0144719a1
parent 3 e6d1a78b6db9
permissions -rwxr-xr-x
removed invariant from data() and rowCount(). Performance should be ok now.

#ifndef BUILDSTATUS_H
#define BUILDSTATUS_H

#include <QObject>
#include <QDateTime>

class BuildStatus : public QObject
{
    Q_OBJECT

public:
    BuildStatus(QObject *parent = 0);

public slots:
    void setName(QString n);
    void setStatus (bool n );
    void setTime(QDateTime w);

signals:
    void textEmitted(const QString &);

public:
    const QString *name();
    const QString *status();
    QString time();

private:
    // What was the name of the package?
    QString *m_packageName;
    // At this time, the symbain build log doesn't have a timestamp in it.
    // So, we will use the timestamp on the file.
    QDateTime m_when;
    // Did the build succeed?
    bool m_status;
    QString *m_PresentStatus;
};

#endif // BUILDSTATUS_H