source: smplayer/trunk/src/inforeadermpv.h@ 188

Last change on this file since 188 was 188, checked in by Silvan Scherrer, 8 years ago

SMPlayer: update trunk to version 17.1.0

File size: 2.0 KB
Line 
1/* smplayer, GUI front-end for mplayer.
2 Copyright (C) 2006-2017 Ricardo Villalba <rvm@users.sourceforge.net>
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17*/
18
19
20#ifndef INFOREADER_MPV_H
21#define INFOREADER_MPV_H
22
23#include "inforeader.h"
24#include <QObject>
25#include <QList>
26#include <QStringList>
27
28class QProcess;
29
30class InfoReaderMPV : QObject {
31 Q_OBJECT
32
33public:
34 InfoReaderMPV( QString mplayer_bin, QObject * parent = 0);
35 ~InfoReaderMPV();
36
37 void getInfo();
38
39 InfoList voList() { return vo_list; };
40 InfoList aoList() { return ao_list; };
41
42#if ALLOW_DEMUXER_CODEC_CHANGE
43 InfoList demuxerList() { return demuxer_list; };
44 InfoList vcList() { return vc_list; };
45 InfoList acList() { return ac_list; };
46#endif
47 QStringList vfList() { return vf_list; };
48 QStringList optionList() { return option_list; };
49
50 int mplayerSVN() { return mplayer_svn; };
51 QString mpvVersion() { return mpv_version; };
52
53protected:
54 QList<QByteArray> run(QString options);
55 InfoList getList(const QList<QByteArray> &);
56 QStringList getOptionsList(const QList<QByteArray> &);
57 void list();
58
59protected:
60 QString mplayerbin;
61
62 InfoList vo_list;
63 InfoList ao_list;
64
65#if ALLOW_DEMUXER_CODEC_CHANGE
66 InfoList demuxer_list;
67 InfoList vc_list;
68 InfoList ac_list;
69#endif
70 QStringList vf_list;
71 QStringList option_list;
72
73 int mplayer_svn;
74 QString mpv_version;
75};
76
77#endif
Note: See TracBrowser for help on using the repository browser.