| 1 | /* |
| 2 | * File: PrinterDialog.h |
| 3 | * |
| 4 | * Author: Jacob Dekel |
| 5 | * Created on: May 10, 2014 |
| 6 | * |
| 7 | * Copyright (c) 2009-2013 Jacob Dekel |
| 8 | * $Id$ |
| 9 | * |
| 10 | * This object handles the Hercules Studio printer dialog |
| 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 | #ifndef PRINTERDIALOG_H |
| 27 | #define PRINTERDIALOG_Hcxx . . $ `HercPrinter/PrinterDialog.h:27:9`! |
| 28 | |
| 29 | #include "IpValidator.h"cxx . . $ `<file>/HercStudio/IpValidator.h`/ |
| 30 | #include "HerculesStudio.h"cxx . . $ `<file>/HercStudio/HerculesStudio.h`/ |
| 31 | |
| 32 | #include <QDialog> |
| 33 | #include <QSystemTrayIcon> |
| 34 | |
| 35 | class mMoviecxx . . $ mMovie#; |
| 36 | class QSystemTrayIconcxx . . $ QSystemTrayIcon#; |
| 37 | |
| 38 | namespace Uicxx . . $ Ui/ { |
| 39 | class PrinterDialogcxx . . $ Ui/PrinterDialog#; |
| 40 | } |
| 41 | |
| 42 | mk_shared_ptrcxx . . $ `HercStudio/HerculesStudio.h:54:9`!(PrinterController) |
| 43 | mk_shared_ptrcxx . . $ PdfPrinterPtr#(PdfPrinter) |
| 44 | mk_shared_ptrcxx . . $ `HercStudio/HerculesStudio.h:54:9`!(PrinterItem) |
| 45 | |
| 46 | |
| 47 | class PrinterDialogcxx . . $ PrinterDialog# : public IpValidatorcxx . . $ IpValidator# |
| 48 | { |
| 49 | Q_OBJECTcxx . . $ PrinterDialog#staticMetaObject. |
| 50 | |
| 51 | public: |
| 52 | explicit PrinterDialogcxx . . $ PrinterDialog#PrinterDialog(d71cd35ae558283).(QWidgetcxx . . $ QWidget# *parent = 0, const QStringcxx . . $ QString#& item=QStringcxx . . $ QString#QString(49f6e7a06ebc5aa8).()); |
| 53 | ~cxx . . $ PrinterDialog#`~PrinterDialog`(49f6e7a06ebc5aa8).PrinterDialogcxx . . $ PrinterDialog#(); |
| 54 | |
| 55 | void stopcxx . . $ PrinterDialog#stop(49f6e7a06ebc5aa8).(); |
| 56 | bool isConnectedcxx . . $ PrinterDialog#isConnected(c9857a73d68e59ba).(); |
| 57 | |
| 58 | private: |
| 59 | void populatecxx . . $ PrinterDialog#populate(7df51288a9ebd664).(QStringcxx . . $ QString# printerName); |
| 60 | bool savecxx . . $ PrinterDialog#save(efaadfb7dc14930a).(bool quiet); |
| 61 | void closeEventcxx . . $ PrinterDialog#closeEvent(642e80679aeb34f8).(QCloseEventcxx . . $ QCloseEvent# * event); |
| 62 | void systrayHintcxx . . $ PrinterDialog#systrayHint(49f6e7a06ebc5aa8).(); |
| 63 | void setProtectedcxx . . $ PrinterDialog#setProtected(b45ddcbc8423892c).(bool protect); |
| 64 | bool testDirectorycxx . . $ PrinterDialog#testDirectory(7dc6c9a0b6a7270f).(QStringcxx . . $ QString# dirName); |
| 65 | |
| 66 | Uicxx . . $ Ui/::PrinterDialogcxx . . $ Ui/PrinterDialog# *uicxx . . $ PrinterDialog#ui.; |
| 67 | QSystemTrayIconcxx . . $ QSystemTrayIcon# * mSystemTrayIconcxx . . $ PrinterDialog#mSystemTrayIcon.; |
| 68 | PrinterItemPtrcxx . . $ PrinterItemPtr# mPrinterItemcxx . . $ PrinterDialog#mPrinterItem.; |
| 69 | PrinterControllerPtrcxx . . $ PrinterControllerPtr# mControllercxx . . $ PrinterDialog#mController.; |
| 70 | PdfPrinterPtrcxx . . $ PdfPrinterPtr# mPrintercxx . . $ PrinterDialog#mPrinter.; |
| 71 | bool mListeningcxx . . $ PrinterDialog#mListening.; |
| 72 | bool mSystrayHintEjectedcxx . . $ PrinterDialog#mSystrayHintEjected.; |
| 73 | QSharedPointercxx . . $ QSharedPointer#<QMoviecxx . . $ QMovie#> mMoviecxx . . $ PrinterDialog#mMovie.; |
| 74 | |
| 75 | |
| 76 | private slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!: |
| 77 | void dirClickedcxx . . $ PrinterDialog#dirClicked(49f6e7a06ebc5aa8).(); |
| 78 | void deleteClickedcxx . . $ PrinterDialog#deleteClicked(49f6e7a06ebc5aa8).(); |
| 79 | void adjustPrintercxx . . $ PrinterDialog#adjustPrinter(7df51288a9ebd664).(QStringcxx . . $ QString# name); |
| 80 | void printerNameChangedcxx . . $ PrinterDialog#printerNameChanged(7df51288a9ebd664).(QStringcxx . . $ QString# name); |
| 81 | void cancelClickedcxx . . $ PrinterDialog#cancelClicked(49f6e7a06ebc5aa8).(); |
| 82 | void connectClickedcxx . . $ PrinterDialog#connectClicked(49f6e7a06ebc5aa8).(); |
| 83 | void connectedcxx . . $ PrinterDialog#connected(49f6e7a06ebc5aa8).(); |
| 84 | void waitingcxx . . $ PrinterDialog#waiting(49f6e7a06ebc5aa8).(); |
| 85 | void stoppedWaitingcxx . . $ PrinterDialog#stoppedWaiting(49f6e7a06ebc5aa8).(); |
| 86 | void hideRestorecxx . . $ PrinterDialog#hideRestore(49f6e7a06ebc5aa8).(); |
| 87 | void systrayClickcxx . . $ PrinterDialog#systrayClick(dc7279b31293a212).(QSystemTrayIconcxx . . $ QSystemTrayIcon#::ActivationReasoncxx . . $ QSystemTrayIcon#ActivationReason#); |
| 88 | }; |
| 89 | |
| 90 | #endif // PRINTERDIALOG_H |