forked from qt-creator/qt-creator
		
	Utils: Add a FilePath::environment
A hook into the system environment of the FilePath's device. Change-Id: I274032f9e716f3cd8b2e4af2eca010b9805a4568 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
		| @@ -40,7 +40,10 @@ | ||||
| #include <functional> | ||||
| #include <memory> | ||||
|  | ||||
| namespace Utils { class FilePath; } | ||||
| namespace Utils { | ||||
| class Environment; | ||||
| class FilePath; | ||||
| } // Utils | ||||
|  | ||||
| QT_BEGIN_NAMESPACE | ||||
| class QDataStream; | ||||
| @@ -91,6 +94,7 @@ public: | ||||
|     std::function<QDateTime(const FilePath &)> lastModified; | ||||
|     std::function<QFile::Permissions(const FilePath &)> permissions; | ||||
|     std::function<OsType(const FilePath &)> osType; | ||||
|     std::function<Environment(const FilePath &)> environment; | ||||
| }; | ||||
|  | ||||
| class QTCREATOR_UTILS_EXPORT FilePath | ||||
| @@ -213,6 +217,7 @@ public: | ||||
|     static void setDeviceFileHooks(const DeviceFileHooks &hooks); | ||||
|  | ||||
|     FilePath onDeviceSearchInPath() const; | ||||
|     Environment deviceEnvironment() const; | ||||
|  | ||||
| private: | ||||
|     friend class ::tst_fileutils; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user