File indexing completed on 2025-01-05 03:53:40

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2014-09-30
0007  * Description : a tool to export items to Piwigo web service
0008  *
0009  * SPDX-FileCopyrightText: 2003-2005 by Renchi Raju <renchi dot raju at gmail dot com>
0010  * SPDX-FileCopyrightText: 2006      by Colin Guthrie <kde at colin dot guthr dot ie>
0011  * SPDX-FileCopyrightText: 2006-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0012  * SPDX-FileCopyrightText: 2008      by Andrea Diamantini <adjam7 at gmail dot com>
0013  * SPDX-FileCopyrightText: 2010-2014 by Frederic Coiffier <frederic dot coiffier at free dot com>
0014  *
0015  * SPDX-License-Identifier: GPL-2.0-or-later
0016  *
0017  * ============================================================ */
0018 
0019 #ifndef DIGIKAM_PIWIGO_SESSION_H
0020 #define DIGIKAM_PIWIGO_SESSION_H
0021 
0022 // Qt includes
0023 
0024 #include <QString>
0025 
0026 namespace DigikamGenericPiwigoPlugin
0027 {
0028 
0029 class PiwigoSession
0030 {
0031 
0032 public:
0033 
0034     explicit PiwigoSession();
0035     ~PiwigoSession();
0036 
0037 public:
0038 
0039     QString url()      const;
0040     QString username() const;
0041     QString password() const;
0042 
0043     void setUrl(const QString& url);
0044     void setUsername(const QString& username);
0045     void setPassword(const QString& password);
0046 
0047 public:
0048 
0049     void save();
0050 
0051 private:
0052 
0053     void load();
0054 
0055 private:
0056 
0057     // Disable
0058     PiwigoSession(const PiwigoSession&)            = delete;
0059     PiwigoSession& operator=(const PiwigoSession&) = delete;
0060 
0061 private:
0062 
0063     class Private;
0064     Private* const d;
0065 };
0066 
0067 } // namespace DigikamGenericPiwigoPlugin
0068 
0069 #endif // DIGIKAM_PIWIGO_SESSION_H