Network error handling to RemoteDBMgr and SelectRemoteDlg
[irwi] / src / selectremotedlg.h
index cf76d17..3fdeb6c 100644 (file)
@@ -11,6 +11,7 @@
 class QHBoxLayout;
 class QListWidget;
 class QListWidgetItem;
+class RemoteTable;
 class QSettings;
 class QNetworkAccessManager;
 class QNetworkReply;
@@ -30,6 +31,7 @@ public:
 
 public slots:
     void refreshDB();
+    void getDB();
 
 private slots:
     void alphabetItemChanged(QListWidgetItem *current,
@@ -37,6 +39,7 @@ private slots:
     void mfgItemChanged(QListWidgetItem *current, QListWidgetItem *previous);
     void downloadRemote();
     void setDB(RemoteDB *db);
+    void onDBError(int error);
 
 signals:
     void remoteChanged(Remote);
@@ -51,9 +54,10 @@ private:
     QHBoxLayout *layout;
     QListWidget *alphabetList;
     QListWidget *mfgList;
-    QListWidget *modelList;
+    RemoteTable *modelList;
     QPushButton *downloadBtn;
     RemoteDB *remoteDB;
+    OnlinePollerThread *onlinePollerThread;
 
     void setBusy(bool busy = true);
 };