Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
digiKam
Commits
557a7078
Commit
557a7078
authored
Sep 02, 2018
by
Maik Qualmann
Browse files
showFoto GUI export tools use a new web service starter
BUGS: 397972
FIXED-IN: 6.0.0
parent
3e901c5e
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/showfoto/main/showfoto_export.cpp
View file @
557a7078
...
...
@@ -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_exportDropboxActio
n
)
if
(
tool
!
=
WSStarter
::
Unknow
n
)
{
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
core/showfoto/main/showfoto_p.h
View file @
557a7078
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment