23 #ifndef __WADSEEKERINTERFACE_H_
24 #define __WADSEEKERINTERFACE_H_
28 #include "wadseeker/wadseeker.h"
30 #include <QStringList>
49 static bool isInstantiated();
61 void setCustomSites(
const QStringList &sites)
63 this->customSites = sites;
74 void setWads(
const QList<PWad> &wads);
76 Wadseeker &wadseekerRef()
90 static const int UPDATE_INTERVAL_MS;
97 QString colorHtmlMessageFatalError;
98 QString colorHtmlMessageError;
99 QString colorHtmlMessageNotice;
101 QStringList customSites;
106 QList<PWad> seekedWads;
114 QList<PWad> successfulWads;
122 void connectWadseekerObject();
124 void displayMessage(
const QString &message, WadseekerLib::MessageType type,
bool bPrependErrorsWithMessageType);
125 void initMessageColors();
130 void resetTitleToDefault();
132 void setStateDownloading();
133 void setStateWaiting();
134 void setupAutomatic();
136 void showEvent(QShowEvent *event)
override;
137 void startSeeking(
const QList<PWad> &seekedFilesList);
138 void updateProgressBar();
145 QList<PWad> unsuccessfulWads()
const;
148 void abortService(
const QString &service);
149 void abortSite(
const QUrl &url);
150 void accept()
override;
151 void allDone(
bool bSuccess);
152 void fileDownloadSuccessful(
const ModFile &filename);
153 void reject()
override;
154 void message(
const QString &message, WadseekerLib::MessageType type);
155 void registerUpdateRequest();
156 void seekStarted(
const ModSet &filenames);
157 void serviceStarted(
const QString &service);
158 void serviceFinished(
const QString &service);
159 void siteFinished(
const QUrl &site);
160 void siteProgress(
const QUrl &site, qint64 bytes, qint64 total);
161 void siteRedirect(
const QUrl &oldUrl,
const QUrl &newUrl);
162 void siteStarted(
const QUrl &site);
163 void wadsTableRightClicked(
const QModelIndex &index,
const QPoint &cursorPosition);