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 3 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, see <http://www.gnu.org/licenses/>. *
17 ***************************************************************************/
19 #ifndef _UpKpr1Presentation_h_
20 #define _UpKpr1Presentation_h_
23 * @file UpKpr1Presentation.h
24 * @brief KPresenter 1 presentation.
25 * @author James Hogan <james@albanarts.com>
28 #include "UpKpr1PresentationDcop.h"
29 #include "UpKpr1ViewDcop.h"
30 #include "UpPresentation.h"
32 /// KPresenter 1 presentation.
33 class UpKpr1Presentation
: public UpPresentation
39 * Constructors + destructor
42 /// Primary constructor.
43 UpKpr1Presentation(const UpKpr1PresentationDcop
& dcop
, QObject
* parent
= 0);
46 virtual ~UpKpr1Presentation();
54 virtual QUrl
url() const;
60 virtual int numSlides();
62 virtual UpSlide
* slide(int index
);
68 virtual void startSlideshow();
70 virtual void stopSlideshow();
72 virtual void goToSlide(int index
);
74 virtual void previousSlide();
76 virtual void nextSlide();
78 virtual void previousStep();
80 virtual void nextStep();
83 * Backend specific interface.
86 /// Get the dcop interface.
87 UpKpr1PresentationDcop
dcop() const;
89 /// Get the dcop view interface.
90 UpKpr1ViewDcop
dcopView() const;
99 UpKpr1PresentationDcop m_dcop
;
101 /// DCOP view interface.
102 UpKpr1ViewDcop m_dcopView
;
108 #endif // _UpKpr1Presentation_h_