| abstractmediastream.h | | abstractmediastream.h | |
| | | | |
| skipping to change at line 42 | | skipping to change at line 42 | |
| | | | |
| class QByteArray; | | class QByteArray; | |
| | | | |
| #ifndef QT_NO_PHONON_ABSTRACTMEDIASTREAM | | #ifndef QT_NO_PHONON_ABSTRACTMEDIASTREAM | |
| | | | |
| namespace Phonon | | namespace Phonon | |
| { | | { | |
| class MediaObject; | | class MediaObject; | |
| class AbstractMediaStreamPrivate; | | class AbstractMediaStreamPrivate; | |
| | | | |
|
| /** \class AbstractMediaStream abstractmediastream.h Phonon/AbstractMediaSt
ream | | /** \class AbstractMediaStream abstractmediastream.h phonon/AbstractMediaSt
ream | |
| * \brief Base class for custom media data streams. | | * \brief Base class for custom media data streams. | |
| * | | * | |
| * Implement this class to provide a custom data stream to the backend. The
class supports both, the | | * Implement this class to provide a custom data stream to the backend. The
class supports both, the | |
| * push and the pull model. | | * push and the pull model. | |
| * | | * | |
| * Push: | | * Push: | |
| * \code | | * \code | |
| * PushStream::PushStream(QObject *parent) | | * PushStream::PushStream(QObject *parent) | |
| * : AbstractMediaStream(parent), m_timer(new QTimer(this)) | | * : AbstractMediaStream(parent), m_timer(new QTimer(this)) | |
| * { | | * { | |
| | | | |
| skipping to change at line 217 | | skipping to change at line 217 | |
| * Reimplement this function if your stream is seekable. | | * Reimplement this function if your stream is seekable. | |
| * | | * | |
| * When this function is called the next call to writeData has to b
e at the requested \p | | * When this function is called the next call to writeData has to b
e at the requested \p | |
| * offset. | | * offset. | |
| * | | * | |
| * \warning Do not call the parent implementation. | | * \warning Do not call the parent implementation. | |
| */ | | */ | |
| virtual void seekStream(qint64 offset); | | virtual void seekStream(qint64 offset); | |
| | | | |
| AbstractMediaStream(AbstractMediaStreamPrivate &dd, QObject *parent
); | | AbstractMediaStream(AbstractMediaStreamPrivate &dd, QObject *parent
); | |
|
| AbstractMediaStreamPrivate *d_ptr; | | QScopedPointer<AbstractMediaStreamPrivate> d_ptr; | |
| }; | | }; | |
| | | | |
| } // namespace Phonon | | } // namespace Phonon | |
| | | | |
| #endif //QT_NO_PHONON_ABSTRACTMEDIASTREAM | | #endif //QT_NO_PHONON_ABSTRACTMEDIASTREAM | |
| | | | |
| QT_END_NAMESPACE | | QT_END_NAMESPACE | |
| QT_END_HEADER | | QT_END_HEADER | |
| | | | |
| #endif // PHONON_ABSTRACTMEDIASTREAM_H | | #endif // PHONON_ABSTRACTMEDIASTREAM_H | |
| | | | |
End of changes. 2 change blocks. |
| 2 lines changed or deleted | | 2 lines changed or added | |
|
| audiooutput.h | | audiooutput.h | |
| | | | |
| skipping to change at line 41 | | skipping to change at line 41 | |
| QT_BEGIN_HEADER | | QT_BEGIN_HEADER | |
| QT_BEGIN_NAMESPACE | | QT_BEGIN_NAMESPACE | |
| | | | |
| class QString; | | class QString; | |
| | | | |
| class AudioOutputAdaptor; | | class AudioOutputAdaptor; | |
| namespace Phonon | | namespace Phonon | |
| { | | { | |
| class AudioOutputPrivate; | | class AudioOutputPrivate; | |
| | | | |
|
| /** \class AudioOutput audiooutput.h Phonon/AudioOutput | | /** \class AudioOutput audiooutput.h phonon/AudioOutput | |
| * \short Class for audio output to the soundcard. | | * \short Class for audio output to the soundcard. | |
| * | | * | |
| * Use this class to define the audio output. | | * Use this class to define the audio output. | |
| * | | * | |
| * \ingroup Frontend | | * \ingroup Frontend | |
| * \author Matthias Kretz <kretz@kde.org> | | * \author Matthias Kretz <kretz@kde.org> | |
| * \see Phonon::Ui::VolumeSlider | | * \see Phonon::Ui::VolumeSlider | |
| */ | | */ | |
| class PHONON_EXPORT AudioOutput : public AbstractAudioOutput | | class PHONON_EXPORT AudioOutput : public AbstractAudioOutput | |
| { | | { | |
| | | | |
| skipping to change at line 169 | | skipping to change at line 169 | |
| * | | * | |
| * The change can happen either through setOutputDevice or if t
he | | * The change can happen either through setOutputDevice or if t
he | |
| * global configuration for the used category has changed. | | * global configuration for the used category has changed. | |
| * | | * | |
| * \see outputDevice | | * \see outputDevice | |
| */ | | */ | |
| void outputDeviceChanged(const Phonon::AudioOutputDevice &newAu
dioOutputDevice); | | void outputDeviceChanged(const Phonon::AudioOutputDevice &newAu
dioOutputDevice); | |
| | | | |
| private: | | private: | |
| Q_PRIVATE_SLOT(k_func(), void _k_volumeChanged(qreal)) | | Q_PRIVATE_SLOT(k_func(), void _k_volumeChanged(qreal)) | |
|
| | | Q_PRIVATE_SLOT(k_func(), void _k_mutedChanged(bool)) | |
| Q_PRIVATE_SLOT(k_func(), void _k_revertFallback()) | | Q_PRIVATE_SLOT(k_func(), void _k_revertFallback()) | |
| Q_PRIVATE_SLOT(k_func(), void _k_audioDeviceFailed()) | | Q_PRIVATE_SLOT(k_func(), void _k_audioDeviceFailed()) | |
| Q_PRIVATE_SLOT(k_func(), void _k_deviceListChanged()) | | Q_PRIVATE_SLOT(k_func(), void _k_deviceListChanged()) | |
|
| | | Q_PRIVATE_SLOT(k_func(), void _k_deviceChanged(int device)) | |
| }; | | }; | |
| } //namespace Phonon | | } //namespace Phonon | |
| | | | |
| QT_END_NAMESPACE | | QT_END_NAMESPACE | |
| QT_END_HEADER | | QT_END_HEADER | |
| | | | |
| // vim: sw=4 ts=4 tw=80 | | // vim: sw=4 ts=4 tw=80 | |
| #endif // Phonon_AUDIOOUTPUT_H | | #endif // Phonon_AUDIOOUTPUT_H | |
| | | | |
End of changes. 3 change blocks. |
| 1 lines changed or deleted | | 3 lines changed or added | |
|
| backendcapabilities.h | | backendcapabilities.h | |
| | | | |
| skipping to change at line 54 | | skipping to change at line 54 | |
| { | | { | |
| | | | |
| /** | | /** | |
| * Collection of functions describing the capabilities of the Backend. | | * Collection of functions describing the capabilities of the Backend. | |
| * | | * | |
| * \ingroup BackendInformation | | * \ingroup BackendInformation | |
| * \author Matthias Kretz <kretz@kde.org> | | * \author Matthias Kretz <kretz@kde.org> | |
| */ | | */ | |
| namespace BackendCapabilities | | namespace BackendCapabilities | |
| { | | { | |
|
| /** \class Notifier backendcapabilities.h Phonon/BackendCapabilities | | /** \class Notifier backendcapabilities.h phonon/BackendCapabilities | |
| * Notifications about backend capabilities. | | * Notifications about backend capabilities. | |
| * | | * | |
| * \ingroup BackendInformation | | * \ingroup BackendInformation | |
| */ | | */ | |
| class Notifier : public QObject | | class Notifier : public QObject | |
| { | | { | |
| Q_OBJECT | | Q_OBJECT | |
| Q_SIGNALS: | | Q_SIGNALS: | |
| /** | | /** | |
| * This signal is emitted if the capabilities have changed. Thi
s can | | * This signal is emitted if the capabilities have changed. Thi
s can | |
| | | | |
| skipping to change at line 91 | | skipping to change at line 91 | |
| * | | * | |
| * Check BackendCapabilities::availableAudioCaptureDevices to g
et the | | * Check BackendCapabilities::availableAudioCaptureDevices to g
et the | |
| * current list of available devices. | | * current list of available devices. | |
| */ | | */ | |
| #ifndef QT_NO_PHONON_AUDIOCAPTURE | | #ifndef QT_NO_PHONON_AUDIOCAPTURE | |
| void availableAudioCaptureDevicesChanged(); | | void availableAudioCaptureDevicesChanged(); | |
| #endif //QT_NO_PHONON_AUDIOCAPTURE | | #endif //QT_NO_PHONON_AUDIOCAPTURE | |
| }; | | }; | |
| | | | |
| /** | | /** | |
|
| * Use this function to get a QObject pointer to connect to the capabil
itiesChanged signal. | | * Use this function to get a QObject pointer to connect to one of the
Notifier signals. | |
| * | | * | |
| * \return a pointer to a QObject. | | * \return a pointer to a QObject. | |
| * | | * | |
|
| * The capabilitiesChanged signal is emitted if the capabilities have c | | * To connect to the signal do the following: | |
| hanged. This can | | | |
| * happen if the user has requested a backend change. | | | |
| * | | | |
| * To connect to this signal do the following: | | | |
| * \code | | * \code | |
| * QObject::connect(BackendCapabilities::notifier(), SIGNAL(capabilitie
sChanged()), ... | | * QObject::connect(BackendCapabilities::notifier(), SIGNAL(capabilitie
sChanged()), ... | |
| * \endcode | | * \endcode | |
| * | | * | |
| * \see Notifier::capabilitiesChanged() | | * \see Notifier::capabilitiesChanged() | |
|
| | | * \see Notifier::availableAudioOutputDevicesChanged() | |
| | | * \see Notifier::availableAudioCaptureDevicesChanged() | |
| */ | | */ | |
| PHONON_EXPORT Notifier *notifier(); | | PHONON_EXPORT Notifier *notifier(); | |
| | | | |
| /** | | /** | |
| * Returns a list of mime types that the Backend can decode. | | * Returns a list of mime types that the Backend can decode. | |
| * | | * | |
| * \see isMimeTypeAvailable() | | * \see isMimeTypeAvailable() | |
| */ | | */ | |
| PHONON_EXPORT QStringList availableMimeTypes(); | | PHONON_EXPORT QStringList availableMimeTypes(); | |
| | | | |
| | | | |
End of changes. 4 change blocks. |
| 7 lines changed or deleted | | 5 lines changed or added | |
|
| mediaobject.h | | mediaobject.h | |
| | | | |
| skipping to change at line 38 | | skipping to change at line 38 | |
| #include "phonondefs.h" | | #include "phonondefs.h" | |
| #include "phononnamespace.h" | | #include "phononnamespace.h" | |
| | | | |
| QT_BEGIN_HEADER | | QT_BEGIN_HEADER | |
| QT_BEGIN_NAMESPACE | | QT_BEGIN_NAMESPACE | |
| | | | |
| namespace Phonon | | namespace Phonon | |
| { | | { | |
| class MediaObjectPrivate; | | class MediaObjectPrivate; | |
| | | | |
|
| /** \class MediaObject mediaobject.h Phonon/MediaObject | | /** \class MediaObject mediaobject.h phonon/MediaObject | |
| * \short Interface for media playback of a given URL. | | * \short Interface for media playback of a given URL. | |
| * | | * | |
| * This class is the most important class in %Phonon. Use it to open a
media | | * This class is the most important class in %Phonon. Use it to open a
media | |
| * file at an arbitrary location, a CD or DVD or to stream media data f
rom | | * file at an arbitrary location, a CD or DVD or to stream media data f
rom | |
| * the application to the backend. | | * the application to the backend. | |
| * | | * | |
| * This class controls the state (play, pause, stop, seek) | | * This class controls the state (play, pause, stop, seek) | |
| * and you can use it to get a lot of information about the media data. | | * and you can use it to get a lot of information about the media data. | |
| * | | * | |
| * Notice that most functions of this class are asynchronous. | | * Notice that most functions of this class are asynchronous. | |
| | | | |
| skipping to change at line 201 | | skipping to change at line 201 | |
| * otherwise. | | * otherwise. | |
| * | | * | |
| * \see hasVideoChanged | | * \see hasVideoChanged | |
| */ | | */ | |
| bool hasVideo() const; | | bool hasVideo() const; | |
| | | | |
| /** | | /** | |
| * Check whether the current media may be seeked. | | * Check whether the current media may be seeked. | |
| * | | * | |
| * \warning This information cannot be known immediately. It is
best | | * \warning This information cannot be known immediately. It is
best | |
|
| * to also listen to the hasVideoChanged signal. | | * to also listen to the seekableChanged signal. | |
| * | | * | |
| * \code | | * \code | |
|
| * connect(media, SIGNAL(hasVideoChanged(bool)), hasVideoChan
ged(bool)); | | * connect(media, SIGNAL(seekableChanged(bool)), seekableChan
ged(bool)); | |
| * media->setCurrentSource("somevideo.avi"); | | * media->setCurrentSource("somevideo.avi"); | |
|
| * media->hasVideo(); // returns false; | | * media->isSeekable(); // returns false; | |
| * } | | * } | |
| * | | * | |
|
| * void hasVideoChanged(bool b) | | * void seekableChanged(bool b) | |
| * { | | * { | |
| * // b == true | | * // b == true | |
|
| * media->hasVideo(); // returns true; | | * media->isSeekable(); // returns true; | |
| * } | | * } | |
| * \endcode | | * \endcode | |
| * | | * | |
| * \return \c true when the current media may be seeked. \c fal
se | | * \return \c true when the current media may be seeked. \c fal
se | |
| * otherwise. | | * otherwise. | |
| * | | * | |
| * \see seekableChanged() | | * \see seekableChanged() | |
| */ | | */ | |
| bool isSeekable() const; | | bool isSeekable() const; | |
| | | | |
| | | | |
| skipping to change at line 304 | | skipping to change at line 304 | |
| * \code | | * \code | |
| * QUrl url("http://www.example.com/music.ogg"); | | * QUrl url("http://www.example.com/music.ogg"); | |
| * media->setCurrentSource(url); | | * media->setCurrentSource(url); | |
| * \endcode | | * \endcode | |
| * | | * | |
| * \see currentSource | | * \see currentSource | |
| */ | | */ | |
| void setCurrentSource(const MediaSource &source); | | void setCurrentSource(const MediaSource &source); | |
| | | | |
| /** | | /** | |
|
| * Returns the queued media sources. This does list does not in
clude | | * Returns the queued media sources. This list does not include | |
| * the current source (returned by currentSource). | | * the current source (returned by currentSource). | |
| */ | | */ | |
| QList<MediaSource> queue() const; | | QList<MediaSource> queue() const; | |
| | | | |
| /** | | /** | |
| * Set the MediaSources to play when the current media has fini
shed. | | * Set the MediaSources to play when the current media has fini
shed. | |
| * | | * | |
| * This function will overwrite the current queue. | | * This function will overwrite the current queue. | |
| * | | * | |
| * \see clearQueue | | * \see clearQueue | |
| | | | |
| skipping to change at line 459 | | skipping to change at line 459 | |
| /** | | /** | |
| * Stops and removes all playing and enqueued media sources. | | * Stops and removes all playing and enqueued media sources. | |
| * | | * | |
| * \see setCurrentSource | | * \see setCurrentSource | |
| */ | | */ | |
| void clear(); | | void clear(); | |
| | | | |
| Q_SIGNALS: | | Q_SIGNALS: | |
| /** | | /** | |
| * Emitted when the state of the MediaObject has changed. | | * Emitted when the state of the MediaObject has changed. | |
|
| * In case you're not interested in the old state you can also | | | |
| * connect to a slot that only has one State argument. | | | |
| * | | * | |
| * @param newstate The state the Player is in now. | | * @param newstate The state the Player is in now. | |
| * @param oldstate The state the Player was in before. | | * @param oldstate The state the Player was in before. | |
| */ | | */ | |
| void stateChanged(Phonon::State newstate, Phonon::State oldstat
e); | | void stateChanged(Phonon::State newstate, Phonon::State oldstat
e); | |
| | | | |
| /** | | /** | |
| * This signal gets emitted every tickInterval milliseconds. | | * This signal gets emitted every tickInterval milliseconds. | |
| * | | * | |
| * @param time The position of the media file in milliseconds. | | * @param time The position of the media file in milliseconds. | |
| | | | |
| skipping to change at line 590 | | skipping to change at line 588 | |
| * \see setPrefinishMark | | * \see setPrefinishMark | |
| * \see prefinishMark | | * \see prefinishMark | |
| * \see aboutToFinish | | * \see aboutToFinish | |
| * \see finished | | * \see finished | |
| */ | | */ | |
| void prefinishMarkReached(qint32 msecToEnd); | | void prefinishMarkReached(qint32 msecToEnd); | |
| | | | |
| /** | | /** | |
| * This signal is emitted as soon as the total time of the medi
a file is | | * This signal is emitted as soon as the total time of the medi
a file is | |
| * known or has changed. For most non-local media data the tota
l | | * known or has changed. For most non-local media data the tota
l | |
|
| * time of the media can only be known after some time. At that
time the | | * time of the media can only be known after some time. Initial
ly the | |
| * totalTime function can not return useful information. You ha
ve | | * totalTime function can not return useful information. You ha
ve | |
| * to wait for this signal to know the real total time. | | * to wait for this signal to know the real total time. | |
| * | | * | |
| * \param newTotalTime The length of the media file in millisec
onds. | | * \param newTotalTime The length of the media file in millisec
onds. | |
| * | | * | |
| * \see totalTime | | * \see totalTime | |
| */ | | */ | |
| void totalTimeChanged(qint64 newTotalTime); | | void totalTimeChanged(qint64 newTotalTime); | |
| | | | |
| protected: | | protected: | |
| | | | |
End of changes. 9 change blocks. |
| 10 lines changed or deleted | | 8 lines changed or added | |
|
| objectdescriptionmodel.h | | objectdescriptionmodel.h | |
| | | | |
| skipping to change at line 38 | | skipping to change at line 38 | |
| #include "objectdescription.h" | | #include "objectdescription.h" | |
| #include <QtCore/QList> | | #include <QtCore/QList> | |
| #include <QtCore/QModelIndex> | | #include <QtCore/QModelIndex> | |
| #include <QtCore/QStringList> | | #include <QtCore/QStringList> | |
| | | | |
| QT_BEGIN_HEADER | | QT_BEGIN_HEADER | |
| QT_BEGIN_NAMESPACE | | QT_BEGIN_NAMESPACE | |
| | | | |
| #ifndef QT_NO_PHONON_OBJECTDESCRIPTIONMODEL | | #ifndef QT_NO_PHONON_OBJECTDESCRIPTIONMODEL | |
| | | | |
|
| /* MinGW 3.4.x gives an ICE when trying to instantiate one of the | | | |
| ObjectDescriptionModel<foo> classes because it can't handle | | | |
| half exported classes correct. gcc 4.3.x has a fix for this but | | | |
| we currently there's no official gcc 4.3 on windows available. | | | |
| Because of this we need this little hack | | | |
| */ | | | |
| #if defined(Q_CC_MINGW) | | | |
| #define PHONON_EXPORT_ODM | | | |
| #else | | | |
| #define PHONON_EXPORT_ODM PHONON_EXPORT | | | |
| #endif | | | |
| | | | |
| namespace Phonon | | namespace Phonon | |
| { | | { | |
| class ObjectDescriptionModelDataPrivate; | | class ObjectDescriptionModelDataPrivate; | |
| | | | |
| /** \internal | | /** \internal | |
|
| * \class ObjectDescriptionModelData objectdescriptionmodel.h Phonon/Ob
jectDescriptionModelData | | * \class ObjectDescriptionModelData objectdescriptionmodel.h phonon/Ob
jectDescriptionModelData | |
| * \brief Data class for models for ObjectDescription objects. | | * \brief Data class for models for ObjectDescription objects. | |
| * | | * | |
| * \author Matthias Kretz <kretz@kde.org> | | * \author Matthias Kretz <kretz@kde.org> | |
| */ | | */ | |
| class PHONON_EXPORT ObjectDescriptionModelData | | class PHONON_EXPORT ObjectDescriptionModelData | |
| { | | { | |
| public: | | public: | |
| /** | | /** | |
| * Returns the number of rows in the model. This value correspo
nds | | * Returns the number of rows in the model. This value correspo
nds | |
| * to the size of the list passed through setModelData. | | * to the size of the list passed through setModelData. | |
| | | | |
| skipping to change at line 154 | | skipping to change at line 142 | |
| bool removeRows(int row, int count, const QModelIndex &parent =
QModelIndex()); | | bool removeRows(int row, int count, const QModelIndex &parent =
QModelIndex()); | |
| QStringList mimeTypes(ObjectDescriptionType type) const; | | QStringList mimeTypes(ObjectDescriptionType type) const; | |
| | | | |
| ObjectDescriptionModelData(QAbstractListModel *); | | ObjectDescriptionModelData(QAbstractListModel *); | |
| protected: | | protected: | |
| ~ObjectDescriptionModelData(); | | ~ObjectDescriptionModelData(); | |
| //ObjectDescriptionModelData(ObjectDescriptionModelDataPrivate
*dd); | | //ObjectDescriptionModelData(ObjectDescriptionModelDataPrivate
*dd); | |
| ObjectDescriptionModelDataPrivate *const d; | | ObjectDescriptionModelDataPrivate *const d; | |
| }; | | }; | |
| | | | |
|
| | | /* Required to ensure template class vtables are exported on both symbian | |
| | | and existing builds. */ | |
| | | #if defined(Q_OS_SYMBIAN) && defined(Q_CC_RVCT) | |
| | | // RVCT compiler (2.2.686) requires the export declaration to be on the cla | |
| | | ss to export vtables | |
| | | // MWC compiler works both ways | |
| | | // GCCE compiler is unknown (it can't compile QtCore yet) | |
| | | #define PHONON_TEMPLATE_CLASS_EXPORT PHONON_EXPORT | |
| | | #define PHONON_TEMPLATE_CLASS_MEMBER_EXPORT | |
| | | #else | |
| | | // Windows builds (at least) do not support export declaration on templated | |
| | | class | |
| | | // But if you export a member function, the vtable is implicitly exported | |
| | | #define PHONON_TEMPLATE_CLASS_EXPORT | |
| | | #define PHONON_TEMPLATE_CLASS_MEMBER_EXPORT PHONON_EXPORT | |
| | | #endif | |
| | | | |
| /** \class ObjectDescriptionModel objectdescriptionmodel.h Phonon/Objec
tDescriptionModel | | /** \class ObjectDescriptionModel objectdescriptionmodel.h Phonon/Objec
tDescriptionModel | |
| * \short The ObjectDescriptionModel class provides a model from | | * \short The ObjectDescriptionModel class provides a model from | |
| * a list of ObjectDescription objects. | | * a list of ObjectDescription objects. | |
| * | | * | |
| * ObjectDescriptionModel is a readonly model that supplies a list | | * ObjectDescriptionModel is a readonly model that supplies a list | |
| * using ObjectDescription::name() for the text and | | * using ObjectDescription::name() for the text and | |
| * ObjectDescription::description() for the tooltip. If set the propert
ies | | * ObjectDescription::description() for the tooltip. If set the propert
ies | |
| * "icon" and "available" are used to set the decoration and disable th
e | | * "icon" and "available" are used to set the decoration and disable th
e | |
| * item (disabled only visually, you can still select and drag it). | | * item (disabled only visually, you can still select and drag it). | |
| * | | * | |
| | | | |
| skipping to change at line 190 | | skipping to change at line 193 | |
| * And to retrieve the selected AudioOutputDevice: | | * And to retrieve the selected AudioOutputDevice: | |
| * \code | | * \code | |
| * int cbIndex = cb->currentIndex(); | | * int cbIndex = cb->currentIndex(); | |
| * AudioOutputDevice selectedDevice = model->modelData(cbIndex); | | * AudioOutputDevice selectedDevice = model->modelData(cbIndex); | |
| * \endcode | | * \endcode | |
| * | | * | |
| * \ingroup Frontend | | * \ingroup Frontend | |
| * \author Matthias Kretz <kretz@kde.org> | | * \author Matthias Kretz <kretz@kde.org> | |
| */ | | */ | |
| template<ObjectDescriptionType type> | | template<ObjectDescriptionType type> | |
|
| class ObjectDescriptionModel : public QAbstractListModel | | class PHONON_TEMPLATE_CLASS_EXPORT ObjectDescriptionModel : public QAbs
tractListModel | |
| { | | { | |
| public: | | public: | |
| Q_OBJECT_CHECK | | Q_OBJECT_CHECK | |
|
| | | | |
| /** \internal */ | | /** \internal */ | |
|
| static PHONON_EXPORT const QMetaObject staticMetaObject; | | static PHONON_TEMPLATE_CLASS_MEMBER_EXPORT const QMetaObject st
aticMetaObject; | |
| /** \internal */ | | /** \internal */ | |
|
| PHONON_EXPORT_ODM const QMetaObject *metaObject() const; | | PHONON_TEMPLATE_CLASS_MEMBER_EXPORT const QMetaObject *metaObje
ct() const; | |
| /** \internal */ | | /** \internal */ | |
|
| PHONON_EXPORT_ODM void *qt_metacast(const char *_clname); | | PHONON_TEMPLATE_CLASS_MEMBER_EXPORT void *qt_metacast(const cha
r *_clname); | |
| //int qt_metacall(QMetaObject::Call _c, int _id, void **_a); | | //int qt_metacall(QMetaObject::Call _c, int _id, void **_a); | |
| | | | |
| /** | | /** | |
| * Returns the number of rows in the model. This value correspo
nds | | * Returns the number of rows in the model. This value correspo
nds | |
| * to the size of the list passed through setModelData. | | * to the size of the list passed through setModelData. | |
| * | | * | |
| * \param parent The optional \p parent argument is used in mos
t models to specify | | * \param parent The optional \p parent argument is used in mos
t models to specify | |
| * the parent of the rows to be counted. Because this is a list
if a | | * the parent of the rows to be counted. Because this is a list
if a | |
| * valid parent is specified the result will always be 0. | | * valid parent is specified the result will always be 0. | |
| * | | * | |
| | | | |
| skipping to change at line 298 | | skipping to change at line 302 | |
| explicit inline ObjectDescriptionModel(const QList<ObjectDescri
ption<type> > &data, QObject *parent = 0) //krazy:exclude=inline | | explicit inline ObjectDescriptionModel(const QList<ObjectDescri
ption<type> > &data, QObject *parent = 0) //krazy:exclude=inline | |
| : QAbstractListModel(parent), d(new ObjectDescriptionModelD
ata(this)) { setModelData(data); } | | : QAbstractListModel(parent), d(new ObjectDescriptionModelD
ata(this)) { setModelData(data); } | |
| | | | |
| /** | | /** | |
| * Sets the model data using the list provided by \p data. | | * Sets the model data using the list provided by \p data. | |
| * | | * | |
| * All previous model data is cleared. | | * All previous model data is cleared. | |
| */ | | */ | |
| inline void setModelData(const QList<ObjectDescription<type> >
&data) { //krazy:exclude=inline | | inline void setModelData(const QList<ObjectDescription<type> >
&data) { //krazy:exclude=inline | |
| QList<QExplicitlySharedDataPointer<ObjectDescriptionData> >
list; | | QList<QExplicitlySharedDataPointer<ObjectDescriptionData> >
list; | |
|
| Q_FOREACH (const ObjectDescription<type> &desc, data) { | | for (int i = 0; i < data.count(); ++i) { | |
| list << desc.d; | | list += data.at(i).d; | |
| } | | } | |
| d->setModelData(list); | | d->setModelData(list); | |
| } | | } | |
| | | | |
| /** | | /** | |
| * Returns the model data. | | * Returns the model data. | |
| * | | * | |
| * As the order of the list might have changed this can be diff
erent | | * As the order of the list might have changed this can be diff
erent | |
| * to what was set using setModelData(). | | * to what was set using setModelData(). | |
| */ | | */ | |
| inline QList<ObjectDescription<type> > modelData() const { //kr
azy:exclude=inline | | inline QList<ObjectDescription<type> > modelData() const { //kr
azy:exclude=inline | |
| QList<ObjectDescription<type> > ret; | | QList<ObjectDescription<type> > ret; | |
| QList<QExplicitlySharedDataPointer<ObjectDescriptionData> >
list = d->modelData(); | | QList<QExplicitlySharedDataPointer<ObjectDescriptionData> >
list = d->modelData(); | |
|
| Q_FOREACH (const QExplicitlySharedDataPointer<ObjectDescrip | | for (int i = 0; i < list.count(); ++i) { | |
| tionData> &data, list) { | | ret << ObjectDescription<type>(list.at(i)); | |
| ret << ObjectDescription<type>(data); | | | |
| } | | } | |
| return ret; | | return ret; | |
| } | | } | |
| | | | |
| /** | | /** | |
| * Returns one ObjectDescription of the model data for the give
n \p index. | | * Returns one ObjectDescription of the model data for the give
n \p index. | |
| */ | | */ | |
| inline ObjectDescription<type> modelData(const QModelIndex &ind
ex) const { return ObjectDescription<type>(d->modelData(index)); } //krazy:
exclude=inline | | inline ObjectDescription<type> modelData(const QModelIndex &ind
ex) const { return ObjectDescription<type>(d->modelData(index)); } //krazy:
exclude=inline | |
| | | | |
| /** | | /** | |
| | | | |
End of changes. 10 change blocks. |
| 22 lines changed or deleted | | 27 lines changed or added | |
|
| pulsesupport.h | | pulsesupport.h | |
| | | | |
| skipping to change at line 38 | | skipping to change at line 38 | |
| #include "objectdescription.h" | | #include "objectdescription.h" | |
| | | | |
| #include <QtCore/QtGlobal> | | #include <QtCore/QtGlobal> | |
| #include <QtCore/QSet> | | #include <QtCore/QSet> | |
| | | | |
| QT_BEGIN_HEADER | | QT_BEGIN_HEADER | |
| QT_BEGIN_NAMESPACE | | QT_BEGIN_NAMESPACE | |
| | | | |
| namespace Phonon | | namespace Phonon | |
| { | | { | |
|
| | | class PulseStream; | |
| class PHONON_EXPORT PulseSupport : public QObject | | class PHONON_EXPORT PulseSupport : public QObject | |
| { | | { | |
| Q_OBJECT | | Q_OBJECT | |
| public: | | public: | |
| static PulseSupport* getInstance(); | | static PulseSupport* getInstance(); | |
| static void shutdown(); | | static void shutdown(); | |
| | | | |
| bool isActive(); | | bool isActive(); | |
| void enable(bool enabled = true); | | void enable(bool enabled = true); | |
| | | | |
| QList<int> objectDescriptionIndexes(ObjectDescriptionType type)
const; | | QList<int> objectDescriptionIndexes(ObjectDescriptionType type)
const; | |
| QHash<QByteArray, QVariant> objectDescriptionProperties(ObjectD
escriptionType type, int index) const; | | QHash<QByteArray, QVariant> objectDescriptionProperties(ObjectD
escriptionType type, int index) const; | |
| QList<int> objectIndexesByCategory(ObjectDescriptionType type,
Category category) const; | | QList<int> objectIndexesByCategory(ObjectDescriptionType type,
Category category) const; | |
| | | | |
| void setOutputDevicePriorityForCategory(Category category, QLis
t<int> order); | | void setOutputDevicePriorityForCategory(Category category, QLis
t<int> order); | |
| void setCaptureDevicePriorityForCategory(Category category, QLi
st<int> order); | | void setCaptureDevicePriorityForCategory(Category category, QLi
st<int> order); | |
| | | | |
|
| void setStreamPropList(Category category, QString streamUuid); | | PulseStream *registerOutputStream(QString streamUuid, Category | |
| | | category); | |
| | | PulseStream *registerCaptureStream(QString streamUuid, Category | |
| | | category); | |
| void emitObjectDescriptionChanged(ObjectDescriptionType); | | void emitObjectDescriptionChanged(ObjectDescriptionType); | |
| | | | |
|
| | | bool setOutputName(QString streamUuid, QString name); | |
| bool setOutputDevice(QString streamUuid, int device); | | bool setOutputDevice(QString streamUuid, int device); | |
|
| | | bool setOutputVolume(QString streamUuid, qreal volume); | |
| | | bool setOutputMute(QString streamUuid, bool mute); | |
| bool setCaptureDevice(QString streamUuid, int device); | | bool setCaptureDevice(QString streamUuid, int device); | |
|
| | | // NB Capture Volume/Mute not set until PA supports per-source- | |
| | | output volumes/mutes | |
| | | // or phonon supports capture properly... which ever comes f | |
| | | irst. | |
| void clearStreamCache(QString streamUuid); | | void clearStreamCache(QString streamUuid); | |
| | | | |
|
| | | public slots: | |
| | | void connectToDaemon(); | |
| | | | |
| signals: | | signals: | |
| void objectDescriptionChanged(ObjectDescriptionType); | | void objectDescriptionChanged(ObjectDescriptionType); | |
|
| | | | |
| private: | | private: | |
| PulseSupport(); | | PulseSupport(); | |
| ~PulseSupport(); | | ~PulseSupport(); | |
| | | | |
| bool mEnabled; | | bool mEnabled; | |
| }; | | }; | |
| } // namespace Phonon | | } // namespace Phonon | |
| | | | |
| QT_END_NAMESPACE | | QT_END_NAMESPACE | |
| QT_END_HEADER | | QT_END_HEADER | |
| | | | |
End of changes. 7 change blocks. |
| 1 lines changed or deleted | | 16 lines changed or added | |
|