2 * Copyright 2001-2010, Haiku.
3 * Distributed under the terms of the MIT License.
8 #ifndef _PRINTERS_WINDOW_H
9 #define _PRINTERS_WINDOW_H
17 class PrinterListView
;
24 class PrintersWindow
: public BWindow
{
26 PrintersWindow(BRect frame
);
28 void MessageReceived(BMessage
* msg
);
31 void PrintTestPage(PrinterItem
* printer
);
33 void AddJob(SpoolFolder
* folder
, Job
* job
);
34 void RemoveJob(SpoolFolder
* folder
, Job
* job
);
35 void UpdateJob(SpoolFolder
* folder
, Job
* job
);
39 bool _IsSelected(PrinterItem
* printer
);
40 void _UpdatePrinterButtons();
41 void _UpdateJobButtons();
43 typedef BWindow Inherited
;
45 PrinterListView
* fPrinterListView
;
46 BButton
* fMakeDefault
;
48 BButton
* fPrintTestPage
;
50 JobListView
* fJobListView
;
56 PrinterItem
* fSelectedPrinter
;
61 #endif // _PRINTERS_WINDOW_H