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 {
38  PlayPalindrome
39  };
40 
44  explicit Movie(const QString &fileName);
45 
49  explicit Movie(const QString &fileName, const QByteArray &data);
50 
54  ~Movie();
55 
59  QString url() const;
60 
64  void setSize(const QSize &aspect); // TODO remove the & when we do a BIC change elsewhere
65 
69  QSize size() const;
70 
74  void setRotation(Rotation rotation);
75 
79  Rotation rotation() const;
80 
84  void setShowControls(bool show);
85 
89  bool showControls() const;
90 
94  void setPlayMode(PlayMode mode);
95 
99  PlayMode playMode() const;
100 
105  void setPlayRepetitions(double repetitions);
106 
111  double playRepetitions() const;
112 
116  void setAutoPlay(bool autoPlay);
117 
121  bool autoPlay() const;
122 
128  void setShowPosterImage(bool show);
129 
135  bool showPosterImage() const;
136 
142  void setPosterImage(const QImage &image);
143 
149  QImage posterImage() const;
150 
151 private:
152  class Private;
153  Private *const d;
154 
155  Q_DISABLE_COPY(Movie)
156 };
157 
158 }
159 
160 #endif
Rotation
A rotation.
Definition: global.h:48
global.h
Definition: action.h:19
Play a fixed amount of times, closing the movie controls at the end.
Definition: movie.h:35
PlayMode
The play mode for playing the movie.
Definition: movie.h:34
Like PlayLimited, but leaving the controls open.
Definition: movie.h:36
Play continuously until stopped.
Definition: movie.h:37
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 Fri Nov 27 2020 22:37:29 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.