diff options
author | Wolf Bergenheim <ext-wolf.2.bergenheim@nokia.com> | 2010-02-18 12:52:29 +0200 |
---|---|---|
committer | Wolf Bergenheim <ext-wolf.2.bergenheim@nokia.com> | 2010-02-18 12:52:29 +0200 |
commit | a36aef2b7c5128785a60213a6607191a8bfb1ecf (patch) | |
tree | add37ed9e8b7172dd5df4fab24a4333a0dd7116c /libresourceqt/include/qt4/policy | |
parent | fdb67c341fcb9ea0ae29a7889227ded6ac66a362 (diff) | |
download | libresourceqt-a36aef2b7c5128785a60213a6607191a8bfb1ecf.tar.gz |
astyled the code
Diffstat (limited to 'libresourceqt/include/qt4/policy')
-rw-r--r-- | libresourceqt/include/qt4/policy/audio-resource.h | 13 | ||||
-rw-r--r-- | libresourceqt/include/qt4/policy/resource-set.h | 6 |
2 files changed, 11 insertions, 8 deletions
diff --git a/libresourceqt/include/qt4/policy/audio-resource.h b/libresourceqt/include/qt4/policy/audio-resource.h index 1736fdb..1ba5f5a 100644 --- a/libresourceqt/include/qt4/policy/audio-resource.h +++ b/libresourceqt/include/qt4/policy/audio-resource.h @@ -17,26 +17,29 @@ public: virtual ~AudioResource(); QString audioGroup() const; + bool audioGroupIsSet() const; void setAudioGroup(const QString & newGroup); quint32 processID() const; void setProcessID(quint32 newPID); - QString streamTag() const; - void setStreamTag(const QString & newStreamTag); + QString streamTagName() const; + QString streamTagValue() const; + bool streamTagIsSet() const; + void setStreamTag(const QString &name, const QString &value); virtual ResourceType type() const; virtual Resource * clone() const; private: QString group; quint32 pid; - QString stream; + QString streamName; + QString streamValue; signals: void pidChanged(quint32 newPid); void audioGroupChanged(const QString &newGroup); - void streamTagChanged(const QString &newTag); + void streamTagChanged(const QString &name, const QString &value); }; } #endif - diff --git a/libresourceqt/include/qt4/policy/resource-set.h b/libresourceqt/include/qt4/policy/resource-set.h index 8f0c7a6..fff63d1 100644 --- a/libresourceqt/include/qt4/policy/resource-set.h +++ b/libresourceqt/include/qt4/policy/resource-set.h @@ -34,7 +34,7 @@ * resources->addResource(videoResource); * \endcode * The resource set now has control over the Resource object pointers. You can - * drop them, but should NOT delete them. Instead call the ResourcePolicy::ResourceSet::deleteResource() + * drop them, but should NOT delete them. Instead call the ResourcePolicy::ResourceSet::deleteResource() * method. Then when you want to acquire the \ref ResourcePolicy::ResourceSet * you simply use the \ref ResourcePolicy::ResourceSetacquire() method, like this: * \code @@ -229,7 +229,7 @@ private: bool pendingAudioGroup; bool pendingAudioStream; bool pendingAudioPid; - + private slots: void connectedHandler(); void handleGranted(quint32); @@ -240,7 +240,7 @@ private slots: void handleAudioPidChange(quint32 newPid); void handleAudioGroupChange(const QString &newGroup); - void handleAudioStreamTagChanged(const QString &newGroup); + void handleAudioStreamTagChanged(const QString &name, const QString &value); }; } |