Qt 4.8
|
#include <qsharedmemory_p.h>
Public Functions | |
bool | attach (QSharedMemory::AccessMode mode) |
void | cleanHandle () |
bool | create (int size) |
bool | detach () |
HANDLE | handle () |
If not already made create the handle used for accessing the shared memory. More... | |
bool | initKey () |
QSharedMemoryPrivate () | |
void | setErrorString (const QString &function) |
bool | tryLocker (QSharedMemoryLocker *locker, const QString &function) |
Public Functions inherited from QObjectPrivate | |
void | _q_reregisterTimers (void *pointer) |
void | addConnection (int signal, Connection *c) |
void | cleanConnectionLists () |
void | connectNotify (const char *signal) |
void | deleteChildren () |
void | disconnectNotify (const char *signal) |
bool | isSender (const QObject *receiver, const char *signal) const |
bool | isSignalConnected (uint signalIdx) const |
Returns true if the signal with index signal_index from object sender is connected. More... | |
void | moveToThread_helper () |
QObjectPrivate (int version=QObjectPrivateVersion) | |
QObjectList | receiverList (const char *signal) const |
QObjectList | senderList () const |
void | setParent_helper (QObject *) |
void | setThreadData_helper (QThreadData *currentData, QThreadData *targetData) |
int | signalIndex (const char *signalName) const |
Returns the signal index used in the internal connectionLists vector. More... | |
virtual | ~QObjectPrivate () |
Public Functions inherited from QObjectData | |
virtual | ~QObjectData ()=0 |
Static Public Functions | |
static int | createUnixKeyFile (const QString &fileName) |
Creates the unix file if needed. More... | |
static QString | makePlatformSafeKey (const QString &key, const QString &prefix=QLatin1String("qipc_sharedmemory_")) |
Generate a string from the key which can be any unicode string into the subset that the win/unix kernel allows. More... | |
Static Public Functions inherited from QObjectPrivate | |
static void | clearGuards (QObject *) |
static QObjectPrivate * | get (QObject *o) |
static void | resetCurrentSender (QObject *receiver, Sender *currentSender, Sender *previousSender) |
static Sender * | setCurrentSender (QObject *receiver, Sender *sender) |
static void | signalSignature (const QMetaMethod &signal, QVarLengthArray< char > *result) |
Public Variables | |
QSharedMemory::SharedMemoryError | error |
QString | errorString |
QString | key |
bool | lockedByMe |
void * | memory |
QString | nativeKey |
int | size |
QSystemSemaphore | systemSemaphore |
Public Variables inherited from QObjectPrivate | |
union { | |
QObject * currentChildBeingDeleted | |
QAbstractDeclarativeData * declarativeData | |
}; | |
quint32 | connectedSignals [2] |
QObjectConnectionListVector * | connectionLists |
Sender * | currentSender |
QList< QPointer< QObject > > | eventFilters |
ExtraData * | extraData |
QString | objectName |
Connection * | senders |
QAtomicPointer< QtSharedPointer::ExternalRefCountData > | sharedRefcount |
QThreadData * | threadData |
void * | unused |
Public Variables inherited from QObjectData | |
uint | blockSig: 1 |
QObjectList | children |
uint | hasGuards: 1 |
uint | inEventHandler: 1 |
uint | inThreadChangeEvent: 1 |
uint | isWidget: 1 |
QMetaObject * | metaObject |
uint | ownObjectName: 1 |
QObject * | parent |
uint | pendTimer: 1 |
int | postedEvents |
QObject * | q_ptr |
uint | receiveChildEvents: 1 |
uint | sendChildEvents: 1 |
uint | unused: 22 |
uint | wasDeleted: 1 |
Properties | |
HANDLE | hand |
Additional Inherited Members | |
Public Types inherited from QObjectPrivate | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
Definition at line 115 of file qsharedmemory_p.h.
QSharedMemoryPrivate::QSharedMemoryPrivate | ( | ) |
Definition at line 72 of file qsharedmemory_unix.cpp.
bool QSharedMemoryPrivate::attach | ( | QSharedMemory::AccessMode | mode | ) |
Definition at line 298 of file qsharedmemory_unix.cpp.
void QSharedMemoryPrivate::cleanHandle | ( | ) |
bool QSharedMemoryPrivate::create | ( | int | size | ) |
Definition at line 227 of file qsharedmemory_unix.cpp.
|
static |
Creates the unix file if needed.
returns true if the unix file was created.
-1 error 0 already existed 1 created
Definition at line 191 of file qsharedmemory_unix.cpp.
Referenced by create(), and QSystemSemaphorePrivate::handle().
bool QSharedMemoryPrivate::detach | ( | ) |
Definition at line 370 of file qsharedmemory_unix.cpp.
HANDLE QSharedMemoryPrivate::handle | ( | ) |
If not already made create the handle used for accessing the shared memory.
Definition at line 133 of file qsharedmemory_unix.cpp.
Referenced by create().
bool QSharedMemoryPrivate::initKey | ( | ) |
Definition at line 271 of file qsharedmemory.cpp.
|
static |
Generate a string from the key which can be any unicode string into the subset that the win/unix kernel allows.
On Unix this will be a file name On Symbian key will be truncated to 80 characters
Definition at line 68 of file qsharedmemory.cpp.
Referenced by attach(), create(), detach(), handle(), and QSystemSemaphorePrivate::makeKeyFileName().
void QSharedMemoryPrivate::setErrorString | ( | const QString & | function | ) |
Definition at line 85 of file qsharedmemory_unix.cpp.
Referenced by attach(), create(), and detach().
|
inline |
Definition at line 156 of file qsharedmemory_p.h.
QSharedMemory::SharedMemoryError QSharedMemoryPrivate::error |
Definition at line 126 of file qsharedmemory_p.h.
Referenced by attach(), create(), detach(), handle(), and setErrorString().
QString QSharedMemoryPrivate::errorString |
Definition at line 127 of file qsharedmemory_p.h.
Referenced by attach(), create(), detach(), handle(), and setErrorString().
|
private |
Definition at line 168 of file qsharedmemory_p.h.
Referenced by attach(), cleanHandle(), and detach().
QString QSharedMemoryPrivate::key |
Definition at line 124 of file qsharedmemory_p.h.
Referenced by attach(), create(), detach(), handle(), makePlatformSafeKey(), and setErrorString().
bool QSharedMemoryPrivate::lockedByMe |
Definition at line 130 of file qsharedmemory_p.h.
void* QSharedMemoryPrivate::memory |
Definition at line 122 of file qsharedmemory_p.h.
QString QSharedMemoryPrivate::nativeKey |
Definition at line 125 of file qsharedmemory_p.h.
int QSharedMemoryPrivate::size |
Definition at line 123 of file qsharedmemory_p.h.
QSystemSemaphore QSharedMemoryPrivate::systemSemaphore |
Definition at line 129 of file qsharedmemory_p.h.