removed not fully implemented platforms

This commit is contained in:
Martchus 2015-08-29 21:34:47 +02:00
parent f57dc1203c
commit 4d006dbabf
2 changed files with 28 additions and 10 deletions

View File

@ -6,7 +6,9 @@
#include "network/bitsharedownload.h" #include "network/bitsharedownload.h"
#include "network/groovesharkdownload.h" #include "network/groovesharkdownload.h"
#include "network/filenukedownload.h" #include "network/filenukedownload.h"
#ifdef UNDER_CONSTRUCTION
#include "network/spotifydownload.h" #include "network/spotifydownload.h"
#endif
#include <QInputDialog> #include <QInputDialog>
#include <QSettings> #include <QSettings>
@ -21,10 +23,13 @@ QStringList AddDownloadDialog::m_knownDownloadTypeNames = QStringList()
<< QStringLiteral("standard http(s)/ftp") << QStringLiteral("standard http(s)/ftp")
<< QStringLiteral("Youtube") << QStringLiteral("Youtube")
<< QStringLiteral("Grooveshark") << QStringLiteral("Grooveshark")
<< QStringLiteral("Spotify")
<< QStringLiteral("Sockshare/Putlocker") << QStringLiteral("Sockshare/Putlocker")
<< QStringLiteral("Bitshare") << QStringLiteral("Bitshare")
<< QStringLiteral("FileNuke"); << QStringLiteral("FileNuke")
#ifdef UNDER_CONSTRUCTION
<< QStringLiteral("Spotify")
#endif
;
AddDownloadDialog::AddDownloadDialog(QWidget *parent) : AddDownloadDialog::AddDownloadDialog(QWidget *parent) :
QDialog(parent), QDialog(parent),
@ -63,12 +68,13 @@ AddDownloadDialog::AddDownloadDialog(QWidget *parent) :
} }
AddDownloadDialog::~AddDownloadDialog() AddDownloadDialog::~AddDownloadDialog()
{ } {}
Download *AddDownloadDialog::result() const Download *AddDownloadDialog::result() const
{ {
if(!hasValidInput()) if(!hasValidInput()) {
return nullptr; return nullptr;
}
QString res(m_ui->urlLineEdit->text()); QString res(m_ui->urlLineEdit->text());
switch(m_downloadTypeIndex) { switch(m_downloadTypeIndex) {
@ -79,13 +85,15 @@ Download *AddDownloadDialog::result() const
case 2: case 2:
return new GroovesharkDownload(res); return new GroovesharkDownload(res);
case 3: case 3:
return new SpotifyDownload(res);
case 4:
return new SockshareDownload(QUrl(res)); return new SockshareDownload(QUrl(res));
case 5: case 4:
return new BitshareDownload(QUrl(res)); return new BitshareDownload(QUrl(res));
case 6: case 5:
return new FileNukeDownload(QUrl(res)); return new FileNukeDownload(QUrl(res));
#ifdef UNDER_CONSTRUCTION
case 6:
return new SpotifyDownload(res);
#endif
default: default:
return nullptr; return nullptr;
} }

View File

@ -20,6 +20,10 @@ testdownload {
DEFINES += CONFIG_TESTDOWNLOAD DEFINES += CONFIG_TESTDOWNLOAD
} }
underconstruction {
DEFINES += UNDER_CONSTRUCTION
}
!notrayicon { !notrayicon {
DEFINES += CONFIG_USE_TRAY_ICON DEFINES += CONFIG_USE_TRAY_ICON
usetrayiconalways { usetrayiconalways {
@ -43,7 +47,6 @@ SOURCES += application/main.cpp \
network/httpdownloadwithinforequst.cpp \ network/httpdownloadwithinforequst.cpp \
network/misc/contentdispositionparser.cpp \ network/misc/contentdispositionparser.cpp \
network/socksharedownload.cpp \ network/socksharedownload.cpp \
network/spotifydownload.cpp \
network/youtubedownload.cpp \ network/youtubedownload.cpp \
gui/adddownloaddialog.cpp \ gui/adddownloaddialog.cpp \
gui/addmultipledownloadswizard.cpp \ gui/addmultipledownloadswizard.cpp \
@ -76,7 +79,6 @@ HEADERS += application/main.h \
network/httpdownloadwithinforequst.h \ network/httpdownloadwithinforequst.h \
network/misc/contentdispositionparser.h \ network/misc/contentdispositionparser.h \
network/socksharedownload.h \ network/socksharedownload.h \
network/spotifydownload.h \
network/youtubedownload.h \ network/youtubedownload.h \
gui/adddownloaddialog.h \ gui/adddownloaddialog.h \
gui/addmultipledownloadswizard.h \ gui/addmultipledownloadswizard.h \
@ -101,6 +103,14 @@ testdownload {
HEADERS += network/testdownload.h HEADERS += network/testdownload.h
} }
underconstruction {
SOURCES += \
network/spotifydownload.cpp
HEADERS += \
network/spotifydownload.h
}
FORMS += gui/adddownloaddialog.ui \ FORMS += gui/adddownloaddialog.ui \
gui/downloadwidget.ui \ gui/downloadwidget.ui \
gui/setrangedialog.ui \ gui/setrangedialog.ui \