KDEPrint code cleanup

Michael Goffioul goffioul at imec.be
Fri Aug 1 11:11:24 BST 2003


> Because one shall be able to use KBarcode in batch printing mode. One can do 
> "kbarcode -b datafile.cvs -l label.kbarcode -d MyPrinter" to print lot's of 
> labels in batchmode on the printer MyPrinter. So the printer can be selected 
> without opening a dialog. I have seen no other way to do this.

KPrinter::autoConfigure is what you're looking for, and it's indeed
*very* similar to part of your code in printersettings.cpp, which
should look like:

if (immediately)
{
    if (!printer->setup(parent))
       return 0;
}
else if (!prn.isEmpty())
    printer->autoConfigure(prn);

> The KBarcode source code could of course be fixed with some #ifdef's so that 
> compiling will work even against every KDE versions, but old binaries would 
> be broken.

Indeed, too bad :-( I'll keep my changes then...

Michaƫl.

-- 
------------------------------------------------------------------
Michael Goffioul		IMEC-DESICS-MIRA
e-mail: goffioul at imec.be	(Mixed-Signal and RF Applications)
Tel:    +32/16/28-8510		Kapeldreef, 75
Fax:    +32/16/28-1515		3001 HEVERLEE, BELGIUM
------------------------------------------------------------------
This e-mail and/or its attachments may contain confidential
information.  It is intended solely for the intended addressee(s).
Any use of the information contained herein by other persons is
prohibited.  IMEC vzw does not accept any liability for the contents
of this e-mail and/or its attachments.
------------------------------------------------------------------





More information about the kde-core-devel mailing list