/*
* Copyright (C) 2016 Canonical Ltd
*
* This file is part of qtubuntu-print.
*
* qtubuntu-print is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; version 3.
*
* qtubuntu-print is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with qtubuntu-print. If not, see .
*
* Authored-by: Andrew Hayzen
*/
#ifndef QUBUNTUPRINTENGINE_H
#define QUBUNTUPRINTENGINE_H
#include
QT_BEGIN_NAMESPACE
#define PRINTING_APP_ID "ubuntu-printing-app"
class QUbuntuPrintEnginePrivate;
class QUbuntuPrintEngine : public QPdfPrintEngine
{
Q_DECLARE_PRIVATE(QUbuntuPrintEngine)
public:
QUbuntuPrintEngine(QPrinter::PrinterMode m);
virtual ~QUbuntuPrintEngine();
};
class QUbuntuPrintEnginePrivate : public QPdfPrintEnginePrivate
{
Q_DECLARE_PUBLIC(QUbuntuPrintEngine)
public:
QUbuntuPrintEnginePrivate(QPrinter::PrinterMode m);
~QUbuntuPrintEnginePrivate();
bool openPrintDevice() Q_DECL_OVERRIDE;
void closePrintDevice() Q_DECL_OVERRIDE;
private:
bool m_output_filename_auto;
};
QT_END_NAMESPACE
#endif // QUBUNTUPRINTENGINE_H