KFileLock Class Reference

#include <kfilelock.h>

List of all members.

Public Member Functions

 KFileLock (int fd)
 ~KFileLock ()
 Call unlock().
int fd () const
int lock ()
void unlock ()
 Unlock the file.
bool isLocked () const


Detailed Description

Definition at line 23 of file kfilelock.h.


Constructor & Destructor Documentation

KFileLock::KFileLock int  fd  ) 
 

Definition at line 29 of file kfilelock.cpp.

KFileLock::~KFileLock  ) 
 

Call unlock().

Definition at line 65 of file kfilelock.cpp.

References unlock().

Here is the call graph for this function:


Member Function Documentation

int KFileLock::fd  )  const [inline]
 

Returns:
the file descriptor.

Definition at line 32 of file kfilelock.h.

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

int KFileLock::lock  ) 
 

Definition at line 33 of file kfilelock.cpp.

Referenced by KHighscore::lockForWriting().

void KFileLock::unlock  ) 
 

Unlock the file.

Definition at line 70 of file kfilelock.cpp.

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


The documentation for this class was generated from the following files:
Generated on Wed Aug 23 18:04:50 2006 for libkdegames by  doxygen 1.4.6