Commit 3e901c5e authored by Maik Qualmann's avatar Maik Qualmann
Browse files

light table GUI export tools use a new web service starter

CCBUGS: 397972
parent aed5c59b
......@@ -89,132 +89,14 @@ void LightTableWindow::slotMediaServer()
void LightTableWindow::slotExportTool()
{
QAction* const tool = dynamic_cast<QAction*>(sender());
QAction* const action = dynamic_cast<QAction*>(sender());
int tool = actionToWebService(action);
if (tool == m_exportDropboxAction)
if (tool != WSStarter::Unknown)
{
QPointer<DBWindow> w = new DBWindow(new DBInfoIface(this, d->thumbView->allUrls(),
ApplicationSettings::ImportExport), this);
w->exec();
delete w;
WSStarter::exportToWebService(tool, new DBInfoIface(this, QList<QUrl>(),
ApplicationSettings::ImportExport), this);
}
if (tool == m_exportOnedriveAction)
{
QPointer<ODWindow> w = new ODWindow(new DBInfoIface(this, d->thumbView->allUrls(),
ApplicationSettings::ImportExport), this);
w->exec();
delete w;
}
if (tool == m_exportPinterestAction)
{
QPointer<PWindow> w = new PWindow(new DBInfoIface(this, d->thumbView->allUrls(),
ApplicationSettings::ImportExport), this);
w->exec();
delete w;
}
if (tool == m_exportBoxAction)
{
QPointer<BOXWindow> w = new BOXWindow(new DBInfoIface(this, d->thumbView->allUrls(),
ApplicationSettings::ImportExport), this);
w->exec();
delete w;
}
else if (tool == m_exportFacebookAction)
{
QPointer<FbWindow> w = new FbWindow(new DBInfoIface(this, d->thumbView->allUrls(),
ApplicationSettings::ImportExport), this);
w->exec();
delete w;
}
else if (tool == m_exportFlickrAction)
{
WSStarter::exportToWebService(WSStarter::Flickr, new DBInfoIface(this, d->thumbView->allUrls(),
ApplicationSettings::ImportExport), this);
}
else if (tool == m_exportGdriveAction)
{
QPointer<GSWindow> w = new GSWindow(new DBInfoIface(this, QList<QUrl>(), ApplicationSettings::ImportExport),
this, QLatin1String("googledriveexport"));
w->exec();
delete w;
}
else if (tool == m_exportGphotoAction)
{
QPointer<GSWindow> w = new GSWindow(new DBInfoIface(this, d->thumbView->allUrls(),
ApplicationSettings::ImportExport),
this, QLatin1String("googlephotoexport"));
w->exec();
delete w;
}
else if (tool == m_exportImageshackAction)
{
QPointer<ImageShackWindow> w = new ImageShackWindow(new DBInfoIface(this, d->thumbView->allUrls(),
ApplicationSettings::ImportExport), this);
w->exec();
delete w;
}
else if (tool == m_exportImgurAction)
{
QPointer<ImgurWindow> w = new ImgurWindow(new DBInfoIface(this, d->thumbView->allUrls(),
ApplicationSettings::ImportExport), this);
w->exec();
delete w;
}
else if (tool == m_exportPiwigoAction)
{
QPointer<PiwigoWindow> w = new PiwigoWindow(new DBInfoIface(this, d->thumbView->allUrls(),
ApplicationSettings::ImportExport), this);
w->exec();
delete w;
}
else if (tool == m_exportRajceAction)
{
QPointer<RajceWindow> w = new RajceWindow(new DBInfoIface(this, d->thumbView->allUrls(),
ApplicationSettings::ImportExport), this);
w->exec();
delete w;
}
else if (tool == m_exportSmugmugAction)
{
QPointer<SmugWindow> w = new SmugWindow(new DBInfoIface(this, d->thumbView->allUrls(),
ApplicationSettings::ImportExport), this);
w->exec();
delete w;
}
else if (tool == m_exportYandexfotkiAction)
{
QPointer<YFWindow> w = new YFWindow(new DBInfoIface(this, d->thumbView->allUrls(),
ApplicationSettings::ImportExport), this);
w->exec();
delete w;
}
else if (tool == m_exportMediawikiAction)
{
QPointer<MediaWikiWindow> w = new MediaWikiWindow(new DBInfoIface(this, d->thumbView->allUrls(),
ApplicationSettings::ImportExport), this);
w->exec();
delete w;
}
#ifdef HAVE_VKONTAKTE
else if (tool == m_exportVkontakteAction)
{
QPointer<VKWindow> w = new VKWindow(new DBInfoIface(this, d->thumbView->allUrls(),
ApplicationSettings::ImportExport), this);
w->exec();
delete w;
}
#endif
#ifdef HAVE_KIO
else if (tool == m_exportFileTransferAction)
{
QPointer<FTExportWindow> w = new FTExportWindow(new DBInfoIface(this, d->thumbView->allUrls(),
ApplicationSettings::ImportExport), this);
w->exec();
delete w;
}
#endif
}
} // namespace Digikam
......@@ -90,27 +90,11 @@
#include "mailwizard.h"
#include "advprintwizard.h"
#include "dmediaserverdlg.h"
#include "dbwindow.h"
#include "odwindow.h"
#include "pwindow.h"
#include "boxwindow.h"
#include "fbwindow.h"
#include "wsstarter.h"
#include "gswindow.h"
#include "imageshackwindow.h"
#include "imgurwindow.h"
#include "piwigowindow.h"
#include "rajcewindow.h"
#include "smugwindow.h"
#include "yfwindow.h"
#include "mediawikiwindow.h"
#ifdef HAVE_VKONTAKTE
# include "vkwindow.h"
#endif
#ifdef HAVE_KIO
# include "ftexportwindow.h"
# include "ftimportwindow.h"
#endif
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment