From a36aef2b7c5128785a60213a6607191a8bfb1ecf Mon Sep 17 00:00:00 2001 From: Wolf Bergenheim Date: Thu, 18 Feb 2010 12:52:29 +0200 Subject: astyled the code --- libresourceqt/include/qt4/policy/audio-resource.h | 13 ++++++++----- libresourceqt/include/qt4/policy/resource-set.h | 6 +++--- 2 files changed, 11 insertions(+), 8 deletions(-) (limited to 'libresourceqt/include/qt4') 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); }; } -- cgit v1.2.3