digiKam
dimgloaderobserver.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 : 2006-01-03
7  * Description : DImgLoader observer interface
8  *
9  * Copyright (C) 2006-2012 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_DIMG_LOADER_OBSERVER_H
25 #define DIGIKAM_DIMG_LOADER_OBSERVER_H
26 
27 // Qt includes
28 
29 #include <QtGlobal>
30 
31 // Local includes
32 
33 #include "digikam_export.h"
34 
35 namespace Digikam
36 {
37 
38 class DImg;
39 
40 class DIGIKAM_EXPORT DImgLoaderObserver
41 {
42 
43 public:
44 
45  DImgLoaderObserver() = default;
46  virtual ~DImgLoaderObserver() = default;
47 
51  virtual void progressInfo(float progress)
52  {
53  Q_UNUSED(progress);
54  };
55 
59  virtual bool continueQuery()
60  {
61  return true;
62  };
63 
70  virtual float granularity()
71  {
72  return 1.0F;
73  };
74 
75 private:
76 
77  Q_DISABLE_COPY(DImgLoaderObserver)
78 };
79 
80 } // namespace Digikam
81 
82 #endif // DIGIKAM_DIMG_LOADER_OBSERVER_H
Definition: dimgloaderobserver.h:41
virtual void progressInfo(float progress)
Definition: dimgloaderobserver.h:51
virtual bool continueQuery()
Definition: dimgloaderobserver.h:59
virtual float granularity()
Definition: dimgloaderobserver.h:70
virtual ~DImgLoaderObserver()=default
Definition: datefolderview.cpp:43