EffectHelper.h 1.84 KB
Newer Older
1 2 3 4 5
/*****************************************************************************
 * EffectHelper: Contains informations about effects
 *****************************************************************************
 * Copyright (C) 2008-2010 VideoLAN
 *
Hugo Beauzée-Luyssen's avatar
Hugo Beauzée-Luyssen committed
6
 * Authors: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
 *
 * 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.
 *****************************************************************************/

#ifndef EFFECTHELPER_H
#define EFFECTHELPER_H

class   EffectInstance;
27
class   EffectUser;
28

Hugo Beauzée-Luyssen's avatar
Hugo Beauzée-Luyssen committed
29 30
#include "Helper.h"

31 32 33 34
#include <QObject>
#include <QUuid>
#include <QMetaType>

Hugo Beauzée-Luyssen's avatar
Hugo Beauzée-Luyssen committed
35
class   EffectHelper : public Workflow::Helper
36 37 38 39 40 41 42 43 44
{
    Q_OBJECT

    public:
        EffectHelper( EffectInstance *effectInstance, qint64 begin = 0, qint64 end = -1,
                      const QString& uuid = QString() );

        EffectInstance          *effectInstance();
        const EffectInstance    *effectInstance() const;
Hugo Beauzée-Luyssen's avatar
Hugo Beauzée-Luyssen committed
45 46
        EffectUser              *target();
        void                    setTarget( EffectUser *target );
47 48

    private:
Hugo Beauzée-Luyssen's avatar
Hugo Beauzée-Luyssen committed
49
        EffectInstance          *m_effectInstance;
Hugo Beauzée-Luyssen's avatar
Hugo Beauzée-Luyssen committed
50
        EffectUser              *m_target;
51 52 53 54 55
};

Q_DECLARE_METATYPE( EffectHelper* );

#endif // EFFECTHELPER_H