| 1 | /* ============================================================ |
|---|
| 2 | * |
|---|
| 3 | * This file is a part of kipi-plugins project |
|---|
| 4 | * http://www.kipi-plugins.org |
|---|
| 5 | * |
|---|
| 6 | * Date : 2010-01-07 |
|---|
| 7 | * Description : a plugin to export to a remote Piwigo server. |
|---|
| 8 | * |
|---|
| 9 | * Copyright (C) 2003-2005 by Renchi Raju <renchi dot raju at gmail dot com> |
|---|
| 10 | * Copyright (C) 2006 by Colin Guthrie <kde@colin.guthr.ie> |
|---|
| 11 | * Copyright (C) 2006-2009 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 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 GALLERIES_H |
|---|
| 28 | #define GALLERIES_H |
|---|
| 29 | |
|---|
| 30 | // Qt includes |
|---|
| 31 | |
|---|
| 32 | #include <QString> |
|---|
| 33 | |
|---|
| 34 | namespace KWallet |
|---|
| 35 | { |
|---|
| 36 | class Wallet; |
|---|
| 37 | } |
|---|
| 38 | |
|---|
| 39 | namespace KIPIPiwigoExportPlugin |
|---|
| 40 | { |
|---|
| 41 | |
|---|
| 42 | class Piwigo |
|---|
| 43 | { |
|---|
| 44 | |
|---|
| 45 | public: |
|---|
| 46 | |
|---|
| 47 | Piwigo(); |
|---|
| 48 | ~Piwigo(); |
|---|
| 49 | |
|---|
| 50 | QString name() const; |
|---|
| 51 | QString url() const; |
|---|
| 52 | QString username() const; |
|---|
| 53 | QString password() const; |
|---|
| 54 | unsigned int version() const; |
|---|
| 55 | unsigned int galleryId() const; |
|---|
| 56 | |
|---|
| 57 | void setName(const QString& name); |
|---|
| 58 | void setUrl(const QString& url); |
|---|
| 59 | void setUsername(const QString& username); |
|---|
| 60 | void setPassword(const QString& password); |
|---|
| 61 | void setPiwigoId(unsigned int galleryId); |
|---|
| 62 | |
|---|
| 63 | public: |
|---|
| 64 | |
|---|
| 65 | void save(); |
|---|
| 66 | |
|---|
| 67 | private: |
|---|
| 68 | |
|---|
| 69 | void load(); |
|---|
| 70 | |
|---|
| 71 | private: |
|---|
| 72 | |
|---|
| 73 | unsigned int mPiwigoId; |
|---|
| 74 | |
|---|
| 75 | QString mName; |
|---|
| 76 | QString mUrl; |
|---|
| 77 | QString mUsername; |
|---|
| 78 | QString mPassword; |
|---|
| 79 | |
|---|
| 80 | KWallet::Wallet* mpWallet; |
|---|
| 81 | }; |
|---|
| 82 | |
|---|
| 83 | } // namespace KIPIPiwigoExportPlugin |
|---|
| 84 | |
|---|
| 85 | #endif /* GALLERIES_H */ |
|---|