Exemplo n.º 1
0
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));
}
Exemplo n.º 2
0
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;
}
Exemplo n.º 3
0
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);
}
Exemplo n.º 4
0
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);
}
Exemplo n.º 5
0
std::string CUDisks2Provider::Drive::toString()
{
  return StringUtils::Format("Drive %s: IsRemovable %s IsOptical %s",
                             m_object, BOOL2SZ(m_isRemovable), BOOL2SZ(IsOptical()));
}