*******************************************************************************/
-//Created by Mateusz Półrola
+/*!
+ \file XdxfDictDownloader.h
+ \author Mateusz Półrola <mateusz.polrola@comarch.pl>
+ */
#ifndef XDXFDICTDOWNLOADER_H
#define XDXFDICTDOWNLOADER_H
XdxfDictDownloader(QObject *parent = 0);
//! \return name of downloaded file
QString downloadedFile();
- ~XdxfDictDownloader();
public Q_SLOTS:
//! downloads dictionaries list from xdxf website
Q_SIGNALS:
//! emmited when file download precess is complete
void fileDownloaded(QString);
+ //! emitted to inform user about errors and warnings
void notify(Notify::NotifyType, QString);
private Q_SLOTS:
+ //! obtained list of dictionaries from website
void dictListReceived(QNetworkReply*);
+
+ //! one of system processes finished
void processFinished(int);
+
+ //! user cancel downloading
void breakDownloading();
private:
+ //! dict is downloaded and unpacked
void downloadComplete();
QList<DownloadDict> dicts;
QWidget* parentDialog;
QString _fileName;
bool downloadError;
bool aborted;
+ QNetworkAccessManager *manager;
};
#endif // XDXFDICTDOWNLOADER_H