1 /***************************************************************************
2 * This file is part of KWorship. *
3 * Copyright 2008 James Hogan <james@albanarts.com> *
5 * KWorship is free software: you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation, either version 2 of the License, or *
8 * (at your option) any later version. *
10 * KWorship is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
15 * You should have received a copy of the GNU General Public License *
16 * along with KWorship. If not, write to the Free Software Foundation, *
17 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
18 ***************************************************************************/
20 #ifndef _UpSlideShow_h_
21 #define _UpSlideShow_h_
25 * @brief An abstract slideshow controller.
26 * @author James Hogan <james@albanarts.com>
33 /** An abstract slideshow controller.
34 * Inherit from this class to implement each backend's slideshow controller.
36 class UpSlideShow
: public QObject
42 * Constructors + destructor
45 /// Primary constructor.
46 UpSlideShow(QObject
* parent
= 0);
49 virtual ~UpSlideShow();
55 /// Start the slideshow.
56 virtual void start() = 0;
58 /// Stop the slideshow.
59 virtual void stop() = 0;
61 /// Pause the slideshow.
62 virtual void pause() = 0;
64 /// Resume the slideshow.
65 virtual void resume() = 0;
67 /// Go to the next part of the slideshow.
68 virtual void next() = 0;
70 /// Go to the previous part of the slideshow.
71 virtual void previous() = 0;
79 /// The slideshow has changed slide.
80 void changedSlide(UpSlide
* previousSlide
, UpSlide
* currentSlide
);
82 /// The current slide has been updated.
83 void updatedSlide(UpSlide
* slide
);
86 #endif // _UpSlideShow_h_