Ignore:
Timestamp:
Dec 22, 2011, 6:27:52 PM (14 years ago)
Author:
Silvan Scherrer
Message:

smplayer vendor udate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • smplayer/vendor/current/src/mplayerprocess.h

    r90 r118  
    11/*  smplayer, GUI front-end for mplayer.
    2     Copyright (C) 2006-2010 Ricardo Villalba <rvm@escomposlinux.org>
     2    Copyright (C) 2006-2011 Ricardo Villalba <rvm@escomposlinux.org>
    33
    44    This program is free software; you can redistribute it and/or modify
     
    2525#include "config.h"
    2626
     27#ifdef Q_OS_OS2
     28#include <QThread>
     29#include <qt_os2.h>
     30#endif
     31
    2732#define NOTIFY_SUB_CHANGES 1
    2833#define NOTIFY_AUDIO_CHANGES 1
     34
     35#ifdef Q_OS_OS2
     36class PipeThread : public QThread
     37{
     38public:
     39        PipeThread(const QByteArray t, const HPIPE pipe);
     40        ~PipeThread();
     41        void run();
     42
     43private:
     44        HPIPE hpipe;
     45        QByteArray text;
     46};
     47#endif
     48
    2949
    3050class QStringList;
     
    95115        void gotError(QProcess::ProcessError);
    96116
     117#if defined(Q_OS_OS2)
     118        void MPpipeOpen();
     119        void MPpipeClose();
     120        void MPpipeWrite(const QByteArray text);
     121#endif
     122
    97123private:
    98124        bool notified_mplayer_is_running;
     
    102128
    103129        int last_sub_id;
     130
     131#if defined(Q_OS_OS2)
     132        PipeThread *pipeThread;       
     133        HPIPE hpipe;
     134        PID pidMP;
     135#endif
    104136
    105137        int mplayer_svn;
Note: See TracChangeset for help on using the changeset viewer.