| 1 | /***************************************************************************** |
| 2 | ** QNapi |
| 3 | ** Copyright (C) 2008-2017 Piotr KrzemiĆski <[email protected]> |
| 4 | ** |
| 5 | ** This program is free software; you can redistribute it and/or modify |
| 6 | ** it under the terms of the GNU General Public License as published by |
| 7 | ** the Free Software Foundation; either version 2 of the License, or |
| 8 | ** (at your option) any later version. |
| 9 | ** |
| 10 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
| 11 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
| 12 | ** |
| 13 | *****************************************************************************/ |
| 14 | |
| 15 | #ifndef __QNAPIAPP__H__ |
| 16 | #define __QNAPIAPP__H__cxx . . $ `gui/src/qnapiapp.h:16:9`! |
| 17 | |
| 18 | #include "engines/subtitledownloadenginesregistry.h"cxx . . $ `<file>/libqnapi/src/engines/subtitledownloadenginesregistry.h`/ |
| 19 | |
| 20 | #include "qnapiopendialog.h"cxx . . $ `<file>/gui/src/qnapiopendialog.h`/ |
| 21 | |
| 22 | #include "forms/frmabout.h"cxx . . $ `<file>/gui/src/forms/frmabout.h`/ |
| 23 | #include "forms/frmconvert.h"cxx . . $ `<file>/gui/src/forms/frmconvert.h`/ |
| 24 | #include "forms/frmoptions.h"cxx . . $ `<file>/gui/src/forms/frmoptions.h`/ |
| 25 | #include "forms/frmprogress.h"cxx . . $ `<file>/gui/src/forms/frmprogress.h`/ |
| 26 | #include "forms/frmscan.h"cxx . . $ `<file>/gui/src/forms/frmscan.h`/ |
| 27 | #include "forms/frmsummary.h"cxx . . $ `<file>/gui/src/forms/frmsummary.h`/ |
| 28 | |
| 29 | #include "qcumber/qsingleapplication.h"cxx . . $ `<file>/gui/src/qcumber/qsingleapplication.h`/ |
| 30 | |
| 31 | #include <QAction> |
| 32 | #include <QApplication> |
| 33 | #include <QDateTime> |
| 34 | #include <QDesktopServices> |
| 35 | #include <QEvent> |
| 36 | #include <QFileOpenEvent> |
| 37 | #include <QMenu> |
| 38 | #include <QSharedPointer> |
| 39 | #include <QString> |
| 40 | #include <QSystemTrayIcon> |
| 41 | |
| 42 | class QNapiAppcxx . . $ QNapiApp# : public QSingleApplicationcxx . . $ QSingleApplication# { |
| 43 | Q_OBJECTcxx . . $ QNapiApp#trUtf8(75d9f1c324b4579d). |
| 44 | public: |
| 45 | QNapiAppcxx . . $ QNapiApp#QNapiApp(75dd2bf67067255f).(int &argc, char **argv, bool useGui, const QStringcxx . . $ QString# &appName); |
| 46 | ~cxx . . $ QNapiApp#`~QNapiApp`(49f6e7a06ebc5aa8).QNapiAppcxx . . $ QNapiApp#(); |
| 47 | |
| 48 | void createTrayIconcxx . . $ QNapiApp#createTrayIcon(49f6e7a06ebc5aa8).(); |
| 49 | void showTrayMessagecxx . . $ QNapiApp#showTrayMessage(3458fe3960d5051).(QStringcxx . . $ QString# title, QStringcxx . . $ QString# msg); |
| 50 | |
| 51 | frmProgresscxx . . $ frmProgress# *progresscxx . . $ QNapiApp#progress(cdabfe46e21630f8).(); |
| 52 | |
| 53 | public slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!: |
| 54 | |
| 55 | bool showOpenDialogcxx . . $ QNapiApp#showOpenDialog(7dc6c9a0b6a7270f).(QStringcxx . . $ QString# engine = ""cxx . . $ QString#QString(e1217c004a86c950).); |
| 56 | bool showScanDialogcxx . . $ QNapiApp#showScanDialog(7dc6c9a0b6a7270f).(QStringcxx . . $ QString# init_dir = ""cxx . . $ QString#QString(85c52e162fed56f9).); |
| 57 | void showConvertDialogcxx . . $ QNapiApp#showConvertDialog(49f6e7a06ebc5aa8).(); |
| 58 | void showCreateAccountcxx . . $ QNapiApp#showCreateAccount(7fba01612ab56717).(const QStringcxx . . $ QString# &engineName) const; |
| 59 | void showOSUploadDialogcxx . . $ QNapiApp#showOSUploadDialog(83f5f38750778ac8).() const; |
| 60 | void showSettingscxx . . $ QNapiApp#showSettings(49f6e7a06ebc5aa8).(); |
| 61 | void showAboutcxx . . $ QNapiApp#showAbout(49f6e7a06ebc5aa8).(); |
| 62 | void tryQuitcxx . . $ QNapiApp#tryQuit(49f6e7a06ebc5aa8).(); |
| 63 | |
| 64 | signalscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:89:14`!: |
| 65 | void downloadFilecxx . . $ QNapiApp#downloadFile(3520e46b33348bf6).(const QStringcxx . . $ QString# &fileName); |
| 66 | |
| 67 | private: |
| 68 | bool eventcxx . . $ QNapiApp#event(f123fa2ce489f0bd).(QEventcxx . . $ QEvent# *ev); |
| 69 | |
| 70 | QSystemTrayIconcxx . . $ QSystemTrayIcon# *trayIconcxx . . $ QNapiApp#trayIcon.; |
| 71 | QMenucxx . . $ QMenu# *trayIconMenucxx . . $ QNapiApp#trayIconMenu., *napiSubMenucxx . . $ QNapiApp#napiSubMenu., *osSubMenucxx . . $ QNapiApp#osSubMenu., *napisy24SubMenucxx . . $ QNapiApp#napisy24SubMenu.; |
| 72 | QActioncxx . . $ QAction# *getActioncxx . . $ QNapiApp#getAction., *scanActioncxx . . $ QNapiApp#scanAction., *convertActioncxx . . $ QNapiApp#convertAction., *napiGetActioncxx . . $ QNapiApp#napiGetAction., |
| 73 | *napiCreateUserActioncxx . . $ QNapiApp#napiCreateUserAction., *osGetActioncxx . . $ QNapiApp#osGetAction., *osAddActioncxx . . $ QNapiApp#osAddAction., *osCreateUserActioncxx . . $ QNapiApp#osCreateUserAction., |
| 74 | *napisy24GetActioncxx . . $ QNapiApp#napisy24GetAction., *napisy24CreateUserActioncxx . . $ QNapiApp#napisy24CreateUserAction., *settingsActioncxx . . $ QNapiApp#settingsAction., |
| 75 | *aboutActioncxx . . $ QNapiApp#aboutAction., *quitActioncxx . . $ QNapiApp#quitAction.; |
| 76 | |
| 77 | QNapiOpenDialogcxx . . $ QNapiOpenDialog# *openDialogcxx . . $ QNapiApp#openDialog.; |
| 78 | |
| 79 | frmProgresscxx . . $ frmProgress# *f_progresscxx . . $ QNapiApp#f_progress.; |
| 80 | frmOptionscxx . . $ frmOptions# *f_optionscxx . . $ QNapiApp#f_options.; |
| 81 | frmAboutcxx . . $ frmAbout# *f_aboutcxx . . $ QNapiApp#f_about.; |
| 82 | frmScancxx . . $ frmScan# *f_scancxx . . $ QNapiApp#f_scan.; |
| 83 | frmConvertcxx . . $ frmConvert# *f_convertcxx . . $ QNapiApp#f_convert.; |
| 84 | |
| 85 | QDateTimecxx . . $ QDateTime# creationDTcxx . . $ QNapiApp#creationDT.; |
| 86 | |
| 87 | QSharedPointercxx . . $ QSharedPointer#<const SubtitleDownloadEnginesRegistrycxx . . $ SubtitleDownloadEnginesRegistry#> enginesRegistrycxx . . $ QNapiApp#enginesRegistry.; |
| 88 | |
| 89 | private slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!: |
| 90 | |
| 91 | void trayIconActivatedcxx . . $ QNapiApp#trayIconActivated(dc7279b31293a212).(QSystemTrayIconcxx . . $ QSystemTrayIcon#::ActivationReasoncxx . . $ QSystemTrayIcon#ActivationReason# reason); |
| 92 | }; |
| 93 | |
| 94 | #endif |