BuildLogViewer/BuildStatus.h
author John Kern <johnk@symbian.org>
Wed, 02 Sep 2009 19:04:26 -0700
changeset 1 8e9c5760ce6f
child 2 6894bf2709c0
permissions -rwxr-xr-x
working on a status view
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
     1
#ifndef BUILDSTATUS_H
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
     2
#define BUILDSTATUS_H
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
     3
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
     4
#include <QObject>
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
     5
#include <QDateTime>
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
     6
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
     7
class BuildStatus : public QObject
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
     8
{
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
     9
public:
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    10
    BuildStatus(QObject *parent = 0);
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    11
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    12
    void setName(QString n);
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    13
    QString name();
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    14
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    15
    void setTime(QDateTime w);
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    16
    QString Time();
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    17
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    18
    void setStatus (bool n ) { m_status = n ; } ;
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    19
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    20
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    21
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    22
    // What was the name of the package?
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    23
    QString *m_packageName;
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    24
    // At this time, the symbain build log doesn't have a timestamp in it.
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    25
    // So, we will use the timestamp on the file.
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    26
    QDateTime m_when;
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    27
    // Did the build succeed?
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    28
    bool m_status;
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    29
};
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    30
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    31
#endif // BUILDSTATUS_H