1
/* ============================================================
3
* This file is a part of digiKam project
4
* http://www.digikam.org
7
* Description : camera icon view item
9
* Copyright (C) 2004-2005 by Renchi Raju <renchi@pooh.tam.uiuc.edu>
10
* Copyright (C) 2006-2012 by Gilles Caulier <caulier dot gilles at gmail dot com>
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)
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.
23
* ============================================================ */
25
#ifndef CAMERAICONITEM_H
26
#define CAMERAICONITEM_H
42
class CameraIconItem : public IconItem
48
CameraIconItem(IconGroupItem* parent, const CamItemInfo& itemInfo);
51
void setDownloadName(const QString& downloadName);
52
void setDownloaded(int status);
53
bool isDownloaded() const;
55
void setItemInfo(const CamItemInfo& itemInfo);
56
CamItemInfo itemInfo() const;
58
/** Lock on/off item (to prevent deletetion by error) */
61
// reimplemented from IconItem
62
virtual QRect clickToOpenRect();
66
virtual void paintItem(QPainter* p);
70
void calcRect(const QString& itemName, const QString& newName, const QPixmap& thumb);
74
void slotProgressTimerDone();
78
class CameraIconItemPriv;
79
CameraIconItemPriv* const d;
82
} // namespace Digikam
84
#endif /* CAMERAICONITEM_H */