BuildLogViewer/BuildStatus.h
author John Kern <johnk@symbian.org>
Wed, 24 Mar 2010 14:05:38 -0700
changeset 3 e6d1a78b6db9
parent 2 6894bf2709c0
permissions -rwxr-xr-x
wip - start of an example for my forthcoming presentation

#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