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

LinuxPrinterSetup Namespace Reference


Detailed Description

This namespace contains classes, type definitions and functions for usage with the LinuxPrinterSetup project.

Classes

Typedefs

Enumerations

Functions


Typedef Documentation

typedef struct LinuxPrinterSetup::ppd_info LinuxPrinterSetup::PpdInfo
 

typedef QMap< QString, PrinterDevice > LinuxPrinterSetup::PrinterMap
 

Used in LPS Auto Setup.

Definition at line 131 of file globalsprintersetup.h.


Enumeration Type Documentation

enum LinuxPrinterSetup::ConnectionType
 

The LPS project supports USB- and Parallel-Port-printers

Enumerator:
UsbConnection 
ParPortConnection 

Definition at line 89 of file globalsprintersetup.h.


Function Documentation

void LinuxPrinterSetup::installPrinter QWidget *  widget,
const QString &  printerName,
const QString &  deviceUri,
const QString &  ppdFilePath
 

This function installs a printer with the name printerName , connected to the device deviceUri and the driver file ppdFilePath .

Parameters:
widget calling widget
printerName the name of the new printer on CUPS level
deviceUri the connection type already formatted for use with lpadmin
ppdFilePath the file path to the driver file
Exceptions:
LpsError if something CUPS' lpadmin command fails
Build install command string and replace the blanks in m_printername with underscores, otherwise lpadmin will fail.
Todo:
find out on which systems sudo() is really needed (SuSE is gay)

Definition at line 312 of file globalsprintersetup.cpp.

References LPS_LPADMIN_PATH, and sudo().

Here is the call graph for this function:

void LinuxPrinterSetup::showPrinterDriverDetails const QString &  driverName  ) 
 

This function tries to find the appropriate XML information file for the driverName in the filesystem. If the file exists, it's information is extracted and presentated in a message box. Such information includes detailed information of the driver capabilities.

See also:
LPS_DRIVER_DETAILS_DIR
Parameters:
driverName 
Exceptions:
LpsError if xsltproc command fails
This is how we present the XML driver information file: We pass parameters to a system call to xsltproc which does the transformation of the XML file into a displayable string.

Definition at line 187 of file globalsprintersetup.cpp.

References LPS_DRIVER_DETAILS_DIR, and LPS_DRIVER_STYLESHEET_PATH.

QString LinuxPrinterSetup::sudo  ) 
 

The MoneyPenny linux live CD uses Knoppix where you can use sudo on shell level WITHOUT entering a password. In contrast to this, on other non-live-CD linux systems, you MUST enter a password. This function offers a small workaround for the sudo command. If you want to execute a system command with root rights, you can prepend the string returned from this function to the system command. The function automatically determines if you are working on a live CD or not and pops up a password input dialog if needed.

Returns:
system dependend sudo string

Definition at line 136 of file globalsprintersetup.cpp.

Referenced by installPrinter(), and GuiPrinterManualSetup::readPorts().

void LinuxPrinterSetup::testPrintRequest QWidget *  widget,
const QString &  printerName
 

This function pops up a yes/no message box, that asks if one wants to print test page. If "yes" is chosen, the page is send to the printer that's supposed to actually print it. You must supply the widget from which this function is called, because it's mouse cursor is set to a sandclock/wait symbol.

See also:
LPS_TESTPAGE_PS_SRC
Parameters:
widget calling widget
printerName the name of the printer on CUPS level
Exceptions:
LpsError if something lpr command fails

Definition at line 252 of file globalsprintersetup.cpp.

References LPS_APP_NAME, LPS_TESTPAGE_HEIGHT, LPS_TESTPAGE_IMG_SRC, LPS_TESTPAGE_JOBNAME, LPS_TESTPAGE_PS_SRC, and LPS_TESTPAGE_WIDTH.



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)