Commit 557a7078 authored by Maik Qualmann's avatar Maik Qualmann
Browse files

showFoto GUI export tools use a new web service starter

BUGS: 397972
FIXED-IN: 6.0.0
parent 3e901c5e
......@@ -84,116 +84,13 @@ void ShowFoto::slotMediaServer()
void ShowFoto::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 DMetaInfoIface(this, d->thumbBar->urls()), this);
w->exec();
delete w;
WSStarter::exportToWebService(tool, new DMetaInfoIface(this, d->thumbBar->urls()), this);
}
if (tool == m_exportOnedriveAction)
{
QPointer<ODWindow> w = new ODWindow(new DMetaInfoIface(this, d->thumbBar->urls()), this);
w->exec();
delete w;
}
if (tool == m_exportPinterestAction)
{
QPointer<PWindow> w = new PWindow(new DMetaInfoIface(this, d->thumbBar->urls()), this);
w->exec();
delete w;
}
if (tool == m_exportBoxAction)
{
QPointer<BOXWindow> w = new BOXWindow(new DMetaInfoIface(this, d->thumbBar->urls()), this);
w->exec();
delete w;
}
else if (tool == m_exportFacebookAction)
{
QPointer<FbWindow> w = new FbWindow(new DMetaInfoIface(this, d->thumbBar->urls()), this);
w->exec();
delete w;
}
else if (tool == m_exportFlickrAction)
{
WSStarter::exportToWebService(WSStarter::Flickr, new DMetaInfoIface(this, d->thumbBar->urls()), this);
}
else if (tool == m_exportGdriveAction)
{
QPointer<GSWindow> w = new GSWindow(new DMetaInfoIface(this, d->thumbBar->urls()),
this, QLatin1String("googledriveexport"));
w->exec();
delete w;
}
else if (tool == m_exportGphotoAction)
{
QPointer<GSWindow> w = new GSWindow(new DMetaInfoIface(this, d->thumbBar->urls()),
this, QLatin1String("googlephotoexport"));
w->exec();
delete w;
}
else if (tool == m_exportImageshackAction)
{
QPointer<ImageShackWindow> w = new ImageShackWindow(new DMetaInfoIface(this, d->thumbBar->urls()), this);
w->exec();
delete w;
}
else if (tool == m_exportImgurAction)
{
QPointer<ImgurWindow> w = new ImgurWindow(new DMetaInfoIface(this, d->thumbBar->urls()), this);
w->exec();
delete w;
}
else if (tool == m_exportPiwigoAction)
{
QPointer<PiwigoWindow> w = new PiwigoWindow(new DMetaInfoIface(this, d->thumbBar->urls()), this);
w->exec();
delete w;
}
else if (tool == m_exportRajceAction)
{
QPointer<RajceWindow> w = new RajceWindow(new DMetaInfoIface(this, d->thumbBar->urls()), this);
w->exec();
delete w;
}
else if (tool == m_exportSmugmugAction)
{
QPointer<SmugWindow> w = new SmugWindow(new DMetaInfoIface(this, d->thumbBar->urls()), this);
w->exec();
delete w;
}
else if (tool == m_exportYandexfotkiAction)
{
QPointer<YFWindow> w = new YFWindow(new DMetaInfoIface(this, d->thumbBar->urls()), this);
w->exec();
delete w;
}
else if (tool == m_exportMediawikiAction)
{
QPointer<MediaWikiWindow> w = new MediaWikiWindow(new DMetaInfoIface(this, d->thumbBar->urls()), this);
w->exec();
delete w;
}
#ifdef HAVE_VKONTAKTE
else if (tool == m_exportVkontakteAction)
{
QPointer<VKWindow> w = new VKWindow(new DMetaInfoIface(this, d->thumbBar->urls()), this);
w->exec();
delete w;
}
#endif
#ifdef HAVE_KIO
else if (tool == m_exportFileTransferAction)
{
QPointer<FTExportWindow> w = new FTExportWindow(new DMetaInfoIface(this, d->thumbBar->urls()), this);
w->exec();
delete w;
}
#endif
}
} // namespace ShowFoto
......@@ -107,27 +107,11 @@
#include "advprintwizard.h"
#include "dmediaservermngr.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