00001 /********************************************************************** 00002 ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. 00003 ** 00004 ** This file is part of the Qtopia Environment. 00005 ** 00006 ** This file may be distributed and/or modified under the terms of the 00007 ** GNU General Public License version 2 as published by the Free Software 00008 ** Foundation and appearing in the file LICENSE.GPL included in the 00009 ** packaging of this file. 00010 ** 00011 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00012 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00013 ** 00014 ** See http://www.trolltech.com/gpl/ for GPL licensing information. 00015 ** 00016 ** Contact info@trolltech.com if any conditions of this licensing are 00017 ** not clear to you. 00018 ** 00019 **********************************************************************/ 00020 #ifndef MEDIA_PLAYER_H 00021 #define MEDIA_PLAYER_H 00022 00023 #include <qmainwindow.h> 00024 #include <qframe.h> 00025 #include <qpe/qlibrary.h> 00026 #include <qpe/mediaplayerplugininterface.h> 00027 00028 00029 class DocLnk; 00030 00031 00032 class MediaPlayer : public QObject { 00033 Q_OBJECT 00034 public: 00035 MediaPlayer( QObject *parent, const char *name ); 00036 ~MediaPlayer(); 00037 00038 private slots: 00039 void setPlaying( bool ); 00040 void pauseCheck( bool ); 00041 void play(); 00042 void next(); 00043 void prev(); 00044 void startIncreasingVolume(); 00045 void startDecreasingVolume(); 00046 void stopChangingVolume(); 00047 void cleanUp(); 00048 00049 protected: 00050 void timerEvent( QTimerEvent *e ); 00051 void keyReleaseEvent( QKeyEvent *e); 00052 void doBlank(); 00053 void doUnblank(); 00054 private: 00055 int volumeDirection; 00056 const DocLnk *currentFile; 00057 }; 00058 00059 00060 #endif // MEDIA_PLAYER_H 00061
1.4.2