digiKam
piwigoitem.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_ITEM_H
28 #define DIGIKAM_PIWIGO_ITEM_H
29 
30 // Qt includes
31 
32 #include <QString>
33 
35 {
36 
38 {
39 public:
40 
41  explicit PiwigoAlbum()
42  : m_refNum (-1),
43  m_parentRefNum(-1)
44  {
45  }
46 
47  bool operator<(const PiwigoAlbum& rhs) const
48  {
49  if (m_parentRefNum == rhs.m_parentRefNum)
50  {
51  return (m_refNum < rhs.m_refNum);
52  }
53 
54  return (m_parentRefNum < rhs.m_parentRefNum);
55  }
56 
57 public:
58 
59  int m_refNum;
61 
62  QString m_name;
63 };
64 
65 } // namespace DigikamGenericPiwigoPlugin
66 
67 #endif // DIGIKAM_PIWIGO_ITEM_H
Definition: piwigoitem.h:38
int m_parentRefNum
parent's album reference number
Definition: piwigoitem.h:60
int m_refNum
album reference number
Definition: piwigoitem.h:59
QString m_name
Album name.
Definition: piwigoitem.h:62
bool operator<(const PiwigoAlbum &rhs) const
Definition: piwigoitem.h:47
PiwigoAlbum()
Definition: piwigoitem.h:41
Definition: piwigoitem.h:35