• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegraphics API Reference
  • KDE Home
  • Contact Us
 

okular

  • sources
  • kde-4.12
  • kdegraphics
  • okular
  • core
movie.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2008 by Pino Toscano <pino@kde.org> *
3  * Copyright (C) 2012 by Guillermo A. Amaral B. <gamaral@kde.org> *
4  * *
5  * This program 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 
11 #ifndef _OKULAR_MOVIE_H_
12 #define _OKULAR_MOVIE_H_
13 
14 #include "global.h"
15 #include "okular_export.h"
16 
17 #include <QtCore/QSize>
18 
19 class QImage;
20 
21 namespace Okular {
22 
28 class OKULAR_EXPORT Movie
29 {
30  public:
34  enum PlayMode
35  {
36  PlayOnce,
37  PlayOpen,
38  PlayRepeat,
39  PlayPalindrome
40  };
41 
45  explicit Movie( const QString& fileName );
46 
50  explicit Movie( const QString& fileName, const QByteArray &data );
51 
55  ~Movie();
56 
60  QString url() const;
61 
65  void setSize( const QSize &aspect );
66 
70  QSize size() const;
71 
75  void setRotation( Rotation rotation );
76 
80  Rotation rotation() const;
81 
85  void setShowControls( bool show );
86 
90  bool showControls() const;
91 
95  void setPlayMode( PlayMode mode );
96 
100  PlayMode playMode() const;
101 
105  void setAutoPlay( bool autoPlay );
106 
110  bool autoPlay() const;
111 
117  void setShowPosterImage( bool show );
118 
124  bool showPosterImage() const;
125 
131  void setPosterImage( const QImage &image );
132 
138  QImage posterImage() const;
139 
140  private:
141  class Private;
142  Private* const d;
143 
144  Q_DISABLE_COPY( Movie )
145 };
146 
147 }
148 
149 #endif
Okular::Rotation
Rotation
A rotation.
Definition: global.h:44
global.h
okular_export.h
Okular::Movie::PlayOnce
Play the movie once, closing the movie controls at the end.
Definition: movie.h:36
Okular::Movie::PlayMode
PlayMode
The play mode for playing the movie.
Definition: movie.h:34
Okular::Movie::PlayOpen
Like PlayOnce, but leaving the controls open.
Definition: movie.h:37
Okular::Movie::PlayRepeat
Play continuously until stopped.
Definition: movie.h:38
OKULAR_EXPORT
#define OKULAR_EXPORT
Definition: okular_export.h:30
Okular::Movie
Contains information about a movie object.
Definition: movie.h:28
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:45:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

okular

Skip menu "okular"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdegraphics API Reference

Skip menu "kdegraphics API Reference"
  •     libkdcraw
  •     libkexiv2
  •     libkipi
  •     libksane
  • okular

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal