23 #ifndef __WADSEEKERINTERFACE_H_
24 #define __WADSEEKERINTERFACE_H_
27 #include "wadseeker/wadseeker.h"
30 #include <QStringList>
46 static bool isInstantiated();
52 bool isAutomatic() {
return bAutomatic; }
54 void setCustomSite(
const QString& site)
56 this->customSite = site;
67 void setWads(
const QStringList& wads);
69 Wadseeker& wadseekerRef() {
return wadseeker; }
80 static const int UPDATE_INTERVAL_MS;
87 QString colorHtmlMessageFatalError;
88 QString colorHtmlMessageError;
89 QString colorHtmlMessageNotice;
96 QStringList seekedWads;
104 QStringList successfulWads;
112 void connectWadseekerObject();
114 void displayMessage(
const QString& message, WadseekerLib::MessageType type,
bool bPrependErrorsWithMessageType);
115 void initMessageColors();
120 void resetTitleToDefault();
122 void setStateDownloading();
123 void setStateWaiting();
125 void showEvent(QShowEvent* event);
126 void startSeeking(
const QStringList& seekedFilesList);
127 void updateProgressBar();
134 QStringList unsuccessfulWads()
const;
138 void allDone(
bool bSuccess);
139 void fileDownloadSuccessful(
const QString& filename);
141 void message(
const QString& message, WadseekerLib::MessageType type);
142 void registerUpdateRequest();
143 void seekStarted(
const QStringList& filenames);
144 void siteFinished(
const QUrl& site);
145 void siteProgress(
const QUrl& site, qint64 bytes, qint64 total);
146 void siteRedirect(
const QUrl& oldUrl,
const QUrl& newUrl);
147 void siteStarted(
const QUrl& site);
148 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.