delay a few things on startup, such as setting the visibility mode, which ensures...
[personal-kdebase.git] / runtime / renamedlgplugins / audio / audiopreview.h
blob7e771c30c2dab8773bc52e3c5998bdea1566d85c
1 /* This file is part of the KDE project
2 Copyright (C) 2003 Fabian Wolf <fabianw@gmx.net>
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public
6 License as published by the Free Software Foundation; version 2
7 of the License.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; see the file COPYING. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
20 #ifndef audiopreview_h
21 #define audiopreview_h
23 #include <kvbox.h>
25 namespace KMediaPlayer
27 class Player;
30 class QLabel;
32 class AudioPreview : public KVBox
34 Q_OBJECT
35 public:
36 AudioPreview(QWidget *parent, const KUrl &url, const QString &mimeType);
37 ~AudioPreview();
39 private slots:
40 void downloadFile(const QString& url);
42 private:
43 void initView(const QString& mimeType);
45 QLabel *pic;
46 QLabel *description;
47 QString m_localFile;
48 bool m_isTempFile;
50 KMediaPlayer::Player *m_player;
52 #endif