xref: /haiku/src/add-ons/print/drivers/pcl6/PCL6Entry.cpp (revision 67bce78b48ed6d01b5a8eef89f5694c372b7e0a1)
1 /*
2  * PCL6Entry.cpp
3  * Copyright 1999-2000 Y.Takagi. All Rights Reserved.
4  * Copyright 2003 Michael Pfeiffer.
5  */
6 
7 #include "PCL6.h"
8 #include "PCL6Cap.h"
9 #include "PrinterDriver.h"
10 
11 class PCL6PrinterDriver : public PrinterDriver
12 {
13 public:
14 	PCL6PrinterDriver(BNode* printerFolder) : PrinterDriver(printerFolder) {}
15 
16 	const char* GetSignature() const
17 	{
18 		return "application/x-vnd.PCL6-compatible";
19 	}
20 
21 	const char* GetDriverName() const
22 	{
23 		return "PCL6 Compatible";
24 	}
25 
26 	const char* GetVersion() const
27 	{
28 		return "0.2";
29 	}
30 
31 	const char* GetCopyright() const
32 	{
33 		return "PCL6 driver Copyright © 2003,04 Michael Pfeiffer.\n";
34 	}
35 
36 	PrinterCap* InstantiatePrinterCap(PrinterData* printerData)
37 	{
38 		return new PCL6Cap(printerData);
39 	}
40 
41 	GraphicsDriver* InstantiateGraphicsDriver(BMessage* settings, PrinterData* printerData, PrinterCap* printerCap)
42 	{
43 		return new PCL6Driver(settings, printerData, printerCap);
44 	}
45 };
46 
47 PrinterDriver* instantiate_printer_driver(BNode* printerFolder)
48 {
49 	return new PCL6PrinterDriver(printerFolder);
50 }
51