mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-24 10:52:53 +00:00
okular: remove unused and private FilePrinter methods
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
3d42270953
commit
91b28e4e96
2 changed files with 0 additions and 24 deletions
|
@ -20,7 +20,6 @@
|
||||||
#include <QtCore/QFileInfo>
|
#include <QtCore/QFileInfo>
|
||||||
#include <QtGui/QLabel>
|
#include <QtGui/QLabel>
|
||||||
#include <QtGui/qevent.h>
|
#include <QtGui/qevent.h>
|
||||||
#include <QtNetwork/QTcpSocket>
|
|
||||||
|
|
||||||
#include <KProcess>
|
#include <KProcess>
|
||||||
#include <KShell>
|
#include <KShell>
|
||||||
|
@ -246,25 +245,6 @@ bool FilePrinter::cupsAvailable()
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
bool FilePrinter::detectCupsService()
|
|
||||||
{
|
|
||||||
QTcpSocket qsock;
|
|
||||||
qsock.connectToHost("localhost", 631);
|
|
||||||
bool rtn = qsock.waitForConnected() && qsock.isValid();
|
|
||||||
qsock.abort();
|
|
||||||
return rtn;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool FilePrinter::detectCupsConfig()
|
|
||||||
{
|
|
||||||
if ( QFile::exists("/etc/cups/cupsd.conf") ) return true;
|
|
||||||
if ( QFile::exists("/usr/etc/cups/cupsd.conf") ) return true;
|
|
||||||
if ( QFile::exists("/usr/local/etc/cups/cupsd.conf") ) return true;
|
|
||||||
if ( QFile::exists("/opt/etc/cups/cupsd.conf") ) return true;
|
|
||||||
if ( QFile::exists("/opt/local/etc/cups/cupsd.conf") ) return true;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
QSize FilePrinter::psPaperSize( QPrinter &printer )
|
QSize FilePrinter::psPaperSize( QPrinter &printer )
|
||||||
{
|
{
|
||||||
QSize size;
|
QSize size;
|
||||||
|
|
|
@ -148,10 +148,6 @@ public:
|
||||||
static Generator::PrintError printError( int c );
|
static Generator::PrintError printError( int c );
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
bool detectCupsService();
|
|
||||||
bool detectCupsConfig();
|
|
||||||
|
|
||||||
int doPrintFiles( QPrinter &printer, const QStringList fileList,
|
int doPrintFiles( QPrinter &printer, const QStringList fileList,
|
||||||
FileDeletePolicy fileDeletePolicy, PageSelectPolicy pageSelectPolicy,
|
FileDeletePolicy fileDeletePolicy, PageSelectPolicy pageSelectPolicy,
|
||||||
const QString &pageRange,
|
const QString &pageRange,
|
||||||
|
|
Loading…
Add table
Reference in a new issue