72
74
virtual void setAudioLang (int, const QString &);
73
75
virtual void setSubtitle (int, const QString &);
74
76
virtual bool running () const;
75
KDE_NO_EXPORT K3Process * process () const { return m_process; }
77
KDE_NO_EXPORT QProcess * process () const { return m_process; }
76
78
KDE_NO_EXPORT Source * source () const { return m_source; }
77
79
View *view () const;
128
133
virtual void quit ();
130
135
bool sendCommand (const QString &);
131
QStringList commands;
132
bool m_use_slave : 1;
136
QList<QByteArray> commands;
137
bool m_needs_restarted;
134
virtual void processStopped (K3Process *);
139
virtual void processStopped ();
136
void dataWritten (K3Process *);
141
void dataWritten (qint64);
142
void processStopped (int, QProcess::ExitStatus);
155
161
virtual bool grabPicture (const QString &file, int pos);
156
162
virtual void setAudioLang (int, const QString &);
157
163
virtual void setSubtitle (int, const QString &);
158
bool run (const char * args, const char * pipe = 0L);
160
165
virtual bool deMediafiedPlay ();
161
166
virtual void stop ();
167
172
virtual bool contrast (int pos, bool absolute);
168
173
virtual bool brightness (int pos, bool absolute);
171
void processStopped (K3Process *);
176
void processStopped ();
173
void processOutput (K3Process *, char *, int);
178
void processOutput ();
175
180
QString m_process_output;
176
181
QString m_grab_file;
225
229
* Base class for all recorders
227
class KMPLAYER_NO_EXPORT RecordDocument : public Document {
231
class KMPLAYER_NO_EXPORT RecordDocument : public SourceDocument {
229
233
RecordDocument (const QString &url, const QString &rurl, const QString &rec,
230
bool video, PlayListNotify *notify);
232
236
virtual void begin ();
233
virtual void endOfFile ();
237
virtual void message (MessageType msg, void *);
234
238
virtual void deactivate ();
236
240
QString record_file;
237
241
QString recorder;
349
352
virtual bool ready ();
352
* Base class for backend processes having the KMPlayer::Backend interface
355
class KMPLAYER_EXPORT CallbackProcessInfo
356
: public QObject, public ProcessInfo {
359
CallbackProcessInfo (const char *nm, const QString &lbl,
360
const char **supported,MediaManager *, PreferencesPage *);
361
~CallbackProcessInfo ();
364
virtual bool startBackend () = 0;
365
virtual void quitProcesses ();
367
void backendStarted (QCString dcopname, QByteArray & data);
369
KDE_NO_EXPORT bool haveConfig () { return have_config == config_yes; }
370
bool getConfigData ();
371
void setChangedData (const QByteArray &);
372
void changesReceived ();
374
QByteArray changed_data;
376
Backend_stub *backend;
381
void configReceived ();
384
void processStopped (KProcess *);
385
void processOutput (KProcess *, char *, int);
389
enum { config_unknown, config_probe, config_yes, config_no } have_config;
390
enum { send_no, send_try, send_new } send_config;
393
class KMPLAYER_EXPORT CallbackProcess : public Process {
395
friend class CallbackProcessInfo;
397
CallbackProcess (QObject *, ProcessInfo *, Settings *, const char * n);
399
virtual void setStatusMessage (const QString & msg);
400
virtual void setErrorMessage (int code, const QString & msg);
401
virtual void setFinished ();
402
virtual void setPlaying ();
403
virtual void setMovieParams (int length, int width, int height, float aspect, const QStringList & alang, const QStringList & slang);
404
virtual void setMoviePosition (int position);
405
virtual void setLoadingProgress (int percentage);
406
virtual void setAudioLang (int, const QString &);
407
virtual void setSubtitle (int, const QString &);
408
virtual bool deMediafiedPlay ();
409
virtual bool running () const;
414
bool seek (int pos, bool absolute);
415
bool volume (int pos, bool absolute);
416
bool saturation (int pos, bool absolute);
417
bool hue (int pos, bool absolute);
418
bool contrast (int pos, bool absolute);
419
bool brightness (int pos, bool absolute);
421
XMLPreferencesPage * m_configpage;
426
356
* Config document as used by kxineplayer backend
458
* Preference page for XML type of docuement
461
class KMPLAYER_NO_EXPORT XMLPreferencesPage : public PreferencesPage {
463
XMLPreferencesPage (CallbackProcessInfo *);
464
~XMLPreferencesPage ();
465
void write (KSharedConfigPtr);
466
void read (KSharedConfigPtr);
467
void sync (bool fromUI);
468
void prefLocation (QString & item, QString & icon, QString & tab);
469
QFrame * prefPage (QWidget * parent);
471
CallbackProcess *m_process_info;
472
XMLPreferencesFrame * m_configframe;
476
* Xine backend process
479
class KMPLAYER_NO_EXPORT XineProcessInfo : public CallbackProcessInfo {
481
XineProcessInfo (MediaManager *);
482
virtual IProcess *create (PartBase*, AudioVideoMedia*);
484
virtual bool startBackend ();
487
class KMPLAYER_NO_EXPORT Xine : public CallbackProcess {
490
Xine (QObject *parent, ProcessInfo*, Settings *settings);
497
* GStreamer backend process
500
class KMPLAYER_NO_EXPORT GStreamer : public CallbackProcess {
503
GStreamer (QObject * parent, Settings * settings);
506
virtual bool ready ();
510
388
* ffmpeg backend recorder
512
390
class KMPLAYER_NO_EXPORT FFMpegProcessInfo : public ProcessInfo {
617
void processOutput (K3Process *, char *, int);
618
void processStopped (K3Process *);
619
void wroteStdin (K3Process *);
495
void processOutput ();
496
void processStopped (int, QProcess::ExitStatus);
497
void wroteStdin (qint64);
620
498
void streamStateChanged ();
621
499
void streamRedirected (uint32_t, const KUrl &);