| 1 | // For license of this file, see <project-root-folder>/LICENSE.md.cxx . . $ `<file>/src/librssguard/gui/dialogs/formupdate.h`/ |
| 2 | |
| 3 | #ifndef FORMUPDATE_H |
| 4 | #define FORMUPDATE_Hcxx . . $ `src/librssguard/gui/dialogs/formupdate.h:4:9`! |
| 5 | |
| 6 | #include "miscellaneous/systemfactory.h"cxx . . $ `<file>/src/librssguard/miscellaneous/systemfactory.h`/ |
| 7 | #include "network-web/downloader.h"cxx . . $ `<file>/src/librssguard/network-web/downloader.h`/ |
| 8 | |
| 9 | #include "ui_formupdate.h"cxx . . $ `<file>/build/src/librssguard/ui_formupdate.h`/ |
| 10 | |
| 11 | #include <QDialog> |
| 12 | #include <QNetworkReply> |
| 13 | #include <QPushButton> |
| 14 | |
| 15 | class RSSGUARD_DLLSPECcxx . . $ `<built-in>:525:9`! FormUpdatecxx . . $ FormUpdate# : public QDialogcxx . . $ QDialog# { |
| 16 | Q_OBJECTcxx . . $ FormUpdate#QPrivateSignal# |
| 17 | |
| 18 | public: |
| 19 | // Constructors and destructors. |
| 20 | explicit FormUpdatecxx . . $ FormUpdate#FormUpdate(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget#* parent); |
| 21 | |
| 22 | // Returns true if application can self-update |
| 23 | // on current platform. |
| 24 | bool isSelfUpdateSupportedcxx . . $ FormUpdate#isSelfUpdateSupported(50ce9a9e25b4a850).() const; |
| 25 | |
| 26 | private slotscxx . . $ `<external>/4830994369567095248/qtmetamacros.h:42:14`!: |
| 27 | |
| 28 | // Check for updates and interprets the results. |
| 29 | void checkForUpdatescxx . . $ FormUpdate#checkForUpdates(49f6e7a06ebc5aa8).(); |
| 30 | void startUpdatecxx . . $ FormUpdate#startUpdate(49f6e7a06ebc5aa8).(); |
| 31 | |
| 32 | void updateProgresscxx . . $ FormUpdate#updateProgress(8be204668a5c1685).(qint64cxx . . $ qint64# bytes_received, qint64cxx . . $ qint64# bytes_total); |
| 33 | void updateCompletedcxx . . $ FormUpdate#updateCompleted(377b816ef29857eb).(const QUrlcxx . . $ QUrl#& url, |
| 34 | QNetworkReplycxx . . $ QNetworkReply#::NetworkErrorcxx . . $ QNetworkReply#NetworkError# status, |
| 35 | int http_code, |
| 36 | const QByteArraycxx . . $ QByteArray#& contents); |
| 37 | void saveUpdateFilecxx . . $ FormUpdate#saveUpdateFile(45672f3c6961a244).(const QByteArraycxx . . $ QByteArray#& file_contents); |
| 38 | |
| 39 | private: |
| 40 | void loadAvailableFilescxx . . $ FormUpdate#loadAvailableFiles(49f6e7a06ebc5aa8).(); |
| 41 | |
| 42 | Uicxx . . $ Ui/::FormUpdatecxx . . $ Ui/FormUpdate# m_uicxx . . $ FormUpdate#m_ui.; |
| 43 | QPushButtoncxx . . $ QPushButton#* m_btnUpdatecxx . . $ FormUpdate#m_btnUpdate.; |
| 44 | Downloadercxx . . $ Downloader# m_downloadercxx . . $ FormUpdate#m_downloader.; |
| 45 | QStringcxx . . $ QString# m_updateFilePathcxx . . $ FormUpdate#m_updateFilePath.; |
| 46 | UpdateInfocxx . . $ UpdateInfo# m_updateInfocxx . . $ FormUpdate#m_updateInfo.; |
| 47 | bool m_readyToInstallcxx . . $ FormUpdate#m_readyToInstall. = false; |
| 48 | qint64cxx . . $ qint64# m_lastDownloadedBytescxx . . $ FormUpdate#m_lastDownloadedBytes. = 0; |
| 49 | }; |
| 50 | |
| 51 | #endif // FORMUPDATE_H |