digikam
Digikam::AbstractAlbumModel Class Reference
#include <albummodel.h>

Detailed Description
Definition at line 41 of file albummodel.h.
Public Types | |
| enum | AlbumDataRole { AlbumTypeRole = Qt::UserRole, AlbumPointerRole = Qt::UserRole + 1 } |
| enum | RootAlbumBehavior { IncludeRootAlbum, IgnoreRootAlbum } |
Public Member Functions | |
| AbstractAlbumModel (Album::Type albumType, Album *rootAlbum, RootAlbumBehavior rootBehavior=IncludeRootAlbum, QObject *parent=0) | |
| virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const |
| virtual QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
| virtual bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) |
| virtual Qt::ItemFlags | flags (const QModelIndex &index) const |
| virtual bool | hasChildren (const QModelIndex &parent=QModelIndex()) const |
| virtual QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
| virtual QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
| virtual QMimeData * | mimeData (const QModelIndexList &indexes) const |
| virtual QStringList | mimeTypes () const |
| virtual QModelIndex | parent (const QModelIndex &index) const |
| virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| virtual bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
| virtual Qt::DropActions | supportedDropActions () const |
| ~AbstractAlbumModel () | |
Protected Slots | |
| void | slotAlbumAboutToBeAdded (Album *album, Album *parent, Album *prev) |
| void | slotAlbumAboutToBeDeleted (Album *album) |
| void | slotAlbumAdded (Album *) |
| void | slotAlbumHasBeenDeleted (void *) |
| void | slotAlbumIconChanged (Album *album) |
| void | slotAlbumRenamed (Album *album) |
| void | slotAlbumsCleared () |
Protected Member Functions | |
| Album * | albumForIndex (const QModelIndex &index) const |
| virtual QString | columnHeader () const |
| virtual QVariant | decorationRole (Album *a) const |
| virtual bool | filterAlbum (Album *album) const |
| QModelIndex | indexForAlbum (Album *album) const |
| virtual Qt::ItemFlags | itemFlags (Album *album) const |
| Album * | rootAlbum () const |
Member Enumeration Documentation
- Enumerator:
-
AlbumTypeRole Returns the Album::Type of the associated album. AlbumPointerRole Returns a pointer to the associated Album object.
Definition at line 63 of file albummodel.h.
AbstractAlbumModel is the abstract base class for all models that present Album objects as managed by AlbumManager.
You will want to create an instance of the base classes.
- Enumerator:
Definition at line 53 of file albummodel.h.
Constructor & Destructor Documentation
| Digikam::AbstractAlbumModel::AbstractAlbumModel | ( | Album::Type | albumType, | |
| Album * | rootAlbum, | |||
| RootAlbumBehavior | rootBehavior = IncludeRootAlbum, |
|||
| QObject * | parent = 0 | |||
| ) |
Create an AbstractAlbumModel object for albums with the given type.
Pass the root album if it is already available. Do not use this class directly, but one of the subclasses.
Definition at line 109 of file albummodel.cpp.
| Digikam::AbstractAlbumModel::~AbstractAlbumModel | ( | ) |
Definition at line 144 of file albummodel.cpp.
Member Function Documentation
| Album * Digikam::AbstractAlbumModel::albumForIndex | ( | const QModelIndex & | index | ) | const [protected] |
Definition at line 326 of file albummodel.cpp.
| int Digikam::AbstractAlbumModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const [virtual] |
Definition at line 200 of file albummodel.cpp.
| QString Digikam::AbstractAlbumModel::columnHeader | ( | ) | const [protected, virtual] |
Reimplemented in Digikam::AbstractSpecificAlbumModel.
Definition at line 341 of file albummodel.cpp.
| QVariant Digikam::AbstractAlbumModel::data | ( | const QModelIndex & | index, | |
| int | role = Qt::DisplayRole | |||
| ) | const [virtual] |
Reimplemented in Digikam::AbstractCheckableAlbumModel.
Definition at line 149 of file albummodel.cpp.
Reimplemented in Digikam::AbstractSpecificAlbumModel, Digikam::AlbumModel, and Digikam::TagModel.
Definition at line 336 of file albummodel.cpp.
| bool Digikam::AbstractAlbumModel::dropMimeData | ( | const QMimeData * | data, | |
| Qt::DropAction | action, | |||
| int | row, | |||
| int | column, | |||
| const QModelIndex & | parent | |||
| ) | [virtual] |
| bool Digikam::AbstractAlbumModel::filterAlbum | ( | Album * | album | ) | const [protected, virtual] |
Definition at line 351 of file albummodel.cpp.
| Qt::ItemFlags Digikam::AbstractAlbumModel::flags | ( | const QModelIndex & | index | ) | const [virtual] |
Reimplemented in Digikam::AbstractCheckableAlbumModel.
Definition at line 205 of file albummodel.cpp.
| bool Digikam::AbstractAlbumModel::hasChildren | ( | const QModelIndex & | parent = QModelIndex() |
) | const [virtual] |
Definition at line 214 of file albummodel.cpp.
| QVariant Digikam::AbstractAlbumModel::headerData | ( | int | section, | |
| Qt::Orientation | orientation, | |||
| int | role = Qt::DisplayRole | |||
| ) | const [virtual] |
Definition at line 173 of file albummodel.cpp.
| QModelIndex Digikam::AbstractAlbumModel::index | ( | int | row, | |
| int | column, | |||
| const QModelIndex & | parent = QModelIndex() | |||
| ) | const [virtual] |
Definition at line 233 of file albummodel.cpp.
| QModelIndex Digikam::AbstractAlbumModel::indexForAlbum | ( | Album * | album | ) | const [protected] |
Definition at line 305 of file albummodel.cpp.
| Qt::ItemFlags Digikam::AbstractAlbumModel::itemFlags | ( | Album * | album | ) | const [protected, virtual] |
Definition at line 346 of file albummodel.cpp.
| QMimeData * Digikam::AbstractAlbumModel::mimeData | ( | const QModelIndexList & | indexes | ) | const [virtual] |
Definition at line 299 of file albummodel.cpp.
| QStringList Digikam::AbstractAlbumModel::mimeTypes | ( | ) | const [virtual] |
Definition at line 287 of file albummodel.cpp.
| QModelIndex Digikam::AbstractAlbumModel::parent | ( | const QModelIndex & | index | ) | const [virtual] |
Definition at line 265 of file albummodel.cpp.
| Album * Digikam::AbstractAlbumModel::rootAlbum | ( | ) | const [protected] |
Definition at line 331 of file albummodel.cpp.
| int Digikam::AbstractAlbumModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const [virtual] |
Definition at line 181 of file albummodel.cpp.
| bool Digikam::AbstractAlbumModel::setData | ( | const QModelIndex & | index, | |
| const QVariant & | value, | |||
| int | role = Qt::EditRole | |||
| ) | [virtual] |
Reimplemented from QAbstractItemModel.
Reimplemented in Digikam::AbstractCheckableAlbumModel.
Definition at line 275 of file albummodel.cpp.
| void Digikam::AbstractAlbumModel::slotAlbumAboutToBeAdded | ( | Album * | album, | |
| Album * | parent, | |||
| Album * | prev | |||
| ) | [protected, slot] |
Definition at line 356 of file albummodel.cpp.
| void Digikam::AbstractAlbumModel::slotAlbumAboutToBeDeleted | ( | Album * | album | ) | [protected, slot] |
Definition at line 383 of file albummodel.cpp.
| void Digikam::AbstractAlbumModel::slotAlbumAdded | ( | Album * | album | ) | [protected, slot] |
Definition at line 374 of file albummodel.cpp.
| void Digikam::AbstractAlbumModel::slotAlbumHasBeenDeleted | ( | void * | p | ) | [protected, slot] |
Definition at line 397 of file albummodel.cpp.
| void Digikam::AbstractAlbumModel::slotAlbumIconChanged | ( | Album * | album | ) | [protected, slot] |
Definition at line 411 of file albummodel.cpp.
| void Digikam::AbstractAlbumModel::slotAlbumRenamed | ( | Album * | album | ) | [protected, slot] |
Definition at line 417 of file albummodel.cpp.
| void Digikam::AbstractAlbumModel::slotAlbumsCleared | ( | ) | [protected, slot] |
Definition at line 406 of file albummodel.cpp.
| Qt::DropActions Digikam::AbstractAlbumModel::supportedDropActions | ( | ) | const [virtual] |
Definition at line 281 of file albummodel.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference