#include <fvupdater.h>
Public Slots | |
bool | CheckForUpdates (bool silentAsMuchAsItCouldGet=true) |
bool | CheckForUpdatesSilent () |
bool | CheckForUpdatesNotSilent () |
Signals | |
void | setProgress (int) |
Public Member Functions | |
void | SetFeedURL (const QUrl &feedURL) |
void | SetFeedURL (const QString &feedURL) |
QString | GetFeedURL () const |
bool | IsDropOnFinish () const |
void | SetDropOnFinish (bool value) |
Static Public Member Functions | |
static FvUpdater * | sharedUpdater () |
static void | drop () |
Private Slots | |
void | httpFeedDownloadFinished () |
void | networkError (QNetworkReply::NetworkError) |
void | getFileSize () |
Private Member Functions | |
FvUpdater () | |
virtual | ~FvUpdater () |
void | startDownloadFeed (const QUrl &url) |
void | startDownloadFile (QUrl url, QString name) |
void | fileDownloadFinished (QFile *downloadedFile, QString name) |
void | cancelDownloadFeed () |
void | showErrorDialog (const QString &message, bool showEvenInSilentMode=false) |
void | showInformationDialog (const QString &message, bool showEvenInSilentMode=false) |
bool | showConfirmationDialog (const QString &message, bool showEvenInSilentMode=false) |
bool | releaseIsNewer (const QString &releaseTag) |
void | getPLatformSpecificInstaller (QJsonArray assets) |
Private Attributes | |
bool | m_silentAsMuchAsItCouldGet |
QUrl | m_feedURL |
QNetworkAccessManager | m_qnam |
QPointer< QNetworkReply > | m_reply |
bool | m_httpRequestAborted |
bool | m_dropOnFinish |
int | m_fileSize {} |
QString | m_releaseName {} |
Static Private Attributes | |
static QPointer< FvUpdater > | m_Instance |
Friends | |
class | FvUpdateWindow |
Definition at line 48 of file fvupdater.h.
|
private |
Definition at line 82 of file fvupdater.cpp.
Referenced by sharedUpdater().
|
private |
Definition at line 305 of file fvupdater.cpp.
References m_httpRequestAborted, and m_reply.
Referenced by CheckForUpdates().
|
slot |
Definition at line 112 of file fvupdater.cpp.
References cancelDownloadFeed(), m_feedURL, m_httpRequestAborted, m_silentAsMuchAsItCouldGet, and startDownloadFeed().
Referenced by CheckForUpdatesNotSilent(), and CheckForUpdatesSilent().
|
slot |
Definition at line 172 of file fvupdater.cpp.
References CheckForUpdates(), drop(), and m_dropOnFinish.
|
slot |
Definition at line 155 of file fvupdater.cpp.
References CheckForUpdates(), drop(), m_dropOnFinish, and qApp.
|
static |
Definition at line 74 of file fvupdater.cpp.
References m_Instance.
Referenced by CheckForUpdatesNotSilent(), CheckForUpdatesSilent(), and httpFeedDownloadFinished().
|
private |
Definition at line 237 of file fvupdater.cpp.
References m_feedURL, m_fileSize, m_httpRequestAborted, m_reply, NoError, setProgress(), showErrorDialog(), showInformationDialog(), and startDownloadFile().
QString FvUpdater::GetFeedURL | ( | ) | const |
Definition at line 103 of file fvupdater.cpp.
References m_feedURL.
|
privateslot |
Definition at line 180 of file fvupdater.cpp.
References m_fileSize, and m_reply.
Referenced by startDownloadFile().
|
private |
Definition at line 357 of file fvupdater.cpp.
References startDownloadFile().
Referenced by httpFeedDownloadFinished().
|
privateslot |
Definition at line 313 of file fvupdater.cpp.
References drop(), getPLatformSpecificInstaller(), m_dropOnFinish, m_feedURL, m_httpRequestAborted, m_reply, NoError, releaseIsNewer(), showConfirmationDialog(), showErrorDialog(), showInformationDialog(), and startDownloadFeed().
bool FvUpdater::IsDropOnFinish | ( | ) | const |
Definition at line 106 of file fvupdater.cpp.
References m_dropOnFinish.
|
privateslot |
Definition at line 450 of file fvupdater.cpp.
References m_fileSize, m_reply, setProgress(), and showErrorDialog().
Referenced by startDownloadFile().
|
private |
Definition at line 440 of file fvupdater.cpp.
References m_releaseName.
Referenced by httpFeedDownloadFinished().
void FvUpdater::SetDropOnFinish | ( | bool | value | ) |
Definition at line 109 of file fvupdater.cpp.
References m_dropOnFinish.
void FvUpdater::SetFeedURL | ( | const QString & | feedURL | ) |
Definition at line 98 of file fvupdater.cpp.
References SetFeedURL().
void FvUpdater::SetFeedURL | ( | const QUrl & | feedURL | ) |
|
signal |
Referenced by fileDownloadFinished(), and networkError().
|
static |
Definition at line 62 of file fvupdater.cpp.
References FvUpdater(), and m_Instance.
|
private |
Definition at line 420 of file fvupdater.cpp.
References m_silentAsMuchAsItCouldGet.
Referenced by httpFeedDownloadFinished().
|
private |
Definition at line 387 of file fvupdater.cpp.
References m_silentAsMuchAsItCouldGet.
Referenced by fileDownloadFinished(), httpFeedDownloadFinished(), networkError(), and startDownloadFile().
|
private |
Definition at line 404 of file fvupdater.cpp.
References m_silentAsMuchAsItCouldGet.
Referenced by fileDownloadFinished(), and httpFeedDownloadFinished().
|
private |
Definition at line 278 of file fvupdater.cpp.
References m_qnam, and m_reply.
Referenced by CheckForUpdates(), and httpFeedDownloadFinished().
|
private |
Definition at line 187 of file fvupdater.cpp.
References getFileSize(), m_qnam, m_releaseName, m_reply, networkError(), and showErrorDialog().
Referenced by fileDownloadFinished(), and getPLatformSpecificInstaller().
|
privatevirtual |
Definition at line 90 of file fvupdater.cpp.
References m_reply.
|
friend |
Definition at line 74 of file fvupdater.h.
|
private |
Definition at line 107 of file fvupdater.h.
Referenced by CheckForUpdatesNotSilent(), CheckForUpdatesSilent(), httpFeedDownloadFinished(), IsDropOnFinish(), and SetDropOnFinish().
|
private |
Definition at line 103 of file fvupdater.h.
Referenced by CheckForUpdates(), fileDownloadFinished(), GetFeedURL(), httpFeedDownloadFinished(), and SetFeedURL().
|
private |
Definition at line 108 of file fvupdater.h.
Referenced by fileDownloadFinished(), getFileSize(), and networkError().
|
private |
Definition at line 106 of file fvupdater.h.
Referenced by cancelDownloadFeed(), CheckForUpdates(), fileDownloadFinished(), and httpFeedDownloadFinished().
|
staticprivate |
Definition at line 93 of file fvupdater.h.
Referenced by drop(), and sharedUpdater().
|
private |
Definition at line 104 of file fvupdater.h.
Referenced by startDownloadFeed(), and startDownloadFile().
|
private |
Definition at line 109 of file fvupdater.h.
Referenced by releaseIsNewer(), and startDownloadFile().
|
private |
Definition at line 105 of file fvupdater.h.
Referenced by cancelDownloadFeed(), fileDownloadFinished(), getFileSize(), httpFeedDownloadFinished(), networkError(), startDownloadFeed(), startDownloadFile(), and ~FvUpdater().
|
private |
Definition at line 98 of file fvupdater.h.
Referenced by CheckForUpdates(), showConfirmationDialog(), showErrorDialog(), and showInformationDialog().