23 #ifndef __WADSEEKERINTERFACE_H_ 24 #define __WADSEEKERINTERFACE_H_ 27 #include "wadseeker/wadseeker.h" 30 #include <QStringList> 46 static bool isInstantiated();
53 bool isAutomatic() {
return bAutomatic; }
55 void setCustomSite(
const QString& site)
57 this->customSite = site;
68 void setWads(
const QStringList& wads);
70 Wadseeker& wadseekerRef() {
return wadseeker; }
81 static const int UPDATE_INTERVAL_MS;
88 QString colorHtmlMessageFatalError;
89 QString colorHtmlMessageError;
90 QString colorHtmlMessageNotice;
97 QStringList seekedWads;
105 QStringList successfulWads;
113 void connectWadseekerObject();
115 void displayMessage(
const QString& message, WadseekerLib::MessageType type,
bool bPrependErrorsWithMessageType);
116 void initMessageColors();
121 void resetTitleToDefault();
123 void setStateDownloading();
124 void setStateWaiting();
125 void setupAutomatic();
127 void showEvent(QShowEvent* event);
128 void startSeeking(
const QStringList& seekedFilesList);
129 void updateProgressBar();
136 QStringList unsuccessfulWads()
const;
139 void abortService(
const QString &service);
140 void abortSite(
const QUrl &url);
142 void allDone(
bool bSuccess);
143 void fileDownloadSuccessful(
const QString& filename);
145 void message(
const QString& message, WadseekerLib::MessageType type);
146 void registerUpdateRequest();
147 void seekStarted(
const QStringList& filenames);
148 void serviceStarted(
const QString &service);
149 void serviceFinished(
const QString &service);
150 void siteFinished(
const QUrl& site);
151 void siteProgress(
const QUrl& site, qint64 bytes, qint64 total);
152 void siteRedirect(
const QUrl& oldUrl,
const QUrl& newUrl);
153 void siteStarted(
const QUrl& site);
154 void wadsTableRightClicked(
const QModelIndex& index,
const QPoint& cursorPosition);
void setWads(const QStringList &wads)
Sets WADs to seek.
Wadseeker dialog box, only one instance is allowed.