Defines for handling PPD files and database of PPD files
List of Global Functions
AreDriversInstalled - Check if drivers for current spooler are installed
GetDriverPackages - Get list of packages containing drivers for the current spooler
GetDriversAreInstalled - Get the info if packages with drivers were installed
GetSupportedFilters - Get the list of supported filters
InstallDrivers - Install drivers for current spooler, reread database
ListAllPpds - List all PPD files
PpdInfo - Get PPD file info
SetDriverPackages - Set list of packages containing drivers for the current spooler
SetDriversAreInstalled - Set the info if packages with drivers were installed
SetSupportedFilters - Set the list of supported filters
getAutoPpdFile - Get the PPD file for automatic installation
getFileFromNickName - Get file name of the PPD files for specified model with the specified nick name
getFilesFromNickName - Get file names of all PPD files for specified model with the specified nick name
getFoomaticDefaultQueue - Get proposed default queue when using foomatic db
getPpdFileOptions - Get the options of the PPD file
getPpdFiles - get configurations, which may be usable for detected printer
getUpdatedPpdFile - Get PPD file updated according to printer options and add it's name to printer description map
loadFoomaticIfNeeded - Check whether foomatic database has been loaded, and if not, then load it
processPpdFiles - Process downloaded PPD files
sortPpds - Sort PPD files for specified model according to preference list
List of Global Variables
foomatic - map of foomatic printers database
Check if drivers for current spooler are installed
Return value
boolean - true if all available drivers are installed
Get list of packages containing drivers for the current spooler
Return value
list<string> - a list of package names
Get the info if packages with drivers were installed
Return value
boolean - saying if the driver packages have been installed
Get the list of supported filters
Return value
list<string> - a list of known filters or nil if all filters are known
Install drivers for current spooler, reread database
Return value
boolean - true on success
List all PPD files
Return value
list<map<string,string> > - a list of sorted PPD files (maps containing vendor_db, model_db, nick name and file name
Set list of packages containing drivers for the current spooler
Function parameters
list<string> packages
Return value
void
Set the info if packages with drivers were installed
Function parameters
boolean installed
Return value
void
Set the list of supported filters
Function parameters
list<string> filters
Return value
void
Get the PPD file for automatic installation
Function parameters
string vendor_db
string device_db
Return value
string - name of the PPD file (filename), nil if no is usable
Get file name of the PPD files for specified model with the specified nick name
Function parameters
string vendor_db
string device_db
string nick
string lang
Return value
string - file with the specified nick name
Get file names of all PPD files for specified model with the specified nick name
Function parameters
string vendor_db
string device_db
string nick
string lang
Return value
list<string> - a list of all files with the specified nick name
Get proposed default queue when using foomatic db
Function parameters
list<map> queues
Return value
string - proposed default queue name
Get the options of the PPD file
Function parameters
string filename
boolean checkLocale
Return value
list<map> - a list of all options of the PPD file (in UTF-8)
get configurations, which may be usable for detected printer
Function parameters
string vendor_db
string device_db
Return value
map - of ppd files (filename -> description)
Get PPD file updated according to printer options and add it's name to printer description map
Function parameters
map<string,any> entry
Return value
map<string,any> - updated printer map
Check whether foomatic database has been loaded, and if not, then load it
Return value
void
Process downloaded PPD files
Function parameters
string dir
Return value
boolean - true on success