MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / open

Method open

libraries/LocalPeer/src/LockedFile.cpp:121–128  ·  view source on GitHub ↗

! Opens the file in OpenMode \a mode. This is identical to QFile::open(), with the one exception that the Truncate mode flag is disallowed. Truncation would conflict with the advisory file locking, since the file would be modified before the write lock is obtained. If truncation is required, use resize(0) after obtaining the write lock. Returns true if successful; otherwise false. \sa QFile::op

Source from the content-addressed store, hash-verified

119\sa QFile::open(), QFile::resize()
120*/
121bool LockedFile::open(OpenMode mode)
122{
123 if (mode & QIODevice::Truncate) {
124 qWarning("QtLockedFile::open(): Truncate mode not allowed.");
125 return false;
126 }
127 return QFile::open(mode);
128}
129
130/*!
131 Returns \e true if this object has a in read or write lock;

Callers 15

read_legacy_releaseMethod · 0.80
LocalPeerMethod · 0.80
processZipPackMethod · 0.80
ApplicationMethod · 0.80
handleDataMigrationMethod · 0.80
extractMethod · 0.80
mergeZipFilesFunction · 0.80
compressDirFilesFunction · 0.80
createModdedJarFunction · 0.80
extractDirFunction · 0.80
extractFileFunction · 0.80
exportZipMethod · 0.80

Calls

no outgoing calls