digiKam
piwigosession.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 : 2014-09-30
7  * Description : a tool to export items to Piwigo web service
8  *
9  * Copyright (C) 2003-2005 by Renchi Raju <renchi dot raju at gmail dot com>
10  * Copyright (C) 2006 by Colin Guthrie <kde at colin dot guthr dot ie>
11  * Copyright (C) 2006-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
12  * Copyright (C) 2008 by Andrea Diamantini <adjam7 at gmail dot com>
13  * Copyright (C) 2010-2014 by Frederic Coiffier <frederic dot coiffier at free dot com>
14  *
15  * This program is free software; you can redistribute it
16  * and/or modify it under the terms of the GNU General
17  * Public License as published by the Free Software Foundation;
18  * either version 2, or (at your option) any later version.
19  *
20  * This program is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23  * GNU General Public License for more details.
24  *
25  * ============================================================ */
26 
27 #ifndef DIGIKAM_PIWIGO_SESSION_H
28 #define DIGIKAM_PIWIGO_SESSION_H
29 
30 // Qt includes
31 
32 #include <QString>
33 
35 {
36 
38 {
39 
40 public:
41 
42  explicit PiwigoSession();
44 
45 public:
46 
47  QString url() const;
48  QString username() const;
49  QString password() const;
50 
51  void setUrl(const QString& url);
52  void setUsername(const QString& username);
53  void setPassword(const QString& password);
54 
55 public:
56 
57  void save();
58 
59 private:
60 
61  void load();
62 
63 private:
64 
65  // Disable
66  PiwigoSession(const PiwigoSession&) = delete;
67  PiwigoSession& operator=(const PiwigoSession&) = delete;
68 
69 private:
70 
71  class Private;
72  Private* const d;
73 };
74 
75 } // namespace DigikamGenericPiwigoPlugin
76 
77 #endif // DIGIKAM_PIWIGO_SESSION_H
Definition: piwigosession.h:38
QString url() const
Definition: piwigosession.cpp:70
void save()
Definition: piwigosession.cpp:110
~PiwigoSession()
Definition: piwigosession.cpp:65
void setUsername(const QString &username)
Definition: piwigosession.cpp:90
QString password() const
Definition: piwigosession.cpp:80
void setPassword(const QString &password)
Definition: piwigosession.cpp:95
QString username() const
Definition: piwigosession.cpp:75
void setUrl(const QString &url)
Definition: piwigosession.cpp:85
PiwigoSession()
Definition: piwigosession.cpp:59
Definition: piwigoitem.h:35