File indexing completed on 2024-04-14 15:01:20

0001 /* This file is part of the KMPlayer application
0002    Copyright (C) 2004 Koos Vriezen <koos.vriezen@xs4all.nl>
0003 
0004    This program is free software; you can redistribute it and/or
0005    modify it under the terms of the GNU General Public
0006    License as published by the Free Software Foundation; either
0007    version 2 of the License, or (at your option) any later version.
0008 
0009    This program is distributed in the hope that it will be useful,
0010    but WITHOUT ANY WARRANTY; without even the implied warranty of
0011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0012     General Public License for more details.
0013 
0014    You should have received a copy of the GNU General Public License
0015    along with this program; see the file COPYING.  If not, write to
0016    the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
0017    Boston, MA 02110-1301, USA.
0018 */
0019 
0020 #ifndef _K_XV_PLAYER_H_
0021 #define _K_XV_PLAYER_H_
0022 
0023 #include <qapplication.h>
0024 #include <qstring.h>
0025 #include <qsessionmanager.h>
0026 
0027 class KXVideoPlayer : public QApplication {
0028     Q_OBJECT
0029 public:
0030     KXVideoPlayer (int argc, char ** argv);
0031     ~KXVideoPlayer ();
0032 
0033     void init ();
0034     void finished ();
0035     void saturation (int val);
0036     void hue (int val);
0037     void contrast (int val);
0038     void brightness (int val);
0039     void volume (int val);
0040     void frequency (int val);
0041     //void seek (int val);
0042     //bool event (QEvent * e);
0043 public slots:
0044     void play ();
0045     void stop ();
0046     //void pause ();
0047     //void updatePosition ();
0048     //void postFinished ();
0049 protected:
0050     void saveState (QSessionManager & sm);
0051     void timerEvent (QTimerEvent *);
0052 private:
0053     int mute_timer;
0054 };
0055 
0056 #endif //_K_XV_PLAYER_H_