Revert renaming of tvdb_ types

Anne Jan Brouwer [2018-06-14 12:05]
Revert renaming of tvdb_ types
Filename
qtswarmtv/seasonepisodewidget.cpp
qtswarmtv/seasonepisodewidget.hpp
qtswarmtv/serieslistcontrol.cpp
qtswarmtv/serieslistcontrol.hpp
diff --git a/qtswarmtv/seasonepisodewidget.cpp b/qtswarmtv/seasonepisodewidget.cpp
index 9dde2aa..887606a 100644
--- a/qtswarmtv/seasonepisodewidget.cpp
+++ b/qtswarmtv/seasonepisodewidget.cpp
@@ -59,7 +59,7 @@ void seasonEpisodeWidget::retrieveEpisodeData()
 {
   //int rc=0;
   //tvdb_buffer_t buf;
-  //tvdb_list_node_t seriesInfo;
+  //tvdb_list_front_t seriesInfo;

   // Disable the tree view to show we are searching
   ui->treeWidget->setDisabled(true);
@@ -106,10 +106,10 @@ void seasonEpisodeWidget::retrieveEpisodeData()
 void seasonEpisodeWidget::seriesResults(tvdb_buffer_t *series_xml)
 {
   int rc=0;
-  tvdb_list_node_t seriesInfo;
+  tvdb_list_front_t seriesInfo;

   // Initialize structs
-  memset(&seriesInfo, 0, sizeof(tvdb_list_node_t));
+  memset(&seriesInfo, 0, sizeof(tvdb_list_front_t));

   // Parse the XML data
   rc = tvdb_parse_series_info(series_xml, "", &seriesInfo);
@@ -237,10 +237,10 @@ void seasonEpisodeWidget::addEpisodeEntry(QTreeWidgetItem *seasonItem, tvdb_seri
   ui->treeWidget->setItemWidget(overviewItem, 0, overviewWidget);
 }

-void seasonEpisodeWidget::fillListView(tvdb_list_node_t *seriesInfo)
+void seasonEpisodeWidget::fillListView(tvdb_list_front_t *seriesInfo)
 {
   tvdb_list_reset(seriesInfo);
-  const tvdb_list_node_t *n=NULL;
+  const tvdb_list_front_t *n=NULL;
   tvdb_series_info_t *s=NULL;
   int widgetSeason=0;
   int curSeason=0;
diff --git a/qtswarmtv/seasonepisodewidget.hpp b/qtswarmtv/seasonepisodewidget.hpp
index 803d8dd..32b8be4 100644
--- a/qtswarmtv/seasonepisodewidget.hpp
+++ b/qtswarmtv/seasonepisodewidget.hpp
@@ -24,7 +24,7 @@ public:
     void setSeriesTitle(QString &name);
     void setSeriesId(int id);
     void setrieveEpisodeData();
-    void fillListView(tvdb_list_node_t *);
+    void fillListView(tvdb_list_front_t *);
     void retrieveEpisodeData();

 public slots:
diff --git a/qtswarmtv/serieslistcontrol.cpp b/qtswarmtv/serieslistcontrol.cpp
index a3fc3a4..fba6a2e 100644
--- a/qtswarmtv/serieslistcontrol.cpp
+++ b/qtswarmtv/serieslistcontrol.cpp
@@ -72,10 +72,10 @@ void seriesListControl::addWidget(int count, tvdb_series_t *series)
   myItem->show();
 }

-void seriesListControl::handleSeries(tvdb_list_node_t *series)
+void seriesListControl::handleSeries(tvdb_list_front_t *series)
 {
   int count=0;
-  tvdb_list_node_t *n=NULL;
+  tvdb_list_front_t *n=NULL;
   tvdb_series_t *m=NULL;

   table->setRowCount(series->count);
@@ -115,7 +115,7 @@ void seriesListControl::findSeries()
 void seriesListControl::searchResults(tvdb_buffer_t *series_xml)
 {
   int rc=0;
-  tvdb_list_node_t series;
+  tvdb_list_front_t series;

   // Parse results
   tvdb_list_init(&series);
diff --git a/qtswarmtv/serieslistcontrol.hpp b/qtswarmtv/serieslistcontrol.hpp
index eba8f36..d647991 100644
--- a/qtswarmtv/serieslistcontrol.hpp
+++ b/qtswarmtv/serieslistcontrol.hpp
@@ -32,7 +32,7 @@ public slots:
     void showContextMenu(const QPoint&);

 private:
-    void handleSeries(tvdb_list_node_t *series);
+    void handleSeries(tvdb_list_front_t *series);
     void addWidget(int count, tvdb_series_t *series);
     void openSimpleEditDialog(seriesWidget *series);
     void createFilter();