1 /***************************************************************************
2 * Copyright (C) 2008 by Pino Toscano <pino@kde.org> *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 ***************************************************************************/
10 #ifndef _OKULAR_MOVIE_H_
11 #define _OKULAR_MOVIE_H_
13 #include <okular/core/global.h>
14 #include <okular/core/okular_export.h>
16 #include <QtCore/QSize>
21 * @short Contains information about a movie object.
23 * @since 0.8 (KDE 4.2)
25 class OKULAR_EXPORT Movie
29 * The play mode for playing the movie
33 PlayOnce
, ///< Play the movie once, closing the movie controls at the end
34 PlayOpen
, ///< Like PlayOnce, but leaving the controls open
35 PlayRepeat
, ///< Play continuously until stopped
36 PlayPalindrome
///< Play forward, then backward, then again foward and so on until stopped
40 * Creates a new movie object with the given external @p fileName.
42 explicit Movie( const QString
& fileName
);
45 * Destroys the movie object.
50 * Returns the url of the movie.
55 * Sets the size for the movie.
57 void setSize( const QSize
&aspect
);
60 * Returns the size of the movie.
65 * Sets the @p rotation of the movie.
67 void setRotation( Rotation rotation
);
70 * Returns the rotation of the movie.
72 Rotation
rotation() const;
75 * Sets whether show a bar with movie controls
77 void setShowControls( bool show
);
80 * Whether show a bar with movie controls
82 bool showControls() const;
85 * Sets the way the movie should be played
87 void setPlayMode( PlayMode mode
);
90 * How to play the movie
92 PlayMode
playMode() const;
98 Q_DISABLE_COPY( Movie
)