digiKam
camerafolderitem.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 : 2003-01-23
7  * Description : A widget to display a camera folder.
8  *
9  * Copyright (C) 2003-2005 by Renchi Raju <renchi dot raju at gmail dot com>
10  * Copyright (C) 2006-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option)
16  * any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_CAMERA_FOLDER_ITEM_H
26 #define DIGIKAM_CAMERA_FOLDER_ITEM_H
27 
28 // Qt includes
29 
30 #include <QString>
31 #include <QPixmap>
32 #include <QTreeWidgetItem>
33 #include <QIcon>
34 
35 namespace Digikam
36 {
37 
38 class CameraFolderItem : public QTreeWidgetItem
39 {
40 public:
41 
42  CameraFolderItem(QTreeWidget* const parent,
43  const QString& name,
44  const QIcon &icon = QIcon::fromTheme(QLatin1String("folder")));
45 
46  CameraFolderItem(QTreeWidgetItem* const parent,
47  const QString& folderName,
48  const QString& folderPath,
49  const QIcon& icon = QIcon::fromTheme(QLatin1String("folder")));
50 
51  ~CameraFolderItem() override;
52 
53  QString folderName() const;
54  QString folderPath() const;
55  bool isVirtualFolder() const;
56 
57  void changeCount(int val);
58  void setCount(int val);
59  int count() const;
60 
61 private:
62 
63  class Private;
64  Private* const d;
65 
66 private:
67 
68  Q_DISABLE_COPY(CameraFolderItem)
69 };
70 
71 } // namespace Digikam
72 
73 #endif // DIGIKAM_CAMERA_FOLDER_ITEM_H
Definition: camerafolderitem.h:39
void setCount(int val)
Definition: camerafolderitem.cpp:96
bool isVirtualFolder() const
Definition: camerafolderitem.cpp:75
~CameraFolderItem() override
Definition: camerafolderitem.cpp:70
int count() const
Definition: camerafolderitem.cpp:102
void changeCount(int val)
Definition: camerafolderitem.cpp:90
QString folderPath() const
Definition: camerafolderitem.cpp:85
CameraFolderItem(QTreeWidget *const parent, const QString &name, const QIcon &icon=QIcon::fromTheme(QLatin1String("folder")))
Definition: camerafolderitem.cpp:48
QString folderName() const
Definition: camerafolderitem.cpp:80
Definition: datefolderview.cpp:43