[4770] | 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 PIWIGOITEM_H |
---|
| 28 | #define PIWIGOITEM_H |
---|
| 29 | |
---|
| 30 | // Qt includes |
---|
| 31 | |
---|
| 32 | #include <QString> |
---|
| 33 | |
---|
| 34 | namespace KIPIPiwigoExportPlugin |
---|
| 35 | { |
---|
| 36 | |
---|
| 37 | class GAlbum |
---|
| 38 | { |
---|
| 39 | public: |
---|
| 40 | |
---|
| 41 | GAlbum() { |
---|
| 42 | ref_num = -1; |
---|
| 43 | parent_ref_num = -1; |
---|
| 44 | } |
---|
| 45 | |
---|
| 46 | bool operator<(const GAlbum& rhs) const { |
---|
| 47 | if (parent_ref_num == rhs.parent_ref_num) { |
---|
| 48 | return ref_num < rhs.ref_num; |
---|
| 49 | } |
---|
| 50 | return parent_ref_num < rhs.parent_ref_num; |
---|
| 51 | } |
---|
| 52 | |
---|
| 53 | int ref_num; // album reference number |
---|
| 54 | int parent_ref_num; // parent's album reference number |
---|
| 55 | |
---|
[4874] | 56 | QString name; // Album name |
---|
[4770] | 57 | QString baseurl; // album partial (gallery) URL |
---|
| 58 | }; |
---|
| 59 | |
---|
| 60 | } // namespace KIPIPiwigoExportPlugin |
---|
| 61 | |
---|
| 62 | #endif /* PIWIGOITEM_H */ |
---|