source: extensions/digikam_export/piwigoexport/piwigoitem.h @ 4770

Last change on this file since 4770 was 4770, checked in by fcoiffie, 11 years ago

Premiere version du plugin Digikam piwigoexport

  • Connexion
  • Liste des categories
  • Upload des photos
File size: 2.5 KB
Line 
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
34namespace KIPIPiwigoExportPlugin
35{
36
37class GPhoto
38{
39public:
40
41    GPhoto() {
42        ref_num = -1;
43    }
44
45    int     ref_num;
46    int     album_num;
47
48    QString name;
49    QString caption;
50    QString thumbName;
51    QString albumURL;
52};
53
54// ------------------------------------------------------------------------
55
56class GAlbum
57{
58public:
59
60    GAlbum() {
61        ref_num        = -1;
62        parent_ref_num = -1;
63    }
64
65    bool operator<(const GAlbum& rhs) const {
66        if (parent_ref_num == rhs.parent_ref_num) {
67            return ref_num < rhs.ref_num;
68        }
69        return parent_ref_num < rhs.parent_ref_num;
70    }
71
72    // permissions
73    int                ref_num;         // album reference number
74    int                parent_ref_num;  // parent's album reference number
75
76    QString            name;            // ?
77    /*QString            parentName;      // ?
78    QString            title;           // album title*/
79    //QString            summary;         // album summary
80    QString            baseurl;         // album partial (gallery) URL
81};
82
83//category id="3" nb_images="80" total_nb_images="80" date_last="2010-01-03 22:06:29" max_date_last="2010-01-03 22:06:29" nb_categories="0" url="http://fcoiffie.free.fr/piwigo-2.0.7/index.php?/category/3"
84} // namespace KIPIPiwigoExportPlugin
85
86#endif /* PIWIGOITEM_H */
Note: See TracBrowser for help on using the repository browser.