Database: sqlite default to appdata kworship.db
[kworship.git] / unipresent / okular / UpOkPresentation.h
blob00f5ad0881811dc0c3ebb0287f567abce846ffc7
1 /***************************************************************************
2 * This file is part of KWorship. *
3 * Copyright 2008-2009 James Hogan <james@albanarts.com> *
4 * *
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. *
9 * *
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. *
14 * *
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 _UpOkPresentation_h_
21 #define _UpOkPresentation_h_
23 /**
24 * @file UpOkPresentation.h
25 * @brief Okular presentation.
26 * @author James Hogan <james@albanarts.com>
29 #include "UpPresentation.h"
31 #include <QDBusInterface>
33 class UpOkBackend;
35 /// Okular presentation.
36 class UpOkPresentation : public UpPresentation
38 Q_OBJECT
39 public:
42 * Constructors + destructor
45 /// Primary constructor.
46 UpOkPresentation(QString service, UpOkBackend* backend, QObject* parent = 0);
48 /// Destructor.
49 virtual ~UpOkPresentation();
52 * Main interface
55 virtual void close();
56 virtual QUrl url() const;
59 * Custom slideshows
62 virtual QString currentSlideshow();
63 virtual QStringList slideshows();
64 virtual void setSlideshow(QString slideshow);
65 virtual int numSlides();
66 virtual UpSlide* slide(int index);
69 * Slideshow accessors
72 virtual bool isSlideshowRunning();
73 virtual int numSlidesInSlideshow();
74 virtual int currentSlideshowSlide();
75 virtual int stepsInCurrentSlideshowSlide();
76 virtual int currentSlideshowStep();
79 * Slideshow control
82 virtual void startSlideshow();
83 virtual void stopSlideshow();
84 virtual void goToSlide(int index);
85 virtual void previousSlide();
86 virtual void nextSlide();
87 virtual void previousStep();
88 virtual void nextStep();
91 * Backend specific interface.
94 /// Get the dbus interface.
95 QDBusInterface& dbus();
97 private:
100 * Variables
103 /// Main DBus interface.
104 QDBusInterface m_dbus;
106 /// Url.
107 QUrl m_url;
109 /// Slideshow running.
110 bool m_running;
113 #endif // _UpOkPresentation_h_