2 * Copyright 2001-2010, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
9 #ifndef PRINTER_DRIVER_ADD_ON_H
10 #define PRINTER_DRIVER_ADD_ON_H
13 #include <Directory.h>
17 #include <SupportDefs.h>
20 class PrinterDriverAddOn
23 PrinterDriverAddOn(const char* driver
);
24 ~PrinterDriverAddOn();
26 status_t
AddPrinter(const char* spoolFolderName
);
27 status_t
ConfigPage(BDirectory
* spoolFolder
,
29 status_t
ConfigJob(BDirectory
* spoolFolder
,
31 status_t
DefaultSettings(BDirectory
* spoolFolder
,
33 status_t
TakeJob(const char* spoolFile
,
34 BDirectory
* spoolFolder
);
36 static status_t
FindPathToDriver(const char* driver
, BPath
* path
);
39 bool IsLoaded() const;
40 status_t
CopyValidSettings(BMessage
* settings
,
41 BMessage
* newSettings
);