digiKam
jalbumsettings.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2006-04-04
7  * Description : a tool to generate jAlbum image galleries
8  *
9  * Copyright (C) 2013-2019 by Andrew Goodbody <ajg zero two at elfringham dot co dot uk>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * ============================================================ */
22 
23 #ifndef DIGIKAM_JALBUM_SETTINGS_H
24 #define DIGIKAM_JALBUM_SETTINGS_H
25 
26 // Qt includes
27 
28 #include <QList>
29 #include <QUrl>
30 #include <QDebug>
31 
32 // Local includes
33 
34 #include "dinfointerface.h"
35 
36 using namespace Digikam;
37 
38 class KConfigGroup;
39 
41 {
42 
48 {
49 public:
50 
52  {
53  ALBUMS = 0,
54  IMAGES
55  };
56 
57 public:
58 
59  explicit JAlbumSettings(DInfoInterface* const iface = nullptr);
60  ~JAlbumSettings();
61 
62  // Read and write settings in config file between sessions.
63  void readSettings(KConfigGroup& group);
64  void writeSettings(KConfigGroup& group);
65 
66 public:
67 
68  QString m_destPath;
69  QString m_jalbumPath; // jAlbum java archive path.
70  QString m_javaPath; // Java executable path.
71  QString m_imageSelectionTitle; // Jalbum title to use for JAlbumSettings::ImageGetOption::IMAGES selection.
72 
73  ImageGetOption m_getOption; // Type of image selection (albums or images list).
74 
75  DInfoInterface::DAlbumIDs m_albumList; // Albums list for ImageGetOption::ALBUMS selection.
76 
77  QList<QUrl> m_imageList; // Images list for ImageGetOption::IMAGES selection.
78 
79  DInfoInterface* m_iface; // Interface to handle items information.
80 };
81 
83 QDebug operator<<(QDebug dbg, const JAlbumSettings& t);
84 
85 } // namespace DigikamGenericJAlbumPlugin
86 
87 #endif // DIGIKAM_JALBUM_SETTINGS_H
Definition: jalbumsettings.h:48
ImageGetOption m_getOption
Definition: jalbumsettings.h:73
QList< QUrl > m_imageList
Definition: jalbumsettings.h:77
DInfoInterface::DAlbumIDs m_albumList
Definition: jalbumsettings.h:75
QString m_jalbumPath
Definition: jalbumsettings.h:69
QString m_destPath
Definition: jalbumsettings.h:68
DInfoInterface * m_iface
Definition: jalbumsettings.h:79
QString m_imageSelectionTitle
Definition: jalbumsettings.h:71
ImageGetOption
Definition: jalbumsettings.h:52
QString m_javaPath
Definition: jalbumsettings.h:70
Definition: dinfointerface.h:56
Definition: jalbumgenerator.cpp:49
Definition: datefolderview.cpp:43
QDebug operator<<(QDebug dbg, const DbEngineParameters &p)
Definition: dbengineparameters.cpp:863