std::string CUDiskDevice::toString() { return StringUtils::Format("DeviceUDI %s: IsFileSystem %s HasFileSystem %s " "IsSystemInternal %s IsMounted %s IsRemovable %s IsPartition %s " "IsOptical %s", m_DeviceKitUDI.c_str(), BOOL2SZ(m_isFileSystem), m_FileSystem.c_str(), BOOL2SZ(m_isSystemInternal), BOOL2SZ(m_isMounted), BOOL2SZ(m_isRemovable), BOOL2SZ(m_isPartition), BOOL2SZ(m_isOptical)); }
CStdString CDeviceKitDiskDevice::toString() { CStdString str; str.Format("DeviceUDI %s: IsFileSystem %s HasFileSystem %s " "IsSystemInternal %s IsMounted %s IsRemovable %s IsPartition %s " "IsOptical %s", m_DeviceKitUDI.c_str(), BOOL2SZ(m_isFileSystem), m_FileSystem, BOOL2SZ(m_isSystemInternal), BOOL2SZ(m_isMounted), BOOL2SZ(m_isRemovable), BOOL2SZ(m_isPartition), BOOL2SZ(m_isOptical)); return str; }
std::string CUDisks2Provider::Filesystem::toString() { return StringUtils::Format("Filesystem %s: IsMounted %s MountPoint %s", m_object, BOOL2SZ(m_isMounted), m_mountPoint.empty() ? "none" : m_mountPoint); }
std::string CUDisks2Provider::Block::toString() { return StringUtils::Format("Block device %s: Device %s Label %s IsSystem: %s Drive %s", m_object, m_device, m_label.empty() ? "none" : m_label, BOOL2SZ(m_isSystem), m_driveobject.empty() ? "none" : m_driveobject); }
std::string CUDisks2Provider::Drive::toString() { return StringUtils::Format("Drive %s: IsRemovable %s IsOptical %s", m_object, BOOL2SZ(m_isRemovable), BOOL2SZ(IsOptical())); }