7#include <QtCore/qtipccommon.h>
9# include <QtCore/qobject.h>
11# include <QtCore/qobjectdefs.h>
12# include <QtCore/qscopedpointer.h>
13# include <QtCore/qstring.h>
18#if QT_CONFIG(sharedmemory)
20class QSharedMemoryPrivate;
22class Q_CORE_EXPORT QSharedMemory :
public QObject
25 Q_DECLARE_PRIVATE(QSharedMemory)
35 enum SharedMemoryError
53#if QT_DEPRECATED_SINCE(6, 10)
62 void setNativeKey(
const QNativeIpcKey &
key);
63 void setNativeKey(
const QString &
key, QNativeIpcKey::Type
type = QNativeIpcKey::legacyDefaultTypeForOs())
64 { setNativeKey({
key,
type }); }
66 QNativeIpcKey nativeIpcKey()
const;
67#if QT_CORE_REMOVED_SINCE(6, 5)
74 bool attach(AccessMode
mode = ReadWrite);
75 bool isAttached()
const;
79 const void* constData()
const;
80 const void *
data()
const;
82#if QT_CONFIG(systemsemaphore)
87 SharedMemoryError
error()
const;
91 static QNativeIpcKey platformSafeKey(
const QString &
key,
92 QNativeIpcKey::Type
type = QNativeIpcKey::DefaultTypeForOs);
93 static QNativeIpcKey legacyNativeKey(
const QString &
key,
94 QNativeIpcKey::Type
type = QNativeIpcKey::legacyDefaultTypeForOs());
97 Q_DISABLE_COPY(QSharedMemory)
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
#define Q_DECL_CONST_FUNCTION
DBusConnection const char DBusError * error
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
#define QT_DEPRECATED_VERSION_X_6_10(text)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent