26 #ifndef DIGIKAM_ALBUM_H
27 #define DIGIKAM_ALBUM_H
82 Album* parent()
const;
87 Album* firstChild()
const;
92 Album* lastChild()
const;
111 Album* childAtRow(
int row)
const;
116 AlbumList childAlbums(
bool recursive =
false);
121 QList<int> childAlbumIds(
bool recursive =
false);
157 int globalID()
const;
162 int childCount()
const;
167 int rowFromAlbum()
const;
172 QString title()
const;
190 bool isAncestorOf(
Album*
const album)
const;
196 bool isUsedByLabelsTree()
const;
202 bool isTrashAlbum()
const;
233 void setExtraData(
const void*
const key,
void*
const value);
242 void removeExtraData(
const void*
const key);
251 void* extraData(
const void*
const key)
const;
259 void setUsedByLabelsTree(
bool isUsed);
267 static int globalID(
Type type,
int id);
295 void setTitle(
const QString& title);
304 void setParent(
Album*
const parent);
313 void insertChild(
Album*
const child);
322 void removeChild(
Album*
const child);
329 Q_DISABLE_COPY(
Album)
334 bool m_usedByLabelsTree;
341 QMap<const void*, void*> m_extraMap;
342 QVector<Album*> m_childCache;
361 explicit PAlbum(
const QString& title);
364 PAlbum(
int albumRoot,
const QString& label);
367 PAlbum(
int albumRoot,
const QString& parentPath,
const QString& title,
int id);
370 PAlbum(
const QString& parentPath,
int albumRoot);
373 void setCaption(
const QString& caption);
374 void setCategory(
const QString& category);
375 void setDate(
const QDate& date);
377 QString albumRootPath()
const;
378 QString albumRootLabel()
const;
379 int albumRootId()
const;
380 QString caption()
const;
381 QString category()
const;
383 QString albumPath()
const;
384 QString prettyUrl()
const;
385 QString folderPath()
const;
387 QUrl fileUrl()
const;
388 qlonglong iconId()
const;
389 bool isAlbumRoot()
const;
397 static int m_uniqueTrashId;
399 bool m_isAlbumRootAlbum;
404 QString m_parentPath;
423 TAlbum(
const QString& title,
int id,
bool root=
false);
431 QString tagPath(
bool leadingSlash =
true)
const;
432 QString standardIconName()
const;
434 QString prettyUrl()
const;
435 QString icon()
const;
436 qlonglong iconId()
const;
439 bool isInternalTag()
const;
440 bool hasProperty(
const QString& key)
const;
441 QString property(
const QString& key)
const;
442 QMap<QString, QString> properties()
const;
471 explicit DAlbum(
const QDate& date,
bool root=
false, Range range=Month);
480 static int m_uniqueID;
496 SAlbum(
const QString& title,
int id,
bool root=
false);
500 QString query()
const;
502 bool isNormalSearch()
const;
503 bool isAdvancedSearch()
const;
504 bool isKeywordSearch()
const;
505 bool isTimelineSearch()
const;
506 bool isHaarSearch()
const;
507 bool isMapSearch()
const;
508 bool isDuplicatesSearch()
const;
515 bool isTemporarySearch()
const;
517 QString displayTitle()
const;
580 Album* current()
const;
Definition: albummanager.h:73
Abstract base class for all album types.
Definition: album.h:67
Type
Definition: album.h:71
@ DATE
A date album type.
Definition: album.h:74
@ SEARCH
A search album type.
Definition: album.h:75
@ TAG
A tag album type.
Definition: album.h:73
virtual CoreDbUrl databaseUrl() const =0
Definition: coredburl.h:43
Range
Definition: album.h:464
qulonglong value
Definition: itemviewutilities.cpp:592
@ Album
Definition: coredbfields.h:58
HaarSearchType
Definition: coredbconstants.h:72
@ HaarImageSearch
Definition: coredbconstants.h:73
Type
Definition: coredbconstants.h:60
Definition: datefolderview.cpp:43
QList< Album * > AlbumList
Definition: album.h:50
PointTransformAffine operator*(const PointTransformAffine &lhs, const PointTransformAffine &rhs)
Definition: pointtransformaffine.cpp:86
bool operator==(const SearchTextSettings &a, const SearchTextSettings &b)
Definition: searchtextbar.cpp:49
Type
Definition: gpsitemcontainer.h:45