author | John Kern <johnk@symbian.org> |
Thu, 12 Aug 2010 17:06:22 -0700 | |
changeset 26 | d9f0df25b6a3 |
parent 3 | e6d1a78b6db9 |
permissions | -rwxr-xr-x |
1 | 1 |
#ifndef BUILDSTATUS_H |
2 |
#define BUILDSTATUS_H |
|
3 |
||
4 |
#include <QObject> |
|
5 |
#include <QDateTime> |
|
6 |
||
7 |
class BuildStatus : public QObject |
|
8 |
{ |
|
3
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
2
diff
changeset
|
9 |
Q_OBJECT |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
2
diff
changeset
|
10 |
|
1 | 11 |
public: |
12 |
BuildStatus(QObject *parent = 0); |
|
13 |
||
3
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
2
diff
changeset
|
14 |
public slots: |
1 | 15 |
void setName(QString n); |
3
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
2
diff
changeset
|
16 |
void setStatus (bool n ); |
1 | 17 |
void setTime(QDateTime w); |
3
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
2
diff
changeset
|
18 |
|
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
2
diff
changeset
|
19 |
signals: |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
2
diff
changeset
|
20 |
void textEmitted(const QString &); |
1 | 21 |
|
3
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
2
diff
changeset
|
22 |
public: |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
2
diff
changeset
|
23 |
const QString *name(); |
2
6894bf2709c0
add some regex to parse status information.
John Kern <johnk@symbian.org>
parents:
1
diff
changeset
|
24 |
const QString *status(); |
3
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
2
diff
changeset
|
25 |
QString time(); |
1 | 26 |
|
2
6894bf2709c0
add some regex to parse status information.
John Kern <johnk@symbian.org>
parents:
1
diff
changeset
|
27 |
private: |
1 | 28 |
// What was the name of the package? |
29 |
QString *m_packageName; |
|
30 |
// At this time, the symbain build log doesn't have a timestamp in it. |
|
31 |
// So, we will use the timestamp on the file. |
|
32 |
QDateTime m_when; |
|
33 |
// Did the build succeed? |
|
34 |
bool m_status; |
|
2
6894bf2709c0
add some regex to parse status information.
John Kern <johnk@symbian.org>
parents:
1
diff
changeset
|
35 |
QString *m_PresentStatus; |
1 | 36 |
}; |
37 |
||
38 |
#endif // BUILDSTATUS_H |