delay a few things on startup, such as setting the visibility mode, which ensures...
[personal-kdebase.git] / runtime / phonon / tests / guitest / titlewidget.h
blob7d8ea2c68f01e2bfa9433968cce665b35d88c5eb
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 TITLEWIDGET_H
21 #define TITLEWIDGET_H
23 #include <QtGui/QLabel>
24 #include <QtGui/QToolButton>
25 #include <QtGui/QSpinBox>
26 #include <QtGui/QWidget>
27 #include <phonon/mediacontroller.h>
29 using Phonon::MediaController;
31 class TitleWidget : public QWidget
33 Q_OBJECT
34 public:
35 TitleWidget(QWidget *parent = 0);
36 ~TitleWidget();
37 void setInterface(MediaController *i);
39 private slots:
40 void availableTitlesChanged(int);
41 private:
42 MediaController *m_iface;
43 QSpinBox *m_currentTitle;
44 QLabel *m_availableTitles;
45 QToolButton *m_autoplay;
48 #endif // TITLEWIDGET_H