digiKam
dmodelfactory.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2009-12-05
7  * Description : factory of basic models used for views in digikam
8  *
9  * Copyright (C) 2009-2010 by Johannes Wienke <languitar at semipol dot de>
10  * Copyright (C) 2010 by Andi Clemens <andi dot clemens at gmail dot com>
11  *
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)
16  * any later version.
17  *
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.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_DMODEL_FACTORY_H
26 #define DIGIKAM_DMODEL_FACTORY_H
27 
28 // Qt includes
29 
30 #include <QObject>
31 
32 // Local includes
33 
34 #include "abstractalbummodel.h"
35 #include "albumfiltermodel.h"
36 #include "albummodel.h"
37 #include "itemversionsmodel.h"
38 
39 namespace Digikam
40 {
41 
48 class DModelFactory: public QObject
49 {
50  Q_OBJECT
51 
52 public:
53 
54  DModelFactory();
55  ~DModelFactory() override;
56 
57  TagModel* getTagModel() const;
58  TagModel* getTagFaceModel() const;
59  TagModel* getTagFilterModel() const;
60 
61  AlbumModel* getAlbumModel() const;
62  SearchModel* getSearchModel() const;
65 
66 private Q_SLOTS:
67 
68  void slotApplicationSettingsChanged();
69 
70 private:
71 
72  // Disable
73  explicit DModelFactory(QObject*) = delete;
74 
75 private:
76 
77  class Private;
78  Private* const d;
79 };
80 
81 } // namespace Digikam
82 
83 #endif // DIGIKAM_DMODEL_FACTORY_H
Definition: albummodel.h:40
Definition: dmodelfactory.h:49
SearchModel * getSearchModel() const
Definition: dmodelfactory.cpp:119
TagModel * getTagFilterModel() const
Definition: dmodelfactory.cpp:109
AlbumModel * getAlbumModel() const
Definition: dmodelfactory.cpp:114
TagModel * getTagModel() const
Definition: dmodelfactory.cpp:99
TagModel * getTagFaceModel() const
Definition: dmodelfactory.cpp:104
DateAlbumModel * getDateAlbumModel() const
Definition: dmodelfactory.cpp:124
ItemVersionsModel * getItemVersionsModel() const
Definition: dmodelfactory.cpp:129
~DModelFactory() override
Definition: dmodelfactory.cpp:85
DModelFactory()
Definition: dmodelfactory.cpp:63
Definition: albummodel.h:145
Definition: itemversionsmodel.h:40
Definition: albummodel.h:95
Definition: albummodel.h:63
Definition: datefolderview.cpp:43