1
/* smplayer, GUI front-end for mplayer.
2
Copyright (C) 2006-2008 Ricardo Villalba <rvm@escomposlinux.org>
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.
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.
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
19
#ifndef _MPLAYERPROCESS_H_
20
#define _MPLAYERPROCESS_H_
23
#include "myprocess.h"
24
#include "mediadata.h"
29
class MplayerProcess : public MyProcess
34
MplayerProcess(QObject * parent = 0);
38
void writeToStdin(QString text);
40
MediaData mediaData() { return md; };
44
void lineAvailable(QString line);
46
void receivedCurrentSec(double sec);
47
void receivedCurrentFrame(int frame);
49
void receivedWindowResolution(int,int);
50
void receivedNoVideo();
51
void receivedVO(QString);
52
void receivedAO(QString);
53
void receivedEndOfFile();
54
void mplayerFullyLoaded();
55
void receivedStartingTime(double sec);
57
void receivedCacheMessage(QString);
58
void receivedCreatingIndex(QString);
59
void receivedConnectingToMessage(QString);
60
void receivedResolvingMessage(QString);
61
void receivedScreenshot(QString);
63
void receivedStreamTitleAndUrl(QString,QString);
65
void failedToParseMplayerVersion(QString line_with_mplayer_version);
68
void parseLine(QByteArray ba);
69
void processFinished(int exitCode, QProcess::ExitStatus exitStatus);
70
void gotError(QProcess::ProcessError);
76
bool notified_mplayer_is_running;
77
bool received_end_of_file;
85
#if NOTIFY_AUDIO_SUB_CHANGES
86
bool audio_tracks_changed;
87
bool subtitle_tracks_changed;