xref: /haiku/src/add-ons/print/drivers/gutenprint/GPData.cpp (revision 4410ee1269f6a039e1c1060feb105ce40c8152dc)
1 /*
2 * Copyright 2010, Haiku. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 *
5 * Authors:
6 *		Ithamar R. Adema <ithamar.adema@team-embedded.nl>
7 */
8 
9 
10 #include "GPData.h"
11 
12 #include <Node.h>
13 
14 #define PD_PRINTER_DRIVER_ATTRIBUTE	"gutenprint:driver-name"
15 
16 
17 void
Load()18 GPData::Load()
19 {
20 	PrinterData::Load();
21 	fNode->ReadAttrString(PD_PRINTER_DRIVER_ATTRIBUTE,
22 		&fGutenprintDriverName);
23 }
24 
25 
26 void
Save()27 GPData::Save()
28 {
29 	PrinterData::Save();
30 	fNode->WriteAttrString(PD_PRINTER_DRIVER_ATTRIBUTE,
31 		&fGutenprintDriverName);
32 }
33