• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • @topname@
  • Sitemap
  • Contact Us
 

kabc

KABC::Lock

KABC::Lock Class Reference

#include <lock.h>

Inheritance diagram for KABC::Lock:

QObject KABC::LockNull

List of all members.


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.


Signals

void locked ()
void unlocked ()

Public Member Functions

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

Static Public Member Functions

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

Constructor & Destructor Documentation

Lock::Lock ( const QString &  identifier  ) 

Constructor.

Parameters:
identifier An 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

@topname@

Skip menu "@topname@"
  •     kdnssd-avahi
  • 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
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for @topname@ by doxygen 1.5.5
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal