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

kabc

  • KABC
  • Lock
Signals | Public Member Functions | Static Public Member Functions
KABC::Lock Class Reference

#include <lock.h>

Inheritance diagram for KABC::Lock:
KABC::LockNull

List of all members.

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 ( 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 ( )

Destruct lock object.

This also removes the lock on the resource.

Definition at line 44 of file lock.cpp.


Member Function Documentation

bool Lock::lock ( ) [virtual]

Lock resource.

Reimplemented in KABC::LockNull.

Definition at line 81 of file lock.cpp.

bool Lock::unlock ( ) [virtual]

Unlock resource.

Reimplemented in KABC::LockNull.

Definition at line 136 of file lock.cpp.


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

kabc

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

kabc

Skip menu "kabc"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kabc by doxygen 1.7.6.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |