add more spacing
[personal-kdebase.git] / runtime / phonon / platform_kde / kiomediastream.h
blobfcc41283ff6345c848d6da2c00c5965ca004978f
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 PHONON_KIOMEDIASTREAM_H
21 #define PHONON_KIOMEDIASTREAM_H
23 #include <Phonon/AbstractMediaStream>
25 class QUrl;
27 namespace Phonon
30 class KioMediaStreamPrivate;
32 class KioMediaStream : public AbstractMediaStream
34 Q_OBJECT
35 Q_DECLARE_PRIVATE(KioMediaStream)
36 public:
37 explicit KioMediaStream(const QUrl &url, QObject *parent = 0);
38 ~KioMediaStream();
40 protected:
41 void reset();
42 void needData();
43 void enoughData();
44 void seekStream(qint64);
46 KioMediaStreamPrivate *d_ptr;
48 private:
49 Q_PRIVATE_SLOT(d_func(), void _k_bytestreamData(KIO::Job *, const QByteArray &))
50 Q_PRIVATE_SLOT(d_func(), void _k_bytestreamResult(KJob *))
51 Q_PRIVATE_SLOT(d_func(), void _k_bytestreamTotalSize(KJob *, qulonglong))
52 Q_PRIVATE_SLOT(d_func(), void _k_bytestreamFileJobOpen(KIO::Job *))
53 Q_PRIVATE_SLOT(d_func(), void _k_bytestreamSeekDone(KIO::Job *, KIO::filesize_t))
54 Q_PRIVATE_SLOT(d_func(), void _k_read())
57 } // namespace Phonon
58 #endif // PHONON_KIOMEDIASTREAM_H