freebsd-ports/sysutils/k3b/files/patch-src-core-device-k3bdevicemanager.h
Will Andrews 2a59b4a154 Add k3b 0.10.2, a CD/DVD recording GUI for KDE.
PR:		59287
Submitted by:	Heiner Eichmann <h.eichmann@gmx.de>
2003-11-20 13:03:02 +00:00

43 lines
1.7 KiB
C++

--- src/core/device/k3bdevicemanager.h.orig Thu Aug 7 18:52:05 2003
+++ src/core/device/k3bdevicemanager.h Fri Nov 7 12:35:44 2003
@@ -24,6 +24,10 @@
#include <qptrlist.h>
#include <kdebug.h>
+#ifdef __FreeBSD__
+#include <qdatetime.h>
+#include <qvaluelist.h>
+#endif
class KProcess;
class KConfig;
@@ -116,6 +120,29 @@
class Private;
Private* d;
+#ifdef __FreeBSD__
+ void bsd_scan_devices(bool sudo);
+ QDateTime m_lastRefresh;
+ class BSDDevice
+ {
+ public:
+ BSDDevice() : m_bus(-1), m_target(-1), m_lun(-1) {}
+ BSDDevice(const QString & name, const QString & passDevice, const QString & vendor,
+ const QString & product, const QString & revision, int bus, int target, int lun) :
+ m_name(name), m_passDevice(passDevice), m_vendor(vendor), m_product(product),
+ m_revision(revision), m_bus(bus), m_target(target), m_lun(lun) {}
+ BSDDevice(const BSDDevice & src) :
+ m_name(src.m_name), m_passDevice(src.m_passDevice), m_vendor(src.m_vendor), m_product(src.m_product),
+ m_revision(src.m_revision), m_bus(src.m_bus), m_target(src.m_target), m_lun(src.m_lun) {}
+ const BSDDevice & operator= (const BSDDevice & src)
+ { m_name = src.m_name; m_passDevice = src.m_passDevice; m_vendor = src.m_vendor;
+ m_product = src.m_product; m_revision = src.m_revision; m_bus = src.m_bus; m_target = src.m_target;
+ m_lun = src.m_lun; return *this; }
+ QString m_name, m_passDevice, m_vendor, m_product, m_revision;
+ int m_bus, m_target, m_lun;
+ };
+ QValueList<BSDDevice> m_devices;
+#endif
};
/**