File indexing completed on 2025-01-05 03:53:40
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2014-09-30 0007 * Description : a tool to export items to Piwigo web service 0008 * 0009 * SPDX-FileCopyrightText: 2003-2005 by Renchi Raju <renchi dot raju at gmail dot com> 0010 * SPDX-FileCopyrightText: 2006 by Colin Guthrie <kde at colin dot guthr dot ie> 0011 * SPDX-FileCopyrightText: 2006-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0012 * SPDX-FileCopyrightText: 2008 by Andrea Diamantini <adjam7 at gmail dot com> 0013 * SPDX-FileCopyrightText: 2010-2014 by Frederic Coiffier <frederic dot coiffier at free dot com> 0014 * 0015 * SPDX-License-Identifier: GPL-2.0-or-later 0016 * 0017 * ============================================================ */ 0018 0019 #ifndef DIGIKAM_PIWIGO_ITEM_H 0020 #define DIGIKAM_PIWIGO_ITEM_H 0021 0022 // Qt includes 0023 0024 #include <QString> 0025 0026 namespace DigikamGenericPiwigoPlugin 0027 { 0028 0029 class PiwigoAlbum 0030 { 0031 public: 0032 0033 explicit PiwigoAlbum() 0034 : m_refNum (-1), 0035 m_parentRefNum(-1) 0036 { 0037 } 0038 0039 bool operator<(const PiwigoAlbum& rhs) const 0040 { 0041 if (m_parentRefNum == rhs.m_parentRefNum) 0042 { 0043 return (m_refNum < rhs.m_refNum); 0044 } 0045 0046 return (m_parentRefNum < rhs.m_parentRefNum); 0047 } 0048 0049 public: 0050 0051 int m_refNum; ///< album reference number 0052 int m_parentRefNum; ///< parent's album reference number 0053 0054 QString m_name; ///< Album name 0055 }; 0056 0057 } // namespace DigikamGenericPiwigoPlugin 0058 0059 #endif // DIGIKAM_PIWIGO_ITEM_H