YaST2 Developers Documentation: Printer configurator



functions
files
intro

Printer configurator

misc.ycp
Miscelaneous defines.
Miscelaneous defines.

Imports

  • Popup
  • Printerdb
  • Printerlib
  • Report

Global Functions

global getRemoteEntry (string uri) -> string

Create string with the definition of samba print command

Parameters:
uri Uri of the printer
Return value:
string with definition

global writeConf (string fn, map conf) -> void

Write conf file onto disk.

Parameters:
fn filename
conf file contents

global createUppFile (map entry) -> boolean

Write the .upp file and the configuration.

Parameters:
entry Entry for printer to save.
Return value:
true if successful

global callLprsetup (string command) -> boolean

Call lprsetup

Parameters:
command command to call
Return value:
true if successful

global createEntry (map entry) -> boolean

Add a yast2 printer to the printcap

Parameters:
entry Entry for printer to save.
Return value:
true if successful

global writeLpdPrinter (map entry) -> boolean

Write one printer. Only for LPRng

Parameters:
entry printer to write.
Return value:
success?

YaST2 Developers Documentation