Version: 9.12.0
QtLP_Private::QtLockedFile Class Reference

#include <qtlockedfile.h>

Inheritance diagram for QtLP_Private::QtLockedFile:
Inheritance graph

Public Types

enum  LockMode { NoLock = 0 , ReadLock , WriteLock }
 

Public Member Functions

 QtLockedFile ()
 
 QtLockedFile (const QString &name)
 
 ~QtLockedFile ()
 
bool open (OpenMode mode)
 
bool lock (LockMode mode, bool block=true)
 
bool unlock ()
 
bool isLocked () const
 
LockMode lockMode () const
 

Private Attributes

LockMode m_lock_mode
 

Member Enumeration Documentation

◆ LockMode

Enumerator
NoLock 
ReadLock 
WriteLock 

Constructor & Destructor Documentation

◆ QtLockedFile() [1/2]

QtLP_Private::QtLockedFile::QtLockedFile ( )

◆ QtLockedFile() [2/2]

QtLP_Private::QtLockedFile::QtLockedFile ( const QString &  name)

◆ ~QtLockedFile()

QtLP_Private::QtLockedFile::~QtLockedFile ( )

Member Function Documentation

◆ isLocked()

bool QtLP_Private::QtLockedFile::isLocked ( ) const

◆ lock()

bool QtLP_Private::QtLockedFile::lock ( LockMode  mode,
bool  block = true 
)

◆ lockMode()

LockMode QtLP_Private::QtLockedFile::lockMode ( ) const

◆ open()

bool QtLP_Private::QtLockedFile::open ( OpenMode  mode)

◆ unlock()

bool QtLP_Private::QtLockedFile::unlock ( )

Member Data Documentation

◆ m_lock_mode

LockMode QtLP_Private::QtLockedFile::m_lock_mode
private

The documentation for this class was generated from the following file: