[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/multimedia/k3b/libk3bdevice
From: Sebastian Trueg <sebastian () trueg ! de>
Date: 2005-10-20 19:28:42
Message-ID: 1129836522.802560.12579.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 472444 by trueg:
I have no idea why charles reverted this without asking me... but well, making them const again.
M +7 -7 k3bdevicemanager.cpp
M +7 -7 k3bdevicemanager.h
--- trunk/extragear/multimedia/k3b/libk3bdevice/k3bdevicemanager.cpp #472443:472444
@@ -188,40 +188,40 @@
}
-QPtrList<K3bDevice::Device>& K3bDevice::DeviceManager::cdWriter()
+const QPtrList<K3bDevice::Device>& K3bDevice::DeviceManager::cdWriter() const
{
return d->cdWriter;
}
-QPtrList<K3bDevice::Device>& K3bDevice::DeviceManager::cdReader()
+const QPtrList<K3bDevice::Device>& K3bDevice::DeviceManager::cdReader() const
{
return d->cdReader;
}
-QPtrList<K3bDevice::Device>& K3bDevice::DeviceManager::dvdWriter()
+const QPtrList<K3bDevice::Device>& K3bDevice::DeviceManager::dvdWriter() const
{
return d->dvdWriter;
}
-QPtrList<K3bDevice::Device>& K3bDevice::DeviceManager::dvdReader()
+const QPtrList<K3bDevice::Device>& K3bDevice::DeviceManager::dvdReader() const
{
return d->dvdReader;
}
-QPtrList<K3bDevice::Device>& K3bDevice::DeviceManager::burningDevices()
+const QPtrList<K3bDevice::Device>& K3bDevice::DeviceManager::burningDevices() const
{
return cdWriter();
}
-QPtrList<K3bDevice::Device>& K3bDevice::DeviceManager::readingDevices()
+const QPtrList<K3bDevice::Device>& K3bDevice::DeviceManager::readingDevices() const
{
return cdReader();
}
-QPtrList<K3bDevice::Device>& K3bDevice::DeviceManager::allDevices()
+const QPtrList<K3bDevice::Device>& K3bDevice::DeviceManager::allDevices() const
{
return d->allDevices;
}
--- trunk/extragear/multimedia/k3b/libk3bdevice/k3bdevicemanager.h #472443:472444
@@ -103,13 +103,13 @@
* \return List of all cd writer devices.
* \deprecated use cdWriter()
*/
- QPtrList<Device>& burningDevices();
+ const QPtrList<Device>& burningDevices() const;
/**
* \return List of all reader devices without writer devices.
* \deprecated use cdReader()
**/
- QPtrList<Device>& readingDevices();
+ const QPtrList<Device>& readingDevices() const;
/**
* Before getting the devices do a @ref scanBus() or add
@@ -117,7 +117,7 @@
*
* \return List of all devices.
*/
- QPtrList<Device>& allDevices();
+ const QPtrList<Device>& allDevices() const;
/**
* Before getting the devices do a @ref scanBus() or add
@@ -125,7 +125,7 @@
*
* \return List of all cd writer devices.
*/
- QPtrList<Device>& cdWriter();
+ const QPtrList<Device>& cdWriter() const;
/**
* Before getting the devices do a @ref scanBus() or add
@@ -133,7 +133,7 @@
*
* \return List of all cd reader devices.
*/
- QPtrList<Device>& cdReader();
+ const QPtrList<Device>& cdReader() const;
/**
* Before getting the devices do a @ref scanBus() or add
@@ -141,7 +141,7 @@
*
* \return List of all DVD writer devices.
*/
- QPtrList<Device>& dvdWriter();
+ const QPtrList<Device>& dvdWriter() const;
/**
* Before getting the devices do a @ref scanBus() or add
@@ -149,7 +149,7 @@
*
* \return List of all DVD reader devices.
*/
- QPtrList<Device>& dvdReader();
+ const QPtrList<Device>& dvdReader() const;
/**
* Reads the device information from the config file.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic