summaryrefslogtreecommitdiff
authorsimon <simon>2002-12-02 20:01:57 (UTC)
committer simon <simon>2002-12-02 20:01:57 (UTC)
commitacfbc79f2acf59fa5e4494dde4ea1c4ea5e429b7 (patch) (unidiff)
tree0589832714da4838a678b2e40e431816087efc39
parent262f335a055e189130a3c0dd7028388ab103504e (diff)
downloadopie-acfbc79f2acf59fa5e4494dde4ea1c4ea5e429b7.zip
opie-acfbc79f2acf59fa5e4494dde4ea1c4ea5e429b7.tar.gz
opie-acfbc79f2acf59fa5e4494dde4ea1c4ea5e429b7.tar.bz2
- less header inclusions
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/mediaplayer.h2
-rw-r--r--noncore/multimedia/opieplayer2/videowidget.cpp1
2 files changed, 0 insertions, 3 deletions
diff --git a/noncore/multimedia/opieplayer2/mediaplayer.h b/noncore/multimedia/opieplayer2/mediaplayer.h
index 1e34c88..de3886e 100644
--- a/noncore/multimedia/opieplayer2/mediaplayer.h
+++ b/noncore/multimedia/opieplayer2/mediaplayer.h
@@ -1,77 +1,75 @@
1 /* 1 /*
2                This file is part of the Opie Project 2                This file is part of the Opie Project
3 3
4              Copyright (c) 2002 Max Reiss <harlekin@handhelds.org> 4              Copyright (c) 2002 Max Reiss <harlekin@handhelds.org>
5 Copyright (c) 2002 LJP <> 5 Copyright (c) 2002 LJP <>
6 Copyright (c) 2002 Holger Freyther <zecke@handhelds.org> 6 Copyright (c) 2002 Holger Freyther <zecke@handhelds.org>
7 =. 7 =.
8 .=l. 8 .=l.
9           .>+-= 9           .>+-=
10 _;:,     .>    :=|. This program is free software; you can 10 _;:,     .>    :=|. This program is free software; you can
11.> <`_,   >  .   <= redistribute it and/or modify it under 11.> <`_,   >  .   <= redistribute it and/or modify it under
12:`=1 )Y*s>-.--   : the terms of the GNU General Public 12:`=1 )Y*s>-.--   : the terms of the GNU General Public
13.="- .-=="i,     .._ License as published by the Free Software 13.="- .-=="i,     .._ License as published by the Free Software
14 - .   .-<_>     .<> Foundation; either version 2 of the License, 14 - .   .-<_>     .<> Foundation; either version 2 of the License,
15     ._= =}       : or (at your option) any later version. 15     ._= =}       : or (at your option) any later version.
16    .%`+i>       _;_. 16    .%`+i>       _;_.
17    .i_,=:_.      -<s. This program is distributed in the hope that 17    .i_,=:_.      -<s. This program is distributed in the hope that
18     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY; 18     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
19    : ..    .:,     . . . without even the implied warranty of 19    : ..    .:,     . . . without even the implied warranty of
20    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A 20    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
21  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU 21  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
22..}^=.=       =       ; Library General Public License for more 22..}^=.=       =       ; Library General Public License for more
23++=   -.     .`     .: details. 23++=   -.     .`     .: details.
24 :     =  ...= . :.=- 24 :     =  ...= . :.=-
25 -.   .:....=;==+<; You should have received a copy of the GNU 25 -.   .:....=;==+<; You should have received a copy of the GNU
26  -_. . .   )=.  = Library General Public License along with 26  -_. . .   )=.  = Library General Public License along with
27    --        :-=` this library; see the file COPYING.LIB. 27    --        :-=` this library; see the file COPYING.LIB.
28 If not, write to the Free Software Foundation, 28 If not, write to the Free Software Foundation,
29 Inc., 59 Temple Place - Suite 330, 29 Inc., 59 Temple Place - Suite 330,
30 Boston, MA 02111-1307, USA. 30 Boston, MA 02111-1307, USA.
31 31
32*/ 32*/
33 33
34#ifndef MEDIA_PLAYER_H 34#ifndef MEDIA_PLAYER_H
35#define MEDIA_PLAYER_H 35#define MEDIA_PLAYER_H
36 36
37#include <qmainwindow.h> 37#include <qmainwindow.h>
38#include <qframe.h> 38#include <qframe.h>
39#include <qpe/qlibrary.h>
40#include <qpe/mediaplayerplugininterface.h>
41 39
42#include "xinecontrol.h" 40#include "xinecontrol.h"
43 41
44class DocLnk; 42class DocLnk;
45class VolumeControl; 43class VolumeControl;
46 44
47class MediaPlayer : public QObject { 45class MediaPlayer : public QObject {
48 Q_OBJECT 46 Q_OBJECT
49public: 47public:
50 MediaPlayer( QObject *parent, const char *name ); 48 MediaPlayer( QObject *parent, const char *name );
51 ~MediaPlayer(); 49 ~MediaPlayer();
52private slots: 50private slots:
53 void setPlaying( bool ); 51 void setPlaying( bool );
54 void pauseCheck( bool ); 52 void pauseCheck( bool );
55 void play(); 53 void play();
56 void next(); 54 void next();
57 void prev(); 55 void prev();
58 void startIncreasingVolume(); 56 void startIncreasingVolume();
59 void startDecreasingVolume(); 57 void startDecreasingVolume();
60 void stopChangingVolume(); 58 void stopChangingVolume();
61 void cleanUp(); 59 void cleanUp();
62 void blank( bool ); 60 void blank( bool );
63 61
64protected: 62protected:
65 void timerEvent( QTimerEvent *e ); 63 void timerEvent( QTimerEvent *e );
66 void keyReleaseEvent( QKeyEvent *e); 64 void keyReleaseEvent( QKeyEvent *e);
67private: 65private:
68 bool isBlanked, l, r; 66 bool isBlanked, l, r;
69 int fd, fl; 67 int fd, fl;
70 int volumeDirection; 68 int volumeDirection;
71 XineControl *xineControl; 69 XineControl *xineControl;
72 VolumeControl *volControl; 70 VolumeControl *volControl;
73}; 71};
74 72
75 73
76#endif // MEDIA_PLAYER_H 74#endif // MEDIA_PLAYER_H
77 75
diff --git a/noncore/multimedia/opieplayer2/videowidget.cpp b/noncore/multimedia/opieplayer2/videowidget.cpp
index 888fcf4..e0ca243 100644
--- a/noncore/multimedia/opieplayer2/videowidget.cpp
+++ b/noncore/multimedia/opieplayer2/videowidget.cpp
@@ -1,84 +1,83 @@
1/* 1/*
2                This file is part of the Opie Project 2                This file is part of the Opie Project
3 3
4              Copyright (c) 2002 Max Reiss <harlekin@handhelds.org> 4              Copyright (c) 2002 Max Reiss <harlekin@handhelds.org>
5 Copyright (c) 2002 L. Potter <ljp@llornkcor.com> 5 Copyright (c) 2002 L. Potter <ljp@llornkcor.com>
6 Copyright (c) 2002 Holger Freyther <zecke@handhelds.org> 6 Copyright (c) 2002 Holger Freyther <zecke@handhelds.org>
7 =. 7 =.
8 .=l. 8 .=l.
9           .>+-= 9           .>+-=
10 _;:,     .>    :=|. This program is free software; you can 10 _;:,     .>    :=|. This program is free software; you can
11.> <`_,   >  .   <= redistribute it and/or modify it under 11.> <`_,   >  .   <= redistribute it and/or modify it under
12:`=1 )Y*s>-.--   : the terms of the GNU General Public 12:`=1 )Y*s>-.--   : the terms of the GNU General Public
13.="- .-=="i,     .._ License as published by the Free Software 13.="- .-=="i,     .._ License as published by the Free Software
14 - .   .-<_>     .<> Foundation; either version 2 of the License, 14 - .   .-<_>     .<> Foundation; either version 2 of the License,
15     ._= =}       : or (at your option) any later version. 15     ._= =}       : or (at your option) any later version.
16    .%`+i>       _;_. 16    .%`+i>       _;_.
17    .i_,=:_.      -<s. This program is distributed in the hope that 17    .i_,=:_.      -<s. This program is distributed in the hope that
18     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY; 18     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
19    : ..    .:,     . . . without even the implied warranty of 19    : ..    .:,     . . . without even the implied warranty of
20    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A 20    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
21  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU 21  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
22..}^=.=       =       ; Library General Public License for more 22..}^=.=       =       ; Library General Public License for more
23++=   -.     .`     .: details. 23++=   -.     .`     .: details.
24 :     =  ...= . :.=- 24 :     =  ...= . :.=-
25 -.   .:....=;==+<; You should have received a copy of the GNU 25 -.   .:....=;==+<; You should have received a copy of the GNU
26  -_. . .   )=.  = Library General Public License along with 26  -_. . .   )=.  = Library General Public License along with
27    --        :-=` this library; see the file COPYING.LIB. 27    --        :-=` this library; see the file COPYING.LIB.
28 If not, write to the Free Software Foundation, 28 If not, write to the Free Software Foundation,
29 Inc., 59 Temple Place - Suite 330, 29 Inc., 59 Temple Place - Suite 330,
30 Boston, MA 02111-1307, USA. 30 Boston, MA 02111-1307, USA.
31 31
32*/ 32*/
33 33
34#include <qpe/qpeapplication.h> 34#include <qpe/qpeapplication.h>
35#include <qpe/resource.h> 35#include <qpe/resource.h>
36#include <qpe/mediaplayerplugininterface.h>
37#include <qpe/config.h> 36#include <qpe/config.h>
38 37
39 38
40#include <qwidget.h> 39#include <qwidget.h>
41#include <qpainter.h> 40#include <qpainter.h>
42#include <qpixmap.h> 41#include <qpixmap.h>
43#include <qslider.h> 42#include <qslider.h>
44#include <qdrawutil.h> 43#include <qdrawutil.h>
45#include "videowidget.h" 44#include "videowidget.h"
46#include "mediaplayerstate.h" 45#include "mediaplayerstate.h"
47#include "playlistwidget.h" 46#include "playlistwidget.h"
48 47
49 48
50#ifdef Q_WS_QWS 49#ifdef Q_WS_QWS
51# define USE_DIRECT_PAINTER 50# define USE_DIRECT_PAINTER
52# include <qdirectpainter_qws.h> 51# include <qdirectpainter_qws.h>
53# include <qgfxraster_qws.h> 52# include <qgfxraster_qws.h>
54#endif 53#endif
55 54
56 55
57extern MediaPlayerState *mediaPlayerState; 56extern MediaPlayerState *mediaPlayerState;
58extern PlayListWidget *playList; 57extern PlayListWidget *playList;
59 58
60 59
61static const int xo = 2; // movable x offset 60static const int xo = 2; // movable x offset
62static const int yo = 0; // movable y offset 61static const int yo = 0; // movable y offset
63 62
64 63
65struct MediaButton { 64struct MediaButton {
66 bool isToggle, isHeld, isDown; 65 bool isToggle, isHeld, isDown;
67}; 66};
68 67
69MediaButton videoButtons[] = { 68MediaButton videoButtons[] = {
70 { FALSE, FALSE, FALSE }, // stop 69 { FALSE, FALSE, FALSE }, // stop
71 { TRUE, FALSE, FALSE }, // play 70 { TRUE, FALSE, FALSE }, // play
72 { FALSE, FALSE, FALSE }, // previous 71 { FALSE, FALSE, FALSE }, // previous
73 { FALSE, FALSE, FALSE }, // next 72 { FALSE, FALSE, FALSE }, // next
74 { FALSE, FALSE, FALSE }, // volUp 73 { FALSE, FALSE, FALSE }, // volUp
75 { FALSE, FALSE, FALSE }, // volDown 74 { FALSE, FALSE, FALSE }, // volDown
76 { TRUE, FALSE, FALSE } // fullscreen 75 { TRUE, FALSE, FALSE } // fullscreen
77}; 76};
78 77
79const char *skinV_mask_file_names[7] = { 78const char *skinV_mask_file_names[7] = {
80"stop","play","back","fwd","up","down","full" 79"stop","play","back","fwd","up","down","full"
81}; 80};
82 81
83static const int numVButtons = (sizeof(videoButtons)/sizeof(MediaButton)); 82static const int numVButtons = (sizeof(videoButtons)/sizeof(MediaButton));
84 83