printer configuration tool |
modules/Printerdb.ycp |
Defines for handling PPD files and database of PPD files | |
|
|
This module has an unstable interface. |
List of printing filters known by the current spooler nil if all filters are supported
True if printer drivers have already been installed
Map of packages that haev checked to be availabel (package name -> boolean)
Packages containing driver for current spooler
map of foomatic printers database
Get the default encoding of the PPD file according to the language
- Parameters:
-
language string language in the form it is present in PPD file
- Return value:
-
encoding in the form it is present in PPD file
Translate the country code (eg. cs_CZ) to language name "czech"
- Parameters:
-
code string the country code
- Return value:
-
language name
Get the characters encoding from the form in it is present in PPD file to the form that can be passed to iconv
- Parameters:
-
ppd_enc string encoding in the form for PPD file
- Return value:
-
encoding in the form for iconv
Set list of packages containing drivers for the current spooler
- Parameters:
-
packages a list of package names
Get list of packages containing drivers for the current spooler
- Return value:
-
a list of package names
Set the list of supported filters
- Parameters:
-
filters a list of known filters or nil if all filters are known
Get the list of supported filters
- Return value:
-
a list of known filters or nil if all filters are known
Set the info if packages with drivers were installed
- Parameters:
-
installed boolean saying if the driver packages have been installed
Get the info if packages with drivers were installed
- Return value:
-
saying if the driver packages have been installed
Get file names of all PPD files for specified model with the specified nick name
- Parameters:
-
vendor_db string database key of the vendor device_db string database key of the model nick string nick name lang string preferred language version
- Return value:
-
a list of all files with the specified nick name
Get file name of the PPD files for specified model with the specified nick name
- Parameters:
-
vendor_db string database key of the vendor device_db string database key of the model nick string nick name lang string preferred language of the PPD file
- Return value:
-
file with the specified nick name
Get the options of the PPD file
- Parameters:
-
filename string file name of the PPD file checkLocale
- Return value:
-
a list of all options of the PPD file (in UTF-8)
Get proposed default queue when using foomatic db
- Parameters:
-
queues list of queues
- Return value:
-
proposed default queue name
Check whether foomatic database has been loaded, and if not, then load it
List all PPD files
- Return value:
-
a list of sorted PPD files (maps containing vendor_db, model_db, nick name and file name
Sort PPD files for specified model according to preference list
- Parameters:
-
vendor_db string vendor database key device_db string model database key
- Return value:
-
a list of sorted PPD nicknames
Get the PPD file for automatic installation
- Parameters:
-
vendor_db string vendor database key device_db string model database key
- Return value:
-
name of the PPD file (filename), nil if no is usable
Get PPD file updated according to printer options and add it's name to printer description map
- Parameters:
-
entry map of printer
- Return value:
-
updated printer map
get configurations, which may be usable for detected printer
- Parameters:
-
vendor_db string name of printer vendor device_db string printer model name
- Return value:
-
of ppd files (filename -> description)
Process downloaded PPD files
- Parameters:
-
dir string directory with downloaded PPD files
- Return value:
-
true on success
Check if drivers for current spooler are installed
- Return value:
-
true if all available drivers are installed
Install drivers for current spooler, reread database
- Return value:
-
true on success
Get PPD file info
- Parameters:
-
file string filename to get info from
- Return value:
-
of informations