.
This commit is contained in:
@@ -2,6 +2,8 @@
|
|||||||
#include "ui_cedit.h"
|
#include "ui_cedit.h"
|
||||||
|
|
||||||
#include "cmovieimage.h"
|
#include "cmovieimage.h"
|
||||||
|
#include "cfanartimage.h"
|
||||||
|
|
||||||
#include "cseasondetails.h"
|
#include "cseasondetails.h"
|
||||||
#include "cmessageanimatedialog.h"
|
#include "cmessageanimatedialog.h"
|
||||||
|
|
||||||
@@ -96,6 +98,17 @@ void cEdit::setSerie(cSerie* lpSerie)
|
|||||||
ui->m_lpCliffhanger->setChecked(lpSerie->cliffhanger());
|
ui->m_lpCliffhanger->setChecked(lpSerie->cliffhanger());
|
||||||
ui->m_lpDownloadLink->setText(lpSerie->download());
|
ui->m_lpDownloadLink->setText(lpSerie->download());
|
||||||
|
|
||||||
|
QString szBanner = lpSerie->fanartBanner();
|
||||||
|
{
|
||||||
|
if(!szBanner.isEmpty())
|
||||||
|
{
|
||||||
|
cFanartImage banner;
|
||||||
|
QPixmap pixmap = banner.getImage(szBanner);
|
||||||
|
if(!pixmap.isNull())
|
||||||
|
ui->m_lpBanner->setPixmap(pixmap);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int x;
|
int x;
|
||||||
QList<cSeason*> seasonList = lpSerie->seasonList();
|
QList<cSeason*> seasonList = lpSerie->seasonList();
|
||||||
for(x = 0;x < seasonList.count();x++)
|
for(x = 0;x < seasonList.count();x++)
|
||||||
|
|||||||
@@ -13,258 +13,263 @@
|
|||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Edit</string>
|
<string>Edit</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_2">
|
<widget class="QWidget" name="">
|
||||||
<item row="0" column="0">
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
<item>
|
||||||
<item>
|
<widget class="QTabWidget" name="m_lpTabWidget">
|
||||||
<widget class="QTabWidget" name="m_lpTabWidget">
|
<property name="currentIndex">
|
||||||
<property name="currentIndex">
|
<number>0</number>
|
||||||
<number>1</number>
|
</property>
|
||||||
</property>
|
<widget class="cPixmapWidget" name="m_lpProgressTab">
|
||||||
<widget class="cPixmapWidget" name="m_lpProgressTab">
|
<attribute name="title">
|
||||||
<attribute name="title">
|
<string>Progress</string>
|
||||||
<string>Progress</string>
|
</attribute>
|
||||||
</attribute>
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<item row="0" column="0">
|
||||||
<item row="0" column="0">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<item>
|
||||||
<item>
|
<widget class="QLabel" name="m_lpBanner">
|
||||||
<layout class="QVBoxLayout" name="m_lpVerticalLayout">
|
<property name="text">
|
||||||
<item>
|
<string/>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_6">
|
</property>
|
||||||
<item>
|
</widget>
|
||||||
<widget class="QLineEdit" name="m_lpName">
|
</item>
|
||||||
<property name="readOnly">
|
<item>
|
||||||
<bool>true</bool>
|
<layout class="QVBoxLayout" name="m_lpVerticalLayout">
|
||||||
</property>
|
<item>
|
||||||
</widget>
|
<layout class="QHBoxLayout" name="horizontalLayout_6">
|
||||||
</item>
|
<item>
|
||||||
<item>
|
<widget class="QLineEdit" name="m_lpName">
|
||||||
<widget class="QLabel" name="label_4">
|
<property name="readOnly">
|
||||||
<property name="text">
|
|
||||||
<string>Year:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QDateEdit" name="m_lpFirstAired"/>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="m_lpCliffhanger">
|
|
||||||
<property name="text">
|
|
||||||
<string>Cliffhanger</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="m_lpDownloadLinkLabel">
|
|
||||||
<property name="text">
|
|
||||||
<string>Download Link:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLineEdit" name="m_lpDownloadLink"/>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
|
||||||
<item>
|
|
||||||
<widget class="QPushButton" name="m_lpAllInit">
|
|
||||||
<property name="text">
|
|
||||||
<string>all Init</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QPushButton" name="m_lpAllProgress">
|
|
||||||
<property name="text">
|
|
||||||
<string>all Progress</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QPushButton" name="m_lpAllDone">
|
|
||||||
<property name="text">
|
|
||||||
<string>all Done</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QScrollArea" name="m_lpScrollArea">
|
|
||||||
<property name="widgetResizable">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
<widget class="QWidget" name="m_lpScrollAreaWidget">
|
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>0</x>
|
|
||||||
<y>0</y>
|
|
||||||
<width>1123</width>
|
|
||||||
<height>546</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<property name="autoFillBackground">
|
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="m_lpGridLayoutScroll"/>
|
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</item>
|
||||||
</item>
|
<item>
|
||||||
</layout>
|
<widget class="QLabel" name="label_4">
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
<widget class="QWidget" name="m_lpDetailsTab">
|
|
||||||
<attribute name="title">
|
|
||||||
<string>Details</string>
|
|
||||||
</attribute>
|
|
||||||
<layout class="QGridLayout" name="gridLayout_4">
|
|
||||||
<item row="0" column="0">
|
|
||||||
<layout class="QGridLayout" name="gridLayout_3">
|
|
||||||
<item row="0" column="6">
|
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
|
||||||
<item>
|
|
||||||
<widget class="cVerticalLabel" name="label_2">
|
|
||||||
<property name="text">
|
|
||||||
<string>Actors</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QTreeWidget" name="m_lpDetailsActors">
|
|
||||||
<property name="columnCount">
|
|
||||||
<number>2</number>
|
|
||||||
</property>
|
|
||||||
<attribute name="headerVisible">
|
|
||||||
<bool>false</bool>
|
|
||||||
</attribute>
|
|
||||||
<column>
|
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string notr="true">1</string>
|
<string>Year:</string>
|
||||||
</property>
|
</property>
|
||||||
</column>
|
</widget>
|
||||||
<column>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QDateEdit" name="m_lpFirstAired"/>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="m_lpCliffhanger">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string notr="true">2</string>
|
<string>Cliffhanger</string>
|
||||||
</property>
|
</property>
|
||||||
</column>
|
</widget>
|
||||||
</widget>
|
</item>
|
||||||
</item>
|
</layout>
|
||||||
</layout>
|
</item>
|
||||||
</item>
|
<item>
|
||||||
<item row="0" column="5" rowspan="2">
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||||
<widget class="QTextEdit" name="m_lpDetailsOverview">
|
<item>
|
||||||
<property name="maximumSize">
|
<widget class="QLabel" name="m_lpDownloadLinkLabel">
|
||||||
<size>
|
|
||||||
<width>16777215</width>
|
|
||||||
<height>16777215</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="readOnly">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="6">
|
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
|
||||||
<item>
|
|
||||||
<widget class="cVerticalLabel" name="label_3">
|
|
||||||
<property name="text">
|
|
||||||
<string>Genre</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QTreeWidget" name="m_lpDetailsGenre">
|
|
||||||
<attribute name="headerVisible">
|
|
||||||
<bool>false</bool>
|
|
||||||
</attribute>
|
|
||||||
<column>
|
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string notr="true">1</string>
|
<string>Download Link:</string>
|
||||||
</property>
|
</property>
|
||||||
</column>
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLineEdit" name="m_lpDownloadLink"/>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="m_lpAllInit">
|
||||||
|
<property name="text">
|
||||||
|
<string>all Init</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="m_lpAllProgress">
|
||||||
|
<property name="text">
|
||||||
|
<string>all Progress</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="m_lpAllDone">
|
||||||
|
<property name="text">
|
||||||
|
<string>all Done</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QScrollArea" name="m_lpScrollArea">
|
||||||
|
<property name="widgetResizable">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<widget class="QWidget" name="m_lpScrollAreaWidget">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>581</width>
|
||||||
|
<height>334</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="autoFillBackground">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" name="m_lpGridLayoutScroll"/>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</widget>
|
||||||
</layout>
|
</item>
|
||||||
</item>
|
</layout>
|
||||||
<item row="0" column="0" rowspan="2">
|
</item>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
</layout>
|
||||||
<item>
|
</item>
|
||||||
<widget class="QLabel" name="m_lpDetailsImage">
|
</layout>
|
||||||
<property name="minimumSize">
|
</widget>
|
||||||
<size>
|
<widget class="QWidget" name="m_lpDetailsTab">
|
||||||
<width>0</width>
|
<attribute name="title">
|
||||||
<height>0</height>
|
<string>Details</string>
|
||||||
</size>
|
</attribute>
|
||||||
</property>
|
<layout class="QGridLayout" name="gridLayout_4">
|
||||||
<property name="frameShape">
|
<item row="0" column="0">
|
||||||
<enum>QFrame::Box</enum>
|
<layout class="QGridLayout" name="gridLayout_3">
|
||||||
</property>
|
<item row="0" column="6">
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
||||||
|
<item>
|
||||||
|
<widget class="cVerticalLabel" name="label_2">
|
||||||
|
<property name="text">
|
||||||
|
<string>Actors</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QTreeWidget" name="m_lpDetailsActors">
|
||||||
|
<property name="columnCount">
|
||||||
|
<number>2</number>
|
||||||
|
</property>
|
||||||
|
<attribute name="headerVisible">
|
||||||
|
<bool>false</bool>
|
||||||
|
</attribute>
|
||||||
|
<column>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string/>
|
<string notr="true">1</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="alignment">
|
</column>
|
||||||
<set>Qt::AlignCenter</set>
|
<column>
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true">2</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</column>
|
||||||
</item>
|
</widget>
|
||||||
<item>
|
</item>
|
||||||
<spacer name="verticalSpacer">
|
</layout>
|
||||||
<property name="orientation">
|
</item>
|
||||||
<enum>Qt::Vertical</enum>
|
<item row="0" column="5" rowspan="2">
|
||||||
</property>
|
<widget class="QTextEdit" name="m_lpDetailsOverview">
|
||||||
<property name="sizeHint" stdset="0">
|
<property name="maximumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>20</width>
|
<width>16777215</width>
|
||||||
<height>40</height>
|
<height>16777215</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
<property name="readOnly">
|
||||||
</item>
|
<bool>true</bool>
|
||||||
</layout>
|
</property>
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="0">
|
|
||||||
<widget class="QTabWidget" name="m_lpDetailsSeasonTab">
|
|
||||||
<property name="currentIndex">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<widget class="QWidget" name="tab_3">
|
|
||||||
<attribute name="title">
|
|
||||||
<string>Tab 1</string>
|
|
||||||
</attribute>
|
|
||||||
</widget>
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="6">
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
||||||
|
<item>
|
||||||
|
<widget class="cVerticalLabel" name="label_3">
|
||||||
|
<property name="text">
|
||||||
|
<string>Genre</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QTreeWidget" name="m_lpDetailsGenre">
|
||||||
|
<attribute name="headerVisible">
|
||||||
|
<bool>false</bool>
|
||||||
|
</attribute>
|
||||||
|
<column>
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true">1</string>
|
||||||
|
</property>
|
||||||
|
</column>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="0" rowspan="2">
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="m_lpDetailsImage">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>0</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="frameShape">
|
||||||
|
<enum>QFrame::Box</enum>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignCenter</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="verticalSpacer">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Vertical</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>40</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QTabWidget" name="m_lpDetailsSeasonTab">
|
||||||
|
<property name="currentIndex">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<widget class="QWidget" name="tab_3">
|
||||||
|
<attribute name="title">
|
||||||
|
<string>Tab 1</string>
|
||||||
|
</attribute>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</widget>
|
||||||
</layout>
|
</item>
|
||||||
</widget>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</widget>
|
||||||
<item>
|
</item>
|
||||||
<widget class="QDialogButtonBox" name="m_lpButtonBox">
|
<item>
|
||||||
<property name="orientation">
|
<widget class="QDialogButtonBox" name="m_lpButtonBox">
|
||||||
<enum>Qt::Horizontal</enum>
|
<property name="orientation">
|
||||||
</property>
|
<enum>Qt::Horizontal</enum>
|
||||||
<property name="standardButtons">
|
</property>
|
||||||
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
<property name="standardButtons">
|
||||||
</property>
|
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
||||||
</widget>
|
</property>
|
||||||
</item>
|
</widget>
|
||||||
</layout>
|
</item>
|
||||||
</item>
|
</layout>
|
||||||
</layout>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
|
|||||||
@@ -0,0 +1,66 @@
|
|||||||
|
#include "common.h"
|
||||||
|
|
||||||
|
#include "cfanartimage.h"
|
||||||
|
|
||||||
|
#include <QDir>
|
||||||
|
#include <QFile>
|
||||||
|
#include <QNetworkAccessManager>
|
||||||
|
#include <QNetworkRequest>
|
||||||
|
#include <QNetworkReply>
|
||||||
|
#include <QEventLoop>
|
||||||
|
#include <QUrl>
|
||||||
|
|
||||||
|
|
||||||
|
cFanartImage::cFanartImage()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
QPixmap cFanartImage::getImage(const QString& szFileName)
|
||||||
|
{
|
||||||
|
QPixmap pixmap;
|
||||||
|
|
||||||
|
QString szPath = rootPath() + QDir::separator() + szFileName.mid(25);
|
||||||
|
szPath.replace("/", QDir::separator());
|
||||||
|
|
||||||
|
if(szFileName.isEmpty())
|
||||||
|
pixmap.load(rootPath() + QDir::separator() + QDir::separator() + "empty.jpg");
|
||||||
|
else
|
||||||
|
pixmap.load(szPath);
|
||||||
|
|
||||||
|
if(!pixmap.width())
|
||||||
|
return(downloadFile(szFileName));
|
||||||
|
|
||||||
|
return(pixmap);
|
||||||
|
}
|
||||||
|
|
||||||
|
QPixmap cFanartImage::downloadFile(const QString& szFileName)
|
||||||
|
{
|
||||||
|
QPixmap pixmap;
|
||||||
|
|
||||||
|
QString szPath = rootPath() + QDir::separator() + szFileName.mid(25);
|
||||||
|
szPath.replace("/", QDir::separator());
|
||||||
|
QString szURL = szFileName;
|
||||||
|
|
||||||
|
QNetworkAccessManager networkManager;
|
||||||
|
QUrl url(szURL);
|
||||||
|
QNetworkRequest request(url);
|
||||||
|
request.setHeader(QNetworkRequest::ContentTypeHeader, "application/xml");
|
||||||
|
|
||||||
|
QNetworkReply* reply = networkManager.get(request);
|
||||||
|
QEventLoop loop;
|
||||||
|
|
||||||
|
QObject::connect(reply, SIGNAL(finished()), &loop, SLOT(quit()));
|
||||||
|
loop.exec();
|
||||||
|
|
||||||
|
QByteArray szData = reply->readAll();
|
||||||
|
delete reply;
|
||||||
|
|
||||||
|
pixmap.loadFromData(szData);
|
||||||
|
|
||||||
|
QDir dir(szPath);
|
||||||
|
QFileInfo fileInfo(szPath);
|
||||||
|
dir.mkpath(dir.filePath(fileInfo.absolutePath()));
|
||||||
|
pixmap.save(szPath);
|
||||||
|
|
||||||
|
return(pixmap);
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
#ifndef CFANARTIMAGE_H
|
||||||
|
#define CFANARTIMAGE_H
|
||||||
|
|
||||||
|
|
||||||
|
#include <QPixmap>
|
||||||
|
|
||||||
|
|
||||||
|
class cFanartImage
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
cFanartImage();
|
||||||
|
QPixmap getImage(const QString& szFileName);
|
||||||
|
private:
|
||||||
|
QPixmap downloadFile(const QString& szFileName);
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // CFANARTIMAGE_H
|
||||||
+11
@@ -713,6 +713,17 @@ void cSerie::setFanartList(const cFanartList& fanartList)
|
|||||||
m_fanartList = fanartList;
|
m_fanartList = fanartList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString cSerie::fanartBanner()
|
||||||
|
{
|
||||||
|
for(int x = 0;x < m_fanartList.count();x++)
|
||||||
|
{
|
||||||
|
cFanart* lpFanartTV = m_fanartList.at(x);
|
||||||
|
if(lpFanartTV->type() == cFanart::TypeTVBanner)
|
||||||
|
return(lpFanartTV->url());
|
||||||
|
}
|
||||||
|
return("");
|
||||||
|
}
|
||||||
|
|
||||||
cSerie* cSerieList::add(const qint32& iID)
|
cSerie* cSerieList::add(const qint32& iID)
|
||||||
{
|
{
|
||||||
cSerie* lpNew = find(iID);
|
cSerie* lpNew = find(iID);
|
||||||
|
|||||||
@@ -150,6 +150,8 @@ public:
|
|||||||
void loadFanart();
|
void loadFanart();
|
||||||
void setFanartList(const cFanartList& fanartList);
|
void setFanartList(const cFanartList& fanartList);
|
||||||
cFanartList fanartList();
|
cFanartList fanartList();
|
||||||
|
|
||||||
|
QString fanartBanner();
|
||||||
private:
|
private:
|
||||||
QString m_szSeriesName;
|
QString m_szSeriesName;
|
||||||
QString m_szOriginalName;
|
QString m_szOriginalName;
|
||||||
|
|||||||
+4
-2
@@ -37,7 +37,8 @@ SOURCES += main.cpp\
|
|||||||
cscrollarea.cpp \
|
cscrollarea.cpp \
|
||||||
cpixmapwidget.cpp \
|
cpixmapwidget.cpp \
|
||||||
cfanart.cpp \
|
cfanart.cpp \
|
||||||
cfanarttv.cpp
|
cfanarttv.cpp \
|
||||||
|
cfanartimage.cpp
|
||||||
|
|
||||||
HEADERS += cmainwindow.h \
|
HEADERS += cmainwindow.h \
|
||||||
cserie.h \
|
cserie.h \
|
||||||
@@ -63,7 +64,8 @@ HEADERS += cmainwindow.h \
|
|||||||
cscrollarea.h \
|
cscrollarea.h \
|
||||||
cpixmapwidget.h \
|
cpixmapwidget.h \
|
||||||
cfanart.h \
|
cfanart.h \
|
||||||
cfanarttv.h
|
cfanarttv.h \
|
||||||
|
cfanartimage.h
|
||||||
|
|
||||||
FORMS += cmainwindow.ui \
|
FORMS += cmainwindow.ui \
|
||||||
csearch.ui \
|
csearch.ui \
|
||||||
|
|||||||
Reference in New Issue
Block a user