digiKam
presentationloader.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 : 2007-11-11
7  * Description : a presentation tool.
8  *
9  * Copyright (C) 2007-2009 by Valerio Fuoglio <valerio dot fuoglio at gmail dot com>
10  * Copyright (C) 2009 by Andi Clemens <andi dot clemens at googlemail dot com>
11  * Copyright (C) 2012-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
12  *
13  * This program is free software; you can redistribute it
14  * and/or modify it under the terms of the GNU General
15  * Public License as published by the Free Software Foundation;
16  * either version 2, or (at your option) 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_PRESENTATION_LOADER_H
26 #define DIGIKAM_PRESENTATION_LOADER_H
27 
28 // Qt includes
29 
30 #include <QString>
31 #include <QImage>
32 #include <QUrl>
33 
35 {
36 
37 class PresentationContainer;
38 
40 {
41 public:
42 
43  explicit PresentationLoader(PresentationContainer* const sharedData,
44  int width,
45  int height,
46  int beginAtIndex = 0);
47 
49 
50  void next();
51  void prev();
52 
53  QImage getCurrent() const;
54  QString currFileName() const;
55  QUrl currPath() const;
56 
57 private:
58 
59  void checkIsIn(int index) const;
60 
61 private:
62 
63  // Disable
64  PresentationLoader(const PresentationLoader&) = delete;
65  PresentationLoader& operator=(const PresentationLoader&) = delete;
66 
67 private:
68 
69  class Private;
70  Private* const d;
71 };
72 
73 } // namespace DigikamGenericPresentationPlugin
74 
75 #endif // DIGIKAM_PRESENTATION_LOADER_H
Definition: presentationcontainer.h:54
Definition: presentationloader.h:40
~PresentationLoader()
Definition: presentationloader.cpp:205
QString currFileName() const
Definition: presentationloader.cpp:326
QImage getCurrent() const
Definition: presentationloader.cpp:316
PresentationLoader(PresentationContainer *const sharedData, int width, int height, int beginAtIndex=0)
Definition: presentationloader.cpp:163
QUrl currPath() const
Definition: presentationloader.cpp:331
void prev()
Definition: presentationloader.cpp:274
void next()
Definition: presentationloader.cpp:233
Definition: presentation_audiopage.cpp:46