File indexing completed on 2024-04-21 15:38:05
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_GST_PLAYER_H_ 0021 #define _K_GST_PLAYER_H_ 0022 0023 #include <qapplication.h> 0024 #include <qstring.h> 0025 #include <qsessionmanager.h> 0026 0027 struct GstSizeEvent : public QEvent { 0028 GstSizeEvent (int l, int w, int h); 0029 int length; 0030 int width; 0031 int height; 0032 }; 0033 0034 struct GstProgressEvent : public QEvent { 0035 GstProgressEvent (int p); 0036 int progress; 0037 }; 0038 0039 class KGStreamerPlayer : public QApplication { 0040 Q_OBJECT 0041 public: 0042 KGStreamerPlayer (int argc, char ** argv); 0043 ~KGStreamerPlayer (); 0044 0045 void init (); 0046 void finished (); 0047 void saturation (int val); 0048 void hue (int val); 0049 void contrast (int val); 0050 void brightness (int val); 0051 void volume (int val); 0052 void seek (int val); 0053 bool event (QEvent * e); 0054 public slots: 0055 void play (int repeat_count); 0056 void stop (); 0057 void pause (); 0058 void updatePosition (); 0059 //void postFinished (); 0060 protected: 0061 void saveState (QSessionManager & sm); 0062 }; 0063 0064 #endif //_K_GST_PLAYER_H_