Add comments and translations for xdxf downloading dialog
[mdictionary] / src / plugins / xdxf / XdxfDictDownloader.h
index 629f57d..3a74b20 100644 (file)
 
 *******************************************************************************/
 
-//Created by Mateusz Półrola
+/*!
+  \file XdxfDictDownloader.h
+  \author Mateusz Półrola <mateusz.polrola@comarch.pl>
+ */
 
 #ifndef XDXFDICTDOWNLOADER_H
 #define XDXFDICTDOWNLOADER_H
@@ -47,7 +50,6 @@ public:
     XdxfDictDownloader(QObject *parent = 0);
     //! \return name of downloaded file
     QString downloadedFile();
-    ~XdxfDictDownloader();
 
 public Q_SLOTS:
     //! downloads dictionaries list from xdxf website
@@ -56,14 +58,21 @@ public Q_SLOTS:
 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;
@@ -75,6 +84,7 @@ private:
     QString _fileName;
     bool downloadError;
     bool aborted;
+    QNetworkAccessManager *manager;
 };
 
 #endif // XDXFDICTDOWNLOADER_H