summaryrefslogtreecommitdiff
path: root/core/multimedia/opieplayer/loopcontrol_threaded.h
Unidiff
Diffstat (limited to 'core/multimedia/opieplayer/loopcontrol_threaded.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/multimedia/opieplayer/loopcontrol_threaded.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/core/multimedia/opieplayer/loopcontrol_threaded.h b/core/multimedia/opieplayer/loopcontrol_threaded.h
index ced6ac8..1031169 100644
--- a/core/multimedia/opieplayer/loopcontrol_threaded.h
+++ b/core/multimedia/opieplayer/loopcontrol_threaded.h
@@ -1,48 +1,46 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. 2** Copyright (C) 2000 Trolltech AS. All rights reserved.
3** 3**
4** This file is part of the Qtopia Environment. 4** This file is part of Qtopia Environment.
5** 5**
6** This file may be distributed and/or modified under the terms of the 6** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software 7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the 8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file. 9** packaging of this file.
10** 10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13** 13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information. 14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15** 15**
16** Contact info@trolltech.com if any conditions of this licensing are 16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you. 17** not clear to you.
18** 18**
19**********************************************************************/ 19**********************************************************************/
20#ifndef MPEGVIEW_H 20#ifndef MPEGVIEW_H
21#define MPEGVIEW_H 21#define MPEGVIEW_H
22 22
23
24
25#include <qwidget.h> 23#include <qwidget.h>
26#include <qdatetime.h> 24#include <qdatetime.h>
27 25
28 26
29class LoopControl : public QObject { 27class LoopControl : public QObject {
30 Q_OBJECT 28 Q_OBJECT
31public: 29public:
32 LoopControl( QObject *parent, const char *name ); 30 LoopControl( QObject *parent, const char *name );
33 ~LoopControl(); 31 ~LoopControl();
34 32
35 bool init( const QString& filename ); 33 bool init( const QString& filename );
36 34
37 bool hasVideo() const { return hasVideoChannel; } 35 bool hasVideo() const { return hasVideoChannel; }
38 bool hasAudio() const { return hasAudioChannel; } 36 bool hasAudio() const { return hasAudioChannel; }
39 37
40 long totalPlaytime() { return (long)(hasVideoChannel ? total_video_frames / framerate : total_audio_samples / freq); } 38 long totalPlaytime() { return (long)(hasVideoChannel ? total_video_frames / framerate : total_audio_samples / freq); }
41 39
42 // These are public to run them from global functions needed to start threads 40 // These are public to run them from global functions needed to start threads
43 // Otherwise they would be private 41 // Otherwise they would be private
44 void startAudio(); 42 void startAudio();
45 void startVideo(); 43 void startVideo();
46public slots: 44public slots:
47 void play(); 45 void play();
48 void stop( bool willPlayAgainShortly = FALSE ); 46 void stop( bool willPlayAgainShortly = FALSE );