Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qlockfile.cpp File Reference
#include "qlockfile.h"
#include "qlockfile_p.h"
#include <QtCore/qthread.h>
#include <QtCore/qcoreapplication.h>
#include <QtCore/qdeadlinetimer.h>
#include <QtCore/qdatetime.h>
#include <QtCore/qfileinfo.h>
+ Include dependency graph for qlockfile.cpp:

Go to the source code of this file.

Functions

static bool getLockInfo_helper (const QString &fileName, LockFileInfo *info)
 
static QString machineName ()
 

Function Documentation

◆ getLockInfo_helper()

static bool getLockInfo_helper ( const QString fileName,
LockFileInfo *  info 
)
static

Definition at line 386 of file qlockfile.cpp.

References QByteArray::chop(), fileName, QString::fromUtf8(), info, QByteArray::isEmpty(), ok, QIODeviceBase::ReadOnly, QIODeviceBase::Text, and QByteArray::toLongLong().

Referenced by QLockFile::getLockInfo(), and QLockFilePrivate::isApparentlyStale().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ machineName()

static QString machineName ( )
static

Definition at line 32 of file qlockfile.cpp.

References QSysInfo::machineHostName(), and qEnvironmentVariable().

Referenced by QLockFilePrivate::isApparentlyStale(), and QLockFilePrivate::lockFileContents().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: