[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    k3b_0_11_branch: kdeextragear-1/k3b
From:       Sebastian Trueg <sebastian () trueg ! de>
Date:       2004-10-19 21:19:14
Message-ID: 20041019211914.9760416C3F () office ! kde ! org
[Download RAW message or body]

CVS commit by trueg: 

device capabilities detection improvements


  M +2 -1      ChangeLog   1.64.2.66
  M +44 -12    src/device/k3bdevice.cpp   1.87.2.30


--- kdeextragear-1/k3b/ChangeLog  #1.64.2.65:1.64.2.66
@@ -1,5 +1,6 @@
 0.11.18
 Fixed Cd-Text loading in audio projects.
-FIxed data project character restrictions.
+Fixed data project character restrictions.
+Little improvements to the device capabilities detection.
 
 0.11.17

--- kdeextragear-1/k3b/src/device/k3bdevice.cpp  #1.87.2.29:1.87.2.30
@@ -256,15 +256,47 @@ bool K3bCdDevice::CdDevice::init()
 
             switch (profile) {
-            case 0x10: d->supportedProfiles |= MEDIA_DVD_ROM; break;
-            case 0x11: d->supportedProfiles |= MEDIA_DVD_R_SEQ; break;
-            case 0x12: d->supportedProfiles |= MEDIA_DVD_RAM; break;
-            case 0x13: d->supportedProfiles |= MEDIA_DVD_RW_OVWR; break;
-            case 0x14: d->supportedProfiles |= MEDIA_DVD_RW_SEQ; break;
-            case 0x1A: d->supportedProfiles |= MEDIA_DVD_PLUS_RW; break;
-            case 0x1B: d->supportedProfiles |= MEDIA_DVD_PLUS_R; break;
-            case 0x2B: d->supportedProfiles |= MEDIA_DVD_PLUS_R_DL; break;
-            case 0x08: d->supportedProfiles |= MEDIA_CD_ROM; break;
-            case 0x09: d->supportedProfiles |= MEDIA_CD_R; break;
-            case 0x0A: d->supportedProfiles |= MEDIA_CD_RW; break;
+            case 0x10:
+              d->supportedProfiles |= MEDIA_DVD_ROM;
+              d->deviceType |= DVD;
+              break;
+            case 0x11:
+              d->supportedProfiles |= MEDIA_DVD_R_SEQ;
+              d->deviceType |= DVDR;
+              break;
+            case 0x12:
+              d->supportedProfiles |= MEDIA_DVD_RAM;
+              break;
+            case 0x13:
+              d->supportedProfiles |= MEDIA_DVD_RW_OVWR;
+              d->deviceType |= DVDRW;
+              break;
+            case 0x14:
+              d->supportedProfiles |= MEDIA_DVD_RW_SEQ;
+              d->deviceType |= DVDRW;
+              break;
+            case 0x1A:
+              d->supportedProfiles |= MEDIA_DVD_PLUS_RW;
+              d->deviceType |= DVDPRW;
+              break;
+            case 0x1B: 
+              d->supportedProfiles |= MEDIA_DVD_PLUS_R;
+              d->deviceType |= DVDPR;
+              break;
+            case 0x2B:
+              d->supportedProfiles |= MEDIA_DVD_PLUS_R_DL;
+              d->deviceType |= DVDPR;
+              break;
+            case 0x08:
+              d->supportedProfiles |= MEDIA_CD_ROM;
+              d->deviceType |= CDROM;
+              break;
+            case 0x09:
+              d->supportedProfiles |= MEDIA_CD_R;
+              d->deviceType |= CDR;
+              break;
+            case 0x0A:
+              d->supportedProfiles |= MEDIA_CD_RW;
+              d->deviceType |= CDRW;
+              break;
             default: 
               kdDebug() << "(K3bCdDevice) " << blockDeviceName() << " unknown profile: " 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic