1/*
2 * Copyright 2007, Haiku. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 *
5 * Authors:
6 *		Michael Pfeiffer
7 */
8
9#ifndef _TEST_RESULT_ITEM_H
10#define _TEST_RESULT_ITEM_H
11
12#include <Bitmap.h>
13#include <ListItem.h>
14#include <String.h>
15#include <View.h>
16
17class TestResultItem : public BListItem {
18
19public:
20	TestResultItem(const char* name, BRect bitmapSize);
21	virtual ~TestResultItem();
22
23	void DrawItem(BView *owner, BRect itemRect, bool drawEverthing);
24	void Update(BView *owner, const BFont *font);
25
26	void SetOk(bool ok) { fOk = ok; }
27	void SetErrorMessage(const char *errorMessage) { fErrorMessage = errorMessage; }
28	void SetDirectBitmap(BBitmap *directBitmap) { fDirectBitmap = directBitmap; }
29	void SetOriginalBitmap(BBitmap *originalBitmap) { fOriginalBitmap = originalBitmap; }
30	void SetArchivedBitmap(BBitmap *archivedBitmap) { fArchivedBitmap = archivedBitmap; }
31
32private:
33	BString fName;
34	BRect fBitmapSize;
35	bool fOk;
36	BString fErrorMessage;
37	BBitmap *fDirectBitmap;
38	BBitmap *fOriginalBitmap;
39	BBitmap *fArchivedBitmap;
40};
41
42
43class HeaderListItem : public BListItem {
44public:
45	HeaderListItem(const char* label1, const char* label2,
46					const char* label3, const char* label4, const char* label5,
47					const char* label6, BRect rect);
48	virtual void DrawItem(BView *owner, BRect itemRect, bool drawEverthing);
49	virtual void Update(BView *owner, const BFont *font);
50
51private:
52	BString fLabels[6];
53	BRect fRect;
54};
55
56
57#endif
58