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