[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: [PATCH] Added a new DBus call to get the Id of the master device.
From: Kelvie Wong <kelvie () ieee ! org>
Date: 2007-12-08 1:59:45
Message-ID: 1197079185-13114-2-git-send-email-kelvie () ieee ! org
[Download RAW message or body]
---
kmix/mixer.cpp | 5 +++++
kmix/mixer.h | 1 +
kmix/org.kde.KMix.xml | 3 +++
3 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/kmix/mixer.cpp b/kmix/mixer.cpp
index 3899d6a..2fb3b9d 100644
--- a/kmix/mixer.cpp
+++ b/kmix/mixer.cpp
@@ -401,6 +401,11 @@ MixDevice* Mixer::find(const QString& mixdeviceID)
return md;
}
+// @dcop only
+QString Mixer::masterDeviceIndex()
+{
+ return getGlobalMasterMD()->id();
+}
MixDevice* Mixer::getMixdeviceById( const QString& mixdeviceID )
{
diff --git a/kmix/mixer.h b/kmix/mixer.h
index 1753249..c42e871 100644
--- a/kmix/mixer.h
+++ b/kmix/mixer.h
@@ -141,6 +141,7 @@ class Mixer : public QObject
virtual long absoluteVolumeMax( const QString& mixdeviceID );
virtual int volume( const QString& mixdeviceID );
virtual int masterVolume();
+ virtual QString masterDeviceIndex();
virtual void setMute( const QString& mixdeviceID, bool on );
virtual bool mute( const QString& mixdeviceID );
diff --git a/kmix/org.kde.KMix.xml b/kmix/org.kde.KMix.xml
index 1aef292..36c9ec8 100644
--- a/kmix/org.kde.KMix.xml
+++ b/kmix/org.kde.KMix.xml
@@ -49,6 +49,9 @@
<arg name="deviceidx" type="s" direction="in"/>
<arg type="b" direction="out"/>
</method>
+ <method name="masterDeviceIndex">
+ <arg type="s" direction="out"/>
+ </method>
<method name="setRecordSource">
<arg name="deviceidx" type="s" direction="in"/>
<arg name="on" type="b" direction="in"/>
--
1.5.3.GIT
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic