Okular

movie.h
1 /***************************************************************************
2  * Copyright (C) 2008 by Pino Toscano <[email protected]> *
3  * Copyright (C) 2012 by Guillermo A. Amaral B. <[email protected]> *
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 "okularcore_export.h"
16 
17 #include <QSize>
18 
19 class QImage;
20 
21 namespace Okular {
22 
28 class OKULARCORE_EXPORT Movie
29 {
30  public:
34  enum PlayMode
35  {
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 ); // TODO remove the & when we do a BIC change elsewhere
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 
106  void setPlayRepetitions( double repetitions );
107 
112  double playRepetitions() const;
113 
117  void setAutoPlay( bool autoPlay );
118 
122  bool autoPlay() const;
123 
129  void setShowPosterImage( bool show );
130 
136  bool showPosterImage() const;
137 
143  void setPosterImage( const QImage &image );
144 
150  QImage posterImage() const;
151 
152  private:
153  class Private;
154  Private* const d;
155 
156  Q_DISABLE_COPY( Movie )
157 };
158 
159 }
160 
161 #endif
Rotation
A rotation.
Definition: global.h:50
global.h
Definition: action.h:19
Play a fixed amount of times, closing the movie controls at the end.
Definition: movie.h:36
PlayMode
The play mode for playing the movie.
Definition: movie.h:34
Like PlayLimited, but leaving the controls open.
Definition: movie.h:37
Play continuously until stopped.
Definition: movie.h:38
Contains information about a movie object.
Definition: movie.h:28
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed May 27 2020 22:46:23 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.