Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

Enumerator
NoLock 
ReadLock 
WriteLock 

Constructor & Destructor Documentation

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

Member Function Documentation

bool QtLP_Private::QtLockedFile::isLocked ( ) const
bool QtLP_Private::QtLockedFile::lock ( LockMode  mode,
bool  block = true 
)
LockMode QtLP_Private::QtLockedFile::lockMode ( ) const
bool QtLP_Private::QtLockedFile::open ( OpenMode  mode)
bool QtLP_Private::QtLockedFile::unlock ( )

Member Data Documentation

LockMode QtLP_Private::QtLockedFile::m_lock_mode
private

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