2 * Copyright 2008 Haiku Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
6 * Julun, <host.haiku@gmx.de
8 #ifndef _PRINTER_ROSTER_H_
9 #define _PRINTER_ROSTER_H_
12 #include <Directory.h>
13 #include <Messenger.h>
25 class BPrinterRoster
{
30 int32
CountPrinters();
32 status_t
GetNextPrinter(BPrinter
* printer
);
33 status_t
GetDefaultPrinter(BPrinter
* printer
);
34 status_t
FindPrinter(const BString
& name
, BPrinter
* printer
);
38 status_t
StartWatching(const BMessenger
& listener
);
42 BPrinterRoster(const BPrinterRoster
& printerRoster
);
43 BPrinterRoster
& operator=(const BPrinterRoster
& printerRoster
);
46 BMessenger
* fListener
;
48 node_ref fUserPrintersNodRef
;
49 BDirectory fUserPrintersDirectory
;
54 } // namespace BPrivate
57 #endif // _PRINTER_ROSTER_H_