Main Page · Namespace List · Alphabetical List · Class List · File List · Namespace Members · Class Members · File Members · Related Pages

PrinterSetupDb Class Reference

#include <Entwicklung/moneypenny/src/printersetupdb.h>

List of all members.


Detailed Description

This class extends the functionality of the basic QDomDocument class with specific methods for querying a LinuxPrinterSetup XML database. You can load a LinuxPrinterSetup database just as you would load any XML file with a QDomDocument (
See also:
QDomDocument).
Author:
Konrad Wilhelm Kleine

Definition at line 52 of file printersetupdb.h.

Public Member Functions

Private Member Functions


Constructor & Destructor Documentation

PrinterSetupDb::PrinterSetupDb const QString &  name  ) 
 

Constructs a new PrinterSetupDb and sets the name of the document type to name

Parameters:
name the name of the document

Definition at line 46 of file printersetupdb.cpp.

PrinterSetupDb::~PrinterSetupDb  ) 
 

Destroys the PrinterSetupDb

Definition at line 55 of file printersetupdb.cpp.


Member Function Documentation

QDomElement PrinterSetupDb::getDriver const QDomNodeList &  driverNodes,
const QString &  driver
const [private]
 

This method fetches a driver as a QDomElement. We do not simply use the elementsByName() function provided by Qt, because it is to slow!

Parameters:
driverNodes the drivers recieved from getDriversByModel() of getDriversByProduct() as a QDomNodeList
driver the name of the printer driver
See also:
getDriverByModel

getDriverByProduct

Returns:
the appropriate driver as a QDomElement.

Definition at line 327 of file printersetupdb.cpp.

Referenced by getDriverByModel(), and getDriverByProduct().

QDomElement PrinterSetupDb::getDriverByModel const QString &  manufacturer,
const QString &  model,
const QString &  driver
const
 

Returns:
a printer driver as a QDomElement. You must specify for which printer manufacturer, printer model and printer driver you want to retrieve the printer driver element.
Parameters:
manufacturer the name of the printer manufacturer
model the name of the printer model
driver the name of the printer driver
See also:
getDriver if you're working with the /proc filesystem

Definition at line 173 of file printersetupdb.cpp.

References getDriver(), and getDriversByModel().

Referenced by GuiPrinterDriverToXml::addDriver(), and GuiPrinterManualSetup::on_pushButton_saveSettings_clicked().

Here is the call graph for this function:

QDomElement PrinterSetupDb::getDriverByProduct const QString &  manufacturer,
const QString &  product,
const QString &  driver
const
 

This is a member function, provided for convenience. It behaves essentially like the above function.

Returns:
a driver as a QDomElement. You must specify for which manufacturer, product and driver you want to retrieve the driver element. The product string is different to the model string as it is usually used in the /proc file system while the model is only a description from the PPD files.
Parameters:
manufacturer the name of the printer manufacturer
product the name of the printer product
driver the name of the printer driver
See also:
getDriver if your're working on a more descriptive basis

Definition at line 195 of file printersetupdb.cpp.

References getDriver(), and getDriversByProduct().

Here is the call graph for this function:

QDomNodeList PrinterSetupDb::getDrivers const QString &  name  )  const
 

Returns:
a driver as a QDomNodeList
Parameters:
name the name of the printer driver

Definition at line 292 of file printersetupdb.cpp.

Referenced by GuiPrinterAutoSetup::findParPortPrinters(), GuiPrinterAutoSetup::findUsbPrinters(), and GuiPrinterAutoSetup::on_listBox_printers_highlighted().

QDomNodeList PrinterSetupDb::getDriversByModel const QString &  manufacturer,
const QString &  model
const
 

Returns:
a QDomNodeList of all printer drivers for the manufacturer + model combination
Parameters:
manufacturer the name of the printer manufacturer
model the name of the printer model

Definition at line 106 of file printersetupdb.cpp.

References getModels().

Referenced by getDriverByModel(), and GuiPrinterManualSetup::on_listBox_models_highlighted().

Here is the call graph for this function:

QDomNodeList PrinterSetupDb::getDriversByProduct const QString &  manufacturer,
const QString &  product
const
 

Returns:
a QDomNodeList of all printer drivers for the manufacturer + product combination
Parameters:
manufacturer the name of the printer manufacturer
product the name of the printer product

Definition at line 138 of file printersetupdb.cpp.

References getModels().

Referenced by getDriverByProduct().

Here is the call graph for this function:

QDomElement PrinterSetupDb::getManufacturer const QString &  manufacturer  )  const
 

Returns:
a manufacturer as a QDomElement corresponding to manufacturer.
Parameters:
manufacturer the name of the printer manufacturer

Definition at line 220 of file printersetupdb.cpp.

References getManufacturers().

Referenced by GuiPrinterDriverToXml::addDriver(), and manufacturerExists().

Here is the call graph for this function:

QDomNodeList PrinterSetupDb::getManufacturers  )  const
 

Returns:
a QDomNodeList of all printer manufacturers

Definition at line 63 of file printersetupdb.cpp.

Referenced by getManufacturer(), getModels(), and GuiPrinterManualSetup::show().

QDomElement PrinterSetupDb::getModel const QString &  manufacturer,
const QString &  model = "",
const QString &  product = ""
const
 

Returns:
a model as a QDomElement corresponding to manufacturer, model and/or product.
Parameters:
manufacturer the name of the printer manufacturer
model the name of the printer model
product the name of the printer product

Definition at line 248 of file printersetupdb.cpp.

References getModels().

Referenced by GuiPrinterDriverToXml::addDriver(), and GuiPrinterAutoSetup::on_pushButton_saveSettings_clicked().

Here is the call graph for this function:

QDomNodeList PrinterSetupDb::getModels const QString &  manufacturer  )  const
 

Returns:
a QDomNodeList of all printer models for the printer manufacturer manufacturer
Parameters:
manufacturer the name of the printer manufacturer from which we want the models

Definition at line 76 of file printersetupdb.cpp.

References getManufacturers().

Referenced by getDriversByModel(), getDriversByProduct(), getModel(), and GuiPrinterManualSetup::on_listBox_manufacturers_highlighted().

Here is the call graph for this function:

bool PrinterSetupDb::manufacturerExists const QString &  manufacturer  )  const
 

Returns:
true if the manufacturer exists in the XML db, otherwise false.
Parameters:
manufacturer the name of the printer manufacturer

Definition at line 209 of file printersetupdb.cpp.

References getManufacturer().

Referenced by GuiPrinterAutoSetup::findParPortPrinters(), and GuiPrinterAutoSetup::findUsbPrinters().

Here is the call graph for this function:


The documentation for this class was generated from the following files:

To get more information, please visit our project site hosted at SourceForge.net Logo
To support this project, please click on this image: Support This Project

Copyright © 2005-2006 Linux Printer Setup Documentation generated by Doxygen 1.4.4 LPS 1.0 (Disclaimer)