diff --git a/core/libs/models/imagealbummodel.h b/core/libs/models/imagealbummodel.h index 453e954168..4aed30fff0 100644 --- a/core/libs/models/imagealbummodel.h +++ b/core/libs/models/imagealbummodel.h @@ -1,114 +1,114 @@ /* ============================================================ * * This file is a part of digiKam project * http://www.digikam.org * * Date : 2009-03-08 * Description : Qt item model for database entries, listing done with ioslave * * Copyright (C) 2009-2011 by Marcel Wiesweg * Copyright (C) 2015 by Mohamed_Anwer * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #ifndef DIGIKAM_IMAGE_ALBUM_MODEL_H #define DIGIKAM_IMAGE_ALBUM_MODEL_H // Local includes #include "imagethumbnailmodel.h" #include "album.h" namespace Digikam { class ImageChangeset; class CollectionImageChangeset; class SearchChangeset; class Album; class ImageAlbumModel : public ImageThumbnailModel { Q_OBJECT public: explicit ImageAlbumModel(QObject* const parent = 0); ~ImageAlbumModel(); QList currentAlbums() const; bool hasScheduledRefresh() const; bool isRecursingAlbums() const; bool isRecursingTags() const; bool isListingOnlyAvailableImages() const; public Q_SLOTS: /** * Call this method to populate the model with data from the given album. * If called with 0, the model will be empty. * Opening the same album again is a no-op. */ void openAlbum(const QList& albums); /** Reloads the current album */ void refresh(); void setRecurseAlbums(bool recursiveListing); void setRecurseTags(bool recursiveListing); void setListOnlyAvailableImages(bool onlyAvailable); void setSpecialTagListing(const QString& specialListing); //Q_SIGNALS: //void listedAlbumChanged(QList album); protected Q_SLOTS: void scheduleRefresh(); void scheduleIncrementalRefresh(); void slotResult(); - void slotData(const QList &records); + void slotData(const QList& records); void slotNextRefresh(); void slotNextIncrementalRefresh(); void slotCollectionImageChange(const CollectionImageChangeset& changeset); void slotSearchChange(const SearchChangeset& changeset); void slotAlbumAdded(Album* album); void slotAlbumDeleted(Album* album); void slotAlbumRenamed(Album* album); void slotAlbumsCleared(); void incrementalRefresh(); virtual void slotImageChange(const ImageChangeset& changeset); virtual void slotImageTagChange(const ImageTagChangeset& changeset); protected: void startListJob(const QList& albums); private: class Private; Private* const d; }; } // namespace Digikam #endif // DIGIKAM_IMAGE_ALBUM_MODEL_H