OutputEventWatcher.cpp 1.54 KB
Newer Older
luyikei's avatar
luyikei committed
1
/*****************************************************************************
luyikei's avatar
luyikei committed
2
 * OutputEventWatcher.h: Watches events from a IOutput and convert them to SIGNAL
luyikei's avatar
luyikei committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
 *****************************************************************************
 * Copyright (C) 2008-2016 VideoLAN
 *
 * Authors: Yikei Lu <luyikei.qmltu@gmail.com>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
 *****************************************************************************/

23 24 25 26
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif

luyikei's avatar
luyikei committed
27
#include "Tools/OutputEventWatcher.h"
luyikei's avatar
luyikei committed
28

luyikei's avatar
luyikei committed
29
OutputEventWatcher::OutputEventWatcher( QObject* parent ) :
luyikei's avatar
luyikei committed
30 31 32 33 34
    QObject( parent )
{
}

void
luyikei's avatar
luyikei committed
35
OutputEventWatcher::onPlaying()
luyikei's avatar
luyikei committed
36 37 38 39 40
{
    emit playing();
}

void
luyikei's avatar
luyikei committed
41
OutputEventWatcher::onStopped()
luyikei's avatar
luyikei committed
42 43 44 45 46
{
    emit stopped();
}

void
luyikei's avatar
luyikei committed
47
OutputEventWatcher::onVolumeChanged()
luyikei's avatar
luyikei committed
48 49 50
{
    emit volumeChanged();
}
51 52 53 54 55 56

void
OutputEventWatcher::onErrorEncountered()
{
    emit errorEncountered();
}