File indexing completed on 2024-04-21 04:53:58

0001 /*
0002     This file is part of the KMPlayer application
0003     SPDX-FileCopyrightText: 2004 Koos Vriezen <koos.vriezen@xs4all.nl>
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 #ifndef _K_XV_PLAYER_H_
0009 #define _K_XV_PLAYER_H_
0010 
0011 #include <QApplication>
0012 #include <QString>
0013 #include <QSessionManager>
0014 
0015 class KXVideoPlayer : public QApplication {
0016     Q_OBJECT
0017 public:
0018     KXVideoPlayer (int argc, char ** argv);
0019     ~KXVideoPlayer ();
0020 
0021     void init ();
0022     void finished ();
0023     void saturation (int val);
0024     void hue (int val);
0025     void contrast (int val);
0026     void brightness (int val);
0027     void volume (int val);
0028     void frequency (int val);
0029     //void seek (int val);
0030     //bool event (QEvent * e);
0031 public Q_SLOTS:
0032     void play ();
0033     void stop ();
0034     //void pause ();
0035     //void updatePosition ();
0036     //void postFinished ();
0037 protected:
0038     void saveState (QSessionManager & sm);
0039     void timerEvent (QTimerEvent *);
0040 private:
0041     int mute_timer;
0042 };
0043 
0044 #endif //_K_XV_PLAYER_H_