File indexing completed on 2024-04-28 15:39:58
0001 // SPDX-FileCopyrightText: 2003-2019 The KPhotoAlbum Development Team 0002 // SPDX-FileCopyrightText: 2021 Johannes Zarl-Zierl <johannes@zarl-zierl.at> 0003 // 0004 // SPDX-License-Identifier: GPL-2.0-or-later 0005 0006 #ifndef IMAGEINFOLIST_H 0007 #define IMAGEINFOLIST_H 0008 #include "ImageInfo.h" 0009 #include "ImageInfoPtr.h" 0010 0011 #include <QList> 0012 0013 namespace DB 0014 { 0015 class FileNameList; 0016 0017 class ImageInfoList : public QList<ImageInfoPtr> 0018 { 0019 public: 0020 void sortAndMergeBackIn(ImageInfoList &subListToSort); 0021 ImageInfoList sort() const; 0022 void appendList(ImageInfoList &other); 0023 void printItems(); 0024 bool isSorted(); 0025 void mergeIn(ImageInfoList list); 0026 void remove(const ImageInfoPtr &info); 0027 DB::FileNameList files(MediaType type = anyMediaType) const; 0028 }; 0029 0030 typedef QList<ImageInfoPtr>::Iterator ImageInfoListIterator; 0031 typedef QList<ImageInfoPtr>::ConstIterator ImageInfoListConstIterator; 0032 0033 } 0034 0035 #endif /* IMAGEINFOLIST_H */ 0036 0037 // vi:expandtab:tabstop=4 shiftwidth=4: