delay a few things on startup, such as setting the visibility mode, which ensures...
[personal-kdebase.git] / runtime / phonon / tests / guitest / effectitem.h
blob409201a7d89e24fb9b39b23f3024ff2c915d463a
1 /* This file is part of the KDE project
2 Copyright (C) 2007 Matthias Kretz <kretz@kde.org>
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License version 2 as published by the Free Software Foundation.
8 This library is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
13 You should have received a copy of the GNU Library General Public License
14 along with this library; see the file COPYING.LIB. If not, write to
15 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 Boston, MA 02110-1301, USA.
20 #ifndef EFFECTITEM_H
21 #define EFFECTITEM_H
23 #include "sinkitem.h"
24 #include <Phonon/Effect>
25 #include <Phonon/EffectDescription>
27 class QModelIndex;
28 class PathItem;
30 using Phonon::Effect;
31 using Phonon::EffectDescription;
33 class EffectItem : public SinkItem
35 Q_OBJECT
36 public:
37 EffectItem(const EffectDescription &, PathItem *pathItem);
38 EffectItem(const EffectDescription &);
40 virtual MediaNode *mediaNode() { return &m_effect; }
41 virtual const MediaNode *mediaNode() const { return &m_effect; }
43 private:
44 void setupUi(const EffectDescription &desc);
46 Effect m_effect;
49 #endif // EFFECTITEM_H