• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeabc
 

tdeabc

  • TDEABC
  • Lock
Signals | Public Member Functions | Static Public Member Functions | List of all members
TDEABC::Lock Class Reference

#include <lock.h>

Inheritance diagram for TDEABC::Lock:
TDEABC::LockNull

Signals

void locked ()
 
void unlocked ()
 

Public Member Functions

 Lock (const TQString &identifier)
 
 ~Lock ()
 
virtual bool lock ()
 
virtual bool unlock ()
 
virtual TQString error () const
 
TQString lockFileName () const
 

Static Public Member Functions

static bool readLockFile (const TQString &filename, int &pid, TQString &app)
 
static bool writeLockFile (const TQString &filename)
 
static TQString locksDir ()
 

Detailed Description

This class provides locking functionality for a file, directory or an arbitrary string-represented resource.

Definition at line 35 of file lock.h.

Constructor & Destructor Documentation

◆ Lock()

Lock::Lock ( const TQString &  identifier)

Constructor.

Parameters
identifierAn identifier for the resource to be locked, e.g. a file name.

Definition at line 38 of file lock.cpp.

◆ ~Lock()

Lock::~Lock ( )

Destruct lock object.

This also removes the lock on the resource.

Definition at line 44 of file lock.cpp.

Member Function Documentation

◆ error()

TQString Lock::error ( ) const
virtual

Definition at line 157 of file lock.cpp.

◆ lock()

bool Lock::lock ( )
virtual

Lock resource.

Reimplemented in TDEABC::LockNull.

Definition at line 81 of file lock.cpp.

◆ lockFileName()

TQString Lock::lockFileName ( ) const

Definition at line 76 of file lock.cpp.

◆ locksDir()

TQString Lock::locksDir ( )
static

Definition at line 49 of file lock.cpp.

◆ readLockFile()

bool Lock::readLockFile ( const TQString &  filename,
int &  pid,
TQString &  app 
)
static

Definition at line 54 of file lock.cpp.

◆ unlock()

bool Lock::unlock ( )
virtual

Unlock resource.

Reimplemented in TDEABC::LockNull.

Definition at line 136 of file lock.cpp.

◆ writeLockFile()

bool Lock::writeLockFile ( const TQString &  filename)
static

Definition at line 66 of file lock.cpp.


The documentation for this class was generated from the following files:
  • lock.h
  • lock.cpp

tdeabc

Skip menu "tdeabc"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdeabc

Skip menu "tdeabc"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeabc by doxygen 1.9.4
This website is maintained by Timothy Pearson.