File indexing completed on 2025-01-19 03:52:57

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2015-08-07
0007  * Description : a dialog to create a new remote album for export tools
0008  *
0009  * SPDX-FileCopyrightText: 2013      by Pankaj Kumar <me at panks dot me>
0010  * SPDX-FileCopyrightText: 2015      by Shourya Singh Gupta <shouryasgupta at gmail dot com>
0011  * SPDX-FileCopyrightText: 2013-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0012  *
0013  * SPDX-License-Identifier: GPL-2.0-or-later
0014  *
0015  * ============================================================ */
0016 
0017 #include "flickrnewalbumdlg.h"
0018 
0019 // Qt includes
0020 
0021 #include <QFormLayout>
0022 #include <QApplication>
0023 #include <QStyle>
0024 
0025 // Local includes
0026 
0027 #include "digikam_debug.h"
0028 #include "flickritem.h"
0029 
0030 namespace DigikamGenericFlickrPlugin
0031 {
0032 
0033 FlickrNewAlbumDlg::FlickrNewAlbumDlg(QWidget* const parent, const QString& toolName)
0034     : WSNewAlbumDialog(parent, toolName)
0035 {
0036     hideDateTime();
0037     hideLocation();
0038     getMainWidget()->setMinimumSize(350,0);
0039 }
0040 
0041 FlickrNewAlbumDlg::~FlickrNewAlbumDlg()
0042 {
0043 }
0044 
0045 void FlickrNewAlbumDlg::getFolderProperties(FPhotoSet& folder)
0046 {
0047     folder.title       = getTitleEdit()->text();
0048     folder.description = getDescEdit()->toPlainText();
0049 
0050     qCDebug(DIGIKAM_WEBSERVICES_LOG) << "Folder Title "        << folder.title
0051                                      << " Folder Description " << folder.description;
0052 }
0053 
0054 } // namespace DigikamGenericFlickrPlugin
0055 
0056 #include "moc_flickrnewalbumdlg.cpp"