Permalink
Browse files

Fixes #282

  • Loading branch information...
1 parent 9ae32d4 commit e3ddd45cbb1609507b34cb8573f35d89c51dfd3d Daniel Kabel committed Mar 26, 2013
View
@@ -129,7 +129,9 @@ SOURCES += main.cpp\
settings/AdvancedSettings.cpp \
smallWidgets/AlphabeticalList.cpp \
smallWidgets/MyTableView.cpp \
- data/ImageCache.cpp
+ data/ImageCache.cpp \
+ scrapers/TvTunes.cpp \
+ tvShows/TvTunesDialog.cpp
HEADERS += main/MainWindow.h \
movies/Movie.h \
@@ -233,7 +235,9 @@ HEADERS += main/MainWindow.h \
settings/AdvancedSettings.h \
smallWidgets/AlphabeticalList.h \
smallWidgets/MyTableView.h \
- data/ImageCache.h
+ data/ImageCache.h \
+ scrapers/TvTunes.h \
+ tvShows/TvTunesDialog.h
FORMS += main/MainWindow.ui \
movies/MovieSearch.ui \
@@ -268,7 +272,8 @@ FORMS += main/MainWindow.ui \
movies/MovieMultiScrapeDialog.ui \
smallWidgets/TagCloud.ui \
tvShows/TvShowWidgetSeason.ui \
- renamer/Renamer.ui
+ renamer/Renamer.ui \
+ tvShows/TvTunesDialog.ui
RESOURCES += \
MediaElch.qrc
View
@@ -31,6 +31,7 @@ TvShow::TvShow(QString dir, QObject *parent) :
m_showId = ++m_idCounter;
m_databaseId = -1;
m_syncNeeded = false;
+ m_hasTune = false;
}
/**
@@ -1459,6 +1460,16 @@ void TvShow::removeImage(ImageType type, int season)
setChanged(true);
}
+void TvShow::setHasTune(bool hasTune)
+{
+ m_hasTune = hasTune;
+}
+
+bool TvShow::hasTune() const
+{
+ return m_hasTune;
+}
+
/*** DEBUG ***/
QDebug operator<<(QDebug dbg, const TvShow &show)
View
@@ -92,6 +92,7 @@ class TvShow : public QObject
int databaseId() const;
bool syncNeeded() const;
QList<int> infosToLoad() const;
+ bool hasTune() const;
void setName(QString name);
void setShowTitle(QString title);
@@ -128,6 +129,7 @@ class TvShow : public QObject
void setNfoContent(QString content);
void setDatabaseId(int id);
void setSyncNeeded(bool syncNeeded);
+ void setHasTune(bool hasTune);
void removeActor(Actor *actor);
void removeGenre(QString genre);
@@ -210,6 +212,7 @@ class TvShow : public QObject
bool m_logoImageChanged;
bool m_clearArtImageChanged;
bool m_characterArtImageChanged;
+ bool m_hasTune;
QMap<int, QByteArray> m_seasonPosterImages;
QList<int> m_seasonPosterImagesChanged;
QMap<int, QByteArray> m_seasonBackdropImages;
View
@@ -53,6 +53,8 @@ Manager::Manager(QObject *parent) :
m_trailerProviders.append(new MovieMaze(this));
m_trailerProviders.append(new HdTrailers(this));
+
+ m_tvTunes = new TvTunes(this);
}
/**
@@ -287,3 +289,8 @@ QList<TrailerProvider*> Manager::trailerProviders()
{
return m_trailerProviders;
}
+
+TvTunes* Manager::tvTunes()
+{
+ return m_tvTunes;
+}
View
@@ -18,6 +18,7 @@
#include "data/TvShowProxyModel.h"
#include "imageProviders/FanartTv.h"
#include "main/FileScannerDialog.h"
+#include "scrapers/TvTunes.h"
#include "trailerProviders/TrailerProvider.h"
#include "tvShows/TvShowFilesWidget.h"
@@ -55,6 +56,7 @@ class Manager : public QObject
ScraperInterface* getScraperForName(QString name);
FanartTv* fanartTv();
TvShowFilesWidget *tvShowFilesWidget();
+ TvTunes* tvTunes();
void setTvShowFilesWidget(TvShowFilesWidget *widget);
void setFileScannerDialog(FileScannerDialog *dialog);
@@ -78,6 +80,7 @@ class Manager : public QObject
Database *m_database;
TvShowFilesWidget *m_tvShowFilesWidget;
FileScannerDialog *m_fileScannerDialog;
+ TvTunes *m_tvTunes;
};
#endif // MANAGER_H
View
Binary file not shown.
Oops, something went wrong.

0 comments on commit e3ddd45

Please sign in to comment.