xref: /haiku/src/add-ons/print/drivers/canon_lips/lips4/Lips4Entry.cpp (revision f2b4344867e97c3f4e742a1b4a15e6879644601a)
1 /*
2  * Lips4Entry.cpp
3  * Copyright 1999-2000 Y.Takagi. All Rights Reserved.
4  */
5 
6 
7 #include "Lips4.h"
8 #include "Lips4Cap.h"
9 #include "PrinterDriver.h"
10 
11 
12 class Lips4PrinterDriver : public PrinterDriver
13 {
14 public:
15 	Lips4PrinterDriver(BNode* printerFolder) : PrinterDriver(printerFolder) {}
16 
17 	const char* GetSignature() const
18 	{
19 		return "application/x-vnd.lips4-compatible";
20 	}
21 
22 	const char* GetDriverName() const
23 	{
24 		return "Canon LIPS4 compatible";
25 	}
26 
27 	const char* GetVersion() const
28 	{
29 		return "0.9.4";
30 	}
31 
32 	const char* GetCopyright() const
33 	{
34 		return "Copyright © 1999-2000 Y.Takagi.\n";
35 	}
36 
37 	PrinterCap* InstantiatePrinterCap(PrinterData* printerData)
38 	{
39 		return new Lips4Cap(printerData);
40 	}
41 
42 	GraphicsDriver* InstantiateGraphicsDriver(BMessage* settings,
43 		PrinterData* printerData, PrinterCap* printerCap)
44 	{
45 		return new LIPS4Driver(settings, printerData, printerCap);
46 	}
47 };
48 
49 
50 PrinterDriver*
51 instantiate_printer_driver(BNode* printerFolder)
52 {
53 	return new Lips4PrinterDriver(printerFolder);
54 }
55