File indexing completed on 2025-01-19 03:59:20

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2003-01-23
0007  * Description : A widget to display a camera folder.
0008  *
0009  * SPDX-FileCopyrightText: 2003-2005 by Renchi Raju <renchi dot raju at gmail dot com>
0010  * SPDX-FileCopyrightText: 2006-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0011  *
0012  * SPDX-License-Identifier: GPL-2.0-or-later
0013  *
0014  * ============================================================ */
0015 
0016 #ifndef DIGIKAM_CAMERA_FOLDER_ITEM_H
0017 #define DIGIKAM_CAMERA_FOLDER_ITEM_H
0018 
0019 // Qt includes
0020 
0021 #include <QString>
0022 #include <QPixmap>
0023 #include <QTreeWidgetItem>
0024 #include <QIcon>
0025 
0026 namespace Digikam
0027 {
0028 
0029 class CameraFolderItem : public QTreeWidgetItem
0030 {
0031 public:
0032 
0033     CameraFolderItem(QTreeWidget* const parent,
0034                      const QString& name,
0035                      const QIcon &icon = QIcon::fromTheme(QLatin1String("folder")));
0036 
0037     CameraFolderItem(QTreeWidgetItem* const parent,
0038                      const QString& folderName,
0039                      const QString& folderPath,
0040                      const QIcon& icon = QIcon::fromTheme(QLatin1String("folder")));
0041 
0042     ~CameraFolderItem()               override;
0043 
0044     QString folderName()        const;
0045     QString folderPath()        const;
0046     bool    isVirtualFolder()   const;
0047 
0048     void    changeCount(int val);
0049     void    setCount(int val);
0050     int     count()             const;
0051 
0052 private:
0053 
0054     class Private;
0055     Private* const d;
0056 
0057 private:
0058 
0059     Q_DISABLE_COPY(CameraFolderItem)
0060 };
0061 
0062 } // namespace Digikam
0063 
0064 #endif // DIGIKAM_CAMERA_FOLDER_ITEM_H