| 1 | /* |
| 2 | * File: PrinterController.h |
| 3 | * |
| 4 | * Author: Jacob Dekel |
| 5 | * Created on: May 10, 2014 |
| 6 | * |
| 7 | * Copyright (c) 2009-2014 Jacob Dekel |
| 8 | * $Id$ |
| 9 | * |
| 10 | * This object handles the printer queue |
| 11 | * |
| 12 | * This program is free software: you can redistribute it and/or modify |
| 13 | * it under the terms of the GNU General Public License as published by |
| 14 | * the Free Software Foundation, either version 3 of the License, or |
| 15 | * (at your option) any later version. |
| 16 | * |
| 17 | * This program is distributed in the hope that it will be useful, |
| 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 20 | * GNU General Public License for more details. |
| 21 | * |
| 22 | * You should have received a copy of the GNU General Public License |
| 23 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 24 | * |
| 25 | */ |
| 26 | |
| 27 | #ifndef PRINTERCONTROLLER_H |
| 28 | #define PRINTERCONTROLLER_Hcxx . . $ `HercPrinter/PrinterController.h:28:9`! |
| 29 | |
| 30 | #include "SynchronizedQueue.h"cxx . . $ `<file>/HercStudio/SynchronizedQueue.h`/ |
| 31 | #include "HerculesStudio.h"cxx . . $ `<file>/HercStudio/HerculesStudio.h`/ |
| 32 | |
| 33 | #include <QObject> |
| 34 | |
| 35 | mk_shared_ptrcxx . . $ QSharedPointer#(PdfPrinter) |
| 36 | mk_shared_ptrcxx . . $ `HercStudio/HerculesStudio.h:54:9`!(PrintRunner) |
| 37 | mk_shared_constptrcxx . . $ PrinterItemConstPtr#(PrinterItem) |
| 38 | |
| 39 | class PrinterControllercxx . . $ PrinterController# : public QObjectcxx . . $ QObject# |
| 40 | { |
| 41 | Q_OBJECTcxx . . $ QString#QString(e1217c004a86c950). |
| 42 | public: |
| 43 | PrinterControllercxx . . $ PrinterController#PrinterController(d8b84d04890d5595).(PrinterItemConstPtrcxx . . $ PrinterItemConstPtr# printerItem, PdfPrinterPtrcxx . . $ PdfPrinterPtr# printer); |
| 44 | ~cxx . . $ PrinterController#`~PrinterController`(49f6e7a06ebc5aa8).PrinterControllercxx . . $ PrinterController#(); |
| 45 | |
| 46 | void execcxx . . $ PrinterController#exec(49f6e7a06ebc5aa8).(); |
| 47 | void stopcxx . . $ PrinterController#stop(49f6e7a06ebc5aa8).(); |
| 48 | |
| 49 | private: |
| 50 | PrinterItemConstPtrcxx . . $ PrinterItemConstPtr# mPrinterItemcxx . . $ PrinterController#mPrinterItem.; |
| 51 | PdfPrinterPtrcxx . . $ PdfPrinterPtr# mPrintercxx . . $ PrinterController#mPrinter.; |
| 52 | PrintRunnerPtrcxx . . $ PrintRunnerPtr# mRunnercxx . . $ PrinterController#mRunner.; |
| 53 | SynchronizedQueuecxx . . $ SynchronizedQueue# mQueuecxx . . $ PrinterController#mQueue.; |
| 54 | |
| 55 | private slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!: |
| 56 | void lineReceivedcxx . . $ PrinterController#lineReceived(49f6e7a06ebc5aa8).(); |
| 57 | |
| 58 | signalscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:89:14`!: |
| 59 | void connectedcxx . . $ PrinterController#connected(49f6e7a06ebc5aa8).(); |
| 60 | void disconnectedcxx . . $ PrinterController#disconnected(49f6e7a06ebc5aa8).(); |
| 61 | void waitingcxx . . $ PrinterController#waiting(49f6e7a06ebc5aa8).(); |
| 62 | void stoppedWaitingcxx . . $ PrinterController#stoppedWaiting(49f6e7a06ebc5aa8).(); |
| 63 | }; |
| 64 | |
| 65 | #endif // PRINTERCONTROLLER_H |