~ubuntu-branches/ubuntu/gutsy/kde4libs/gutsy

« back to all changes in this revision

Viewing changes to kdeprint/lpd/kmlpdmanager.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2007-02-21 11:00:12 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070221110012-6kw8khr9knv6lmg1
Tags: 3.80.3-0ubuntu1
New upstream unstable release

Show diffs side-by-side

added added

removed removed

Lines of Context:
222
222
{
223
223
        KPipeProcess    proc;
224
224
        QString         cmd = programName(0);
225
 
        cmd += " ";
 
225
        cmd += ' ';
226
226
        cmd += state ? "up" : "down";
227
 
        cmd += " ";
 
227
        cmd += ' ';
228
228
        cmd += KProcess::quote(printer->printerName());
229
229
        if (proc.open(cmd))
230
230
        {
495
495
        QString fname = QFileInfo(templatefile).fileName();
496
496
        fname.replace(QRegExp("\\.in$"),QLatin1String(""));
497
497
        QFile   fin(templatefile);
498
 
        QFile   fout(dirname + "/" + fname);
 
498
        QFile   fout(dirname + '/' + fname);
499
499
        if (fin.exists() && fin.open(QIODevice::ReadOnly) && fout.open(QIODevice::WriteOnly))
500
500
        {
501
501
                QTextStream     tin(&fin), tout(&fout);
554
554
                // write various driver files using templates
555
555
                QByteArray cmd = "cp ";
556
556
                cmd += QFile::encodeName(KProcess::quote(driverDirectory()+"/master-filter"));
557
 
                cmd += " ";
 
557
                cmd += ' ';
558
558
                cmd += QFile::encodeName(KProcess::quote(spooldir + "/filter"));
559
559
                if (system(cmd.data()) == 0 &&
560
560
                    savePrinttoolCfgFile(driverDirectory()+"/general.cfg.in",spooldir,options) &&