libkdegames Library API Documentation

KFileLock Class Reference

List of all members.

Public Member Functions

 KFileLock (int fd)
 ~KFileLock ()
int fd () const
int lock ()
void unlock ()
bool isLocked () const

Detailed Description

Definition at line 23 of file kfilelock.h.


Constructor & Destructor Documentation

KFileLock::~KFileLock  ) 
 

Call unlock().

Definition at line 67 of file kfilelock.cpp.

References unlock().


Member Function Documentation

int KFileLock::fd  )  const [inline]
 

Returns:
the file descriptor.

Definition at line 32 of file kfilelock.h.

void KFileLock::unlock  ) 
 

Unlock the file.

Definition at line 72 of file kfilelock.cpp.

Referenced by KHighscore::writeAndUnlock(), and ~KFileLock().

bool KFileLock::isLocked  )  const [inline]
 

Returns:
true if we currently lock the file.

Definition at line 45 of file kfilelock.h.

Referenced by KHighscore::isLocked().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for libkdegames Library Version 3.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Sep 12 05:17:51 2005 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003