2 * Copyright 2001-2010, Haiku.
3 * Distributed under the terms of the MIT License.
8 #ifndef _JOB_LISTVIEW_H
9 #define _JOB_LISTVIEW_H
23 class JobListView
: public BListView
{
24 typedef BListView Inherited
;
26 JobListView(BRect frame
);
29 void AttachedToWindow();
30 void SetSpoolFolder(SpoolFolder
* folder
);
32 void AddJob(Job
* job
);
33 void RemoveJob(Job
* job
);
34 void UpdateJob(Job
* job
);
36 JobItem
* SelectedItem() const;
42 JobItem
* FindJob(Job
* job
) const;
46 class JobItem
: public BListItem
{
53 void Update(BView
*owner
, const BFont
*font
);
54 void DrawItem(BView
*owner
, BRect bounds
,
57 Job
* GetJob() const { return fJob
; }
68 #endif // _JOB_LISTVIEW_H