QtIpcCommon Namespace
Functions
QNativeIpcKey | legacyPlatformSafeKey(const QString &key, IpcType ipcType, QNativeIpcKey::Type type) |
QNativeIpcKey | platformSafeKey(const QString &key, IpcType ipcType, QNativeIpcKey::Type type) |
Function Documentation
QNativeIpcKey QtIpcCommon::legacyPlatformSafeKey(const QString &key, IpcType ipcType, QNativeIpcKey::Type type)
\internal
Legacy: this exists for compatibility with QSharedMemory and QSystemSemaphore between 4.4 and 6.6.
Returns a QNativeIpcKey that contains a platform-safe key using rules similar to QtIpcCommon::platformSafeKey() below, but using an algorithm that is compatible with Qt 4.4 to 6.6. Additionally, the returned QNativeIpcKey will record the input key so it can be included in the string form if necessary to pass to other processes.
QNativeIpcKey QtIpcCommon::platformSafeKey(const QString &key, IpcType ipcType, QNativeIpcKey::Type type)
\internal
Returns a QNativeIpcKey of type type, suitable for QSystemSemaphore or QSharedMemory depending on ipcType. The returned native key is generated from the Unicode input key and is safe for use on for the key type in question in the current OS.