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 _UpKpr2Presentation_h_
21 #define _UpKpr2Presentation_h_
24 * @file UpKpr2Presentation.h
25 * @brief KPresenter 2 presentation.
26 * @author James Hogan <james@albanarts.com>
29 #include "UpPresentation.h"
31 #include <QDBusInterface>
35 /// KPresenter 2 presentation.
36 class UpKpr2Presentation
: public UpPresentation
42 * Constructors + destructor
45 /// Primary constructor.
46 UpKpr2Presentation(QString service
, QString path
, UpKpr2Backend
* backend
, QObject
* parent
= 0);
49 virtual ~UpKpr2Presentation();
56 virtual QUrl
url() const;
62 virtual QString
currentSlideshow();
63 virtual QStringList
slideshows();
64 virtual void setSlideshow(QString slideshow
);
65 virtual int numSlides();
66 virtual UpSlide
* slide(int index
);
72 virtual bool isSlideshowRunning();
73 virtual int numSlidesInSlideshow();
74 virtual int currentSlideshowSlide();
75 virtual int stepsInCurrentSlideshowSlide();
76 virtual int currentSlideshowStep();
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 /// Get the dbus view interface.
98 QDBusInterface
* dbusView();
106 void dbusCurrentSlideshowChanged(QString slideshow
);
107 void dbusScreenStarted(int pages
);
113 void callbackResult();
114 void callbackError();
122 /// DBus document interface.
123 QDBusInterface m_dbus
;
125 /// DBus view interface.
126 QDBusInterface
* m_dbusView
;
131 /// Whether the custom slideshows dialog is being opened.
132 bool m_customSlideshowsDialog
;
135 #endif // _UpKpr2Presentation_h_