camerauis/cameraxui/cxengine/src/cxesysutil.cpp
changeset 43 0e652f8f1fbd
parent 28 3075d9b614e6
child 45 24fd82631616
equal deleted inserted replaced
28:3075d9b614e6 43:0e652f8f1fbd
   152         TVolumeInfo volumeInfo;
   152         TVolumeInfo volumeInfo;
   153         int status(fs.Volume(volumeInfo, index));
   153         int status(fs.Volume(volumeInfo, index));
   154         CX_DEBUG(("status getting volume info: %d", status));
   154         CX_DEBUG(("status getting volume info: %d", status));
   155         qt_symbian_throwIfError(status);
   155         qt_symbian_throwIfError(status);
   156 
   156 
   157         CX_DEBUG(("TVolumeInfo.iDrive.iType:     %d", volumeInfo.iDrive.iType));
       
   158         CX_DEBUG(("  EMediaNotPresent:           %d", EMediaNotPresent));
       
   159         CX_DEBUG(("  EMediaUnknown:              %d", EMediaUnknown));
       
   160         CX_DEBUG(("TVolumeInfo.iDrive.iMediaAtt: %d", volumeInfo.iDrive.iMediaAtt));
       
   161         CX_DEBUG(("  KMediaAttLocked:            %d", KMediaAttLocked));
       
   162 
       
   163         // Get critical treshold for free space on the drive.
   157         // Get critical treshold for free space on the drive.
   164         // We must leave the free space above this.
   158         // We must leave the free space above this.
   165         QVariant criticalThreshold;
   159         QVariant criticalThreshold;
   166         settings.get(KCRUidDiskLevel.iUid, KDiskCriticalThreshold, Cxe::Repository, criticalThreshold);
   160         settings.get(KCRUidDiskLevel.iUid, KDiskCriticalThreshold, Cxe::Repository, criticalThreshold);
   167 
   161 
   172         Q_UNUSED(e);
   166         Q_UNUSED(e);
   173         CX_DEBUG(("[WARNING]: exception [%s]", e.what()));
   167         CX_DEBUG(("[WARNING]: exception [%s]", e.what()));
   174         freeSpace = 0;
   168         freeSpace = 0;
   175     }
   169     }
   176 
   170 
       
   171     CX_DEBUG(("CxeSysUtil - free space: %d", freeSpace));
   177     CX_DEBUG_EXIT_FUNCTION();
   172     CX_DEBUG_EXIT_FUNCTION();
   178     return freeSpace;
   173     return freeSpace;
   179 }
   174 }
   180 
   175 
   181 // end of file
   176 // end of file