Check UNC path to avoid "hanging" if other machine is not reachable

This commit is contained in:
Klaus Basan
2020-04-14 02:44:02 +02:00
committed by Mat Sutcliffe
parent 04562a6651
commit e839820940
4 changed files with 93 additions and 2 deletions

View File

@@ -473,6 +473,10 @@ namespace BlackMisc
//! All file names
QSet<QString> getAllFileNames() const;
//! All UNC file names
//! \remark Windows on a "shared drive" paths
QSet<QString> getAllUNCFileNames() const;
//! All combined types as string
QString getCombinedTypesAsString(const QString &separator = ", ") const;
@@ -555,6 +559,10 @@ namespace BlackMisc
const Aviation::CAircraftCategoryList &aircraftCategories = {},
const Aviation::CLiveryList &liveries = {},
const CDistributorList &distributors = {});
private:
//! Validate UNC paths (Windows)
CStatusMessageList validateUncFiles(const QSet<QString> uncFiles) const;
};
//! Model per callsign