BuildLogViewer/BuildStatus.h
author John Kern <johnk@symbian.org>
Thu, 03 Sep 2009 16:31:30 -0700
changeset 2 6894bf2709c0
parent 1 8e9c5760ce6f
child 3 e6d1a78b6db9
permissions -rwxr-xr-x
add some regex to parse status information.
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);
2
6894bf2709c0 add some regex to parse status information.
John Kern <johnk@symbian.org>
parents: 1
diff changeset
    13
    const QString *name();
1
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);
2
6894bf2709c0 add some regex to parse status information.
John Kern <johnk@symbian.org>
parents: 1
diff changeset
    16
    QString time();
1
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    17
2
6894bf2709c0 add some regex to parse status information.
John Kern <johnk@symbian.org>
parents: 1
diff changeset
    18
    void setStatus (bool n );
6894bf2709c0 add some regex to parse status information.
John Kern <johnk@symbian.org>
parents: 1
diff changeset
    19
    const QString *status();
1
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    20
2
6894bf2709c0 add some regex to parse status information.
John Kern <johnk@symbian.org>
parents: 1
diff changeset
    21
private:
1
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;
2
6894bf2709c0 add some regex to parse status information.
John Kern <johnk@symbian.org>
parents: 1
diff changeset
    29
    QString *m_PresentStatus;
1
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
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    32
#endif // BUILDSTATUS_H